/* ============================================================
   RAÇÃO DE CANTO — Folha de estilos
   Identidade: o medalhão do logo. Caramelo (madeira do selo e
   pelagem de Fiel e Pétala), chocolate (letras do logo), terracota
   para ações, âmbar para destaque, osso como respiro.
   Tipografia: Bricolage Grotesque condensada (display) + Nunito.
   ============================================================ */

/* ── TOKENS ─────────────────────────────────────────────────── */
:root {
  --choc-950: #1e1008;
  --choc-900: #2a170c;
  --choc-800: #3b2213;
  --choc-700: #5a3418;
  --caramel-600: #b0743f;
  --caramel-500: #c68a52;
  --caramel-400: #d9a26a;
  --caramel-300: #e9c08f;
  --caramel-200: #f0d5b0;
  --terracota: #b24e22;
  --terracota-escuro: #933d17;
  --ambar: #e8a23a;
  --ambar-claro: #f2b04a;
  --osso-100: #f4e6d0;
  --osso-50: #fbf4ea;
  --areia: #f6e8d4;
  --caramel-100: #f3e0c4;

  --fonte-display: "Bricolage Grotesque", "Arial Narrow", sans-serif;
  --fonte-corpo: "Nunito", system-ui, sans-serif;

  --maxw: 1240px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --header-h: 76px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  --shadow-soft: 0 18px 40px -20px rgba(42, 23, 12, 0.55);
  --shadow-deep: 0 34px 70px -28px rgba(30, 16, 8, 0.7);

  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .16 0 0 0 0 .09 0 0 0 0 .05 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");

  --focus: var(--choc-900);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 8px);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  font-family: var(--fonte-corpo);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--choc-900);
  background: var(--osso-50);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img,
video,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: inherit;
}

ul,
ol {
  list-style: none;
}

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

h1,
h2,
h3 {
  font-family: var(--fonte-display);
  font-weight: 800;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

::selection {
  background: var(--ambar);
  color: var(--choc-900);
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

.on-dark {
  --focus: var(--ambar-claro);
}

.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;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon--fill {
  fill: currentColor;
  stroke: none;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 200;
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  background: var(--choc-900);
  color: var(--osso-50);
  font-weight: 800;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease-out);
}

.skip-link:focus-visible {
  transform: none;
  outline-color: var(--ambar);
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  position: relative;
  padding-block: clamp(5rem, 10vw, 9rem);
}

.h2 {
  font-variation-settings: "wdth" 80;
  font-size: clamp(2.2rem, 4.6vw, 4rem);
  line-height: 0.98;
  letter-spacing: -0.015em;
}

.display {
  font-variation-settings: "wdth" 75;
  font-size: clamp(4rem, 12vw, 6rem);
  line-height: 0.86;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.lead {
  font-size: clamp(1.15rem, 1.6vw, 1.35rem);
  font-weight: 600;
  line-height: 1.5;
}

/* ── BOTÕES E LINKS ─────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 48px;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  font-family: var(--fonte-corpo);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition:
    transform 0.15s var(--ease-out),
    background-color 0.2s ease,
    color 0.2s ease,
    box-shadow 0.25s ease;
}

.btn:active {
  transform: translateY(1px) scale(0.98);
}

.btn .icon {
  transition: transform 0.25s var(--ease-out);
}

.btn:hover .icon {
  transform: translateX(3px);
}

.btn--action {
  background: var(--terracota);
  color: #fff8ef;
  box-shadow: 0 10px 20px -10px rgba(120, 45, 12, 0.75);
}

.btn--action:hover {
  background: var(--terracota-escuro);
  box-shadow: 0 14px 26px -12px rgba(120, 45, 12, 0.85);
}

.btn--light {
  background: var(--osso-100);
  color: var(--choc-900);
}

.btn--light:hover {
  background: var(--caramel-300);
}

.btn--dark {
  background: var(--choc-900);
  color: var(--osso-50);
  box-shadow: 0 10px 20px -10px rgba(30, 16, 8, 0.7);
}

.btn--dark:hover {
  background: var(--choc-700);
}

.btn--outline {
  border: 2px solid var(--choc-900);
  color: var(--choc-900);
}

.btn--outline:hover {
  background: var(--choc-900);
  color: var(--osso-50);
}

.btn--sm {
  min-height: 42px;
  padding: 0.6rem 1.1rem;
  font-size: 0.95rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
  text-decoration-color: color-mix(in srgb, currentColor 35%, transparent);
  transition: text-decoration-color 0.2s ease;
}

.text-link:hover {
  text-decoration-color: currentColor;
}

.text-link .icon {
  transition: transform 0.25s var(--ease-out);
}

.text-link:hover .icon[class] {
  transform: translateX(3px);
}

.round-btn {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--choc-900);
  color: var(--choc-900);
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    transform 0.15s var(--ease-out);
}

.round-btn:hover {
  background: var(--choc-900);
  color: var(--osso-50);
}

.round-btn:active {
  transform: scale(0.94);
}

.round-btn:disabled {
  opacity: 0.35;
  cursor: default;
  background: none;
  color: var(--choc-900);
}

/* Etiqueta carimbada (datas, legendas) */
.stamp,
.chapter-date,
.update-date {
  display: inline-block;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-family: var(--fonte-display);
  font-variation-settings: "wdth" 80;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.2;
}

/* Medalhão: moldura circular com aro duplo, como o selo do logo */
.bowl {
  --ring: clamp(7px, 0.9vw, 13px);
  position: relative;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  background: var(--choc-800);
  box-shadow:
    0 0 0 var(--ring) var(--choc-800),
    0 0 0 calc(var(--ring) + 4px) var(--caramel-300),
    0 0 0 calc(var(--ring) + 8px) var(--choc-800),
    var(--shadow-deep);
}

.bowl > img,
.bowl > video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── CABEÇALHO ──────────────────────────────────────────────── */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition:
    background-color 0.3s ease,
    box-shadow 0.3s ease,
    transform 0.4s var(--ease-out);
}

.site-header.is-scrolled {
  background: rgba(251, 244, 234, 0.94);
  box-shadow: 0 10px 30px -18px rgba(42, 23, 12, 0.45);
}

.site-header.is-hidden {
  transform: translateY(-100%);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  border-radius: 999px;
}

.brand-mark {
  width: 48px;
  height: 48px;
  transition: transform 0.6s var(--ease-out);
}

.brand:hover .brand-mark {
  transform: rotate(-12deg);
}

.brand-name {
  font-family: var(--fonte-display);
  font-variation-settings: "wdth" 75;
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 2rem);
}

.nav-list {
  display: flex;
  gap: clamp(0.9rem, 1.8vw, 1.8rem);
}

.nav-link {
  position: relative;
  display: inline-block;
  padding-block: 0.35rem;
  font-weight: 800;
  font-size: 0.97rem;
  text-decoration: none;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease-out);
}

.nav-link:hover::after,
.nav-link.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-toggle {
  position: relative;
  z-index: 2;
  display: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--choc-900);
}

.nav-toggle-bar {
  position: absolute;
  left: 14px;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--osso-50);
  transition: transform 0.35s var(--ease-out);
}

.nav-toggle-bar:first-child {
  transform: translateY(-4px);
}

.nav-toggle-bar:last-child {
  transform: translateY(4px);
}

.nav-toggle[aria-expanded="true"] {
  background: var(--ambar);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar {
  background: var(--choc-900);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:first-child {
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:last-child {
  transform: rotate(-45deg);
}

@media (max-width: 959px) {
  .nav-toggle {
    display: block;
  }

  .nav {
    position: fixed;
    inset: 0;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 2.5rem;
    padding: calc(var(--header-h) + 1rem) var(--gutter) 3rem;
    background: var(--choc-900) var(--grain);
    color: var(--osso-50);
    --focus: var(--ambar-claro);
    visibility: hidden;
    clip-path: circle(0 at calc(100% - var(--gutter) - 24px) calc(var(--header-h) / 2));
    transition:
      clip-path 0.55s var(--ease-in-out),
      visibility 0s linear 0.55s;
  }

  .nav.is-open {
    visibility: visible;
    clip-path: circle(150% at calc(100% - var(--gutter) - 24px) calc(var(--header-h) / 2));
    transition: clip-path 0.65s var(--ease-out);
  }

  .nav-list {
    flex-direction: column;
    gap: 0.2rem;
  }

  .nav-link {
    font-family: var(--fonte-display);
    font-variation-settings: "wdth" 75;
    font-size: clamp(2.4rem, 11vw, 3.4rem);
    font-weight: 800;
    line-height: 1.1;
    text-transform: uppercase;
  }

  .nav-cta {
    min-height: 52px;
    font-size: 1.05rem;
  }

  .site-header.nav-open {
    background: transparent;
    box-shadow: none;
  }

  .site-header.nav-open .brand-name {
    color: var(--osso-50);
  }

  .site-header.nav-open .brand {
    --focus: var(--ambar-claro);
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav,
  .nav.is-open {
    transition: none;
  }
}

/* ── HERO ───────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: max(100svh, 680px);
  padding: calc(var(--header-h) + clamp(2rem, 6vh, 4.5rem)) 0 clamp(3rem, 8vh, 5rem);
  overflow: hidden;
  background:
    radial-gradient(60% 75% at 100% 100%, rgba(198, 138, 82, 0.5), transparent 70%),
    radial-gradient(90% 70% at 0% 0%, rgba(255, 250, 242, 0.9), transparent 60%),
    var(--grain),
    var(--areia);
}

.hero-copy {
  max-width: min(44rem, 56vw);
}

.hero-title {
  font-variation-settings: "wdth" 75;
  font-size: clamp(2.9rem, 7.4vw, 6rem);
  line-height: 0.9;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--choc-900);
}

.hero-title .line {
  display: block;
  overflow: hidden;
  padding-top: 0.12em;
  margin-top: -0.12em;
}

.hero-title .line > span {
  display: inline-block;
}

.hero-lead {
  max-width: 35rem;
  margin: 1.6rem 0 2rem;
  font-size: clamp(1.05rem, 1.35vw, 1.22rem);
  font-weight: 600;
  line-height: 1.55;
  color: var(--choc-800);
}

.pix {
  max-width: 34rem;
  padding: 1.15rem 1.15rem 1.05rem 1.35rem;
  border-radius: 24px;
  background: #fffaf3;
  border: 1px solid rgba(90, 52, 24, 0.14);
  box-shadow: var(--shadow-soft);
}

.pix-title {
  font-family: var(--fonte-display);
  font-variation-settings: "wdth" 85;
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.2;
}

.pix-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 2px dashed rgba(90, 52, 24, 0.3);
}

.pix-key {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.pix-key-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--choc-700);
}

.pix-key-value {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  font-weight: 800;
  overflow-wrap: anywhere;
  user-select: all;
}

.pix-note {
  margin-top: 0.8rem;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--choc-800);
}

.copy-btn .check-icon {
  display: none;
}

.copy-btn.is-copied {
  background: var(--choc-900);
}

.copy-btn.is-copied .copy-icon {
  display: none;
}

.copy-btn.is-copied .check-icon {
  display: block;
  animation: pop 0.35s var(--ease-out);
}

@keyframes pop {
  from {
    transform: scale(0.4) rotate(-20deg);
  }
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.6rem;
  margin-top: 1.4rem;
  color: var(--choc-900);
}

.hero-bowl {
  position: absolute;
  z-index: 1;
  right: calc(-1 * clamp(2rem, 6vw, 6rem));
  bottom: calc(-1 * clamp(2rem, 7vw, 7rem));
  width: clamp(20rem, 44vw, 44rem);
}

/* Anel de texto, como a borda do selo do logo */
.bowl-ring {
  position: absolute;
  inset: -12%;
  width: 124%;
  height: 124%;
  overflow: visible;
  pointer-events: none;
}

.bowl-ring text {
  font-family: var(--fonte-display);
  font-variation-settings: "wdth" 75;
  font-size: 10px;
  font-weight: 800;
  fill: var(--choc-900);
}

@media (prefers-reduced-motion: no-preference) {
  .bowl-ring {
    animation: ring-turn 90s linear infinite;
  }

  .hero.is-offscreen .bowl-ring {
    animation-play-state: paused;
  }
}

@keyframes ring-turn {
  to {
    transform: rotate(360deg);
  }
}

.hero-stamp {
  position: absolute;
  bottom: 17%;
  left: 13%;
  background: var(--choc-900);
  color: var(--osso-50);
  box-shadow: var(--shadow-soft);
  transform: rotate(-7deg);
}

@media (max-width: 899px) {
  .hero {
    min-height: 0;
  }

  .hero-copy {
    max-width: none;
  }

  /* No celular a tigela fica no canto direito, ao lado do texto */
  .hero-bowl {
    position: relative;
    right: auto;
    bottom: auto;
    float: right;
    width: min(48vw, 22rem);
    margin: 1.4rem calc(-1 * var(--gutter) - 7vw) 1.4rem 1rem;
    shape-outside: circle(56%);
  }

  .bowl-ring {
    display: none;
  }

  .hero-bowl .bowl {
    --ring: 6px;
  }

  .hero-stamp {
    top: auto;
    bottom: -0.4rem;
    left: -0.6rem;
    font-size: 0.72rem;
  }

  .hero-lead {
    margin-top: 1.2rem;
  }

  .hero .pix {
    clear: both;
  }
}

/* Tablet: o cartão do PIX ocupa o espaço ao lado da tigela */
@media (min-width: 600px) and (max-width: 899px) {
  .hero-bowl {
    width: min(38vw, 20rem);
  }

  .hero .pix {
    clear: none;
    display: flow-root;
  }

  .hero-links {
    clear: both;
  }
}

/* Entrada do hero: a tigela é posta no canto */
@media (prefers-reduced-motion: no-preference) {
  .hero-title .line > span {
    animation: line-up 0.95s var(--ease-out) both;
  }

  .hero-title .line:nth-child(2) > span {
    animation-delay: 0.08s;
  }

  .hero-title .line:nth-child(3) > span {
    animation-delay: 0.16s;
  }

  .hero-lead,
  .hero .pix,
  .hero-links {
    animation: fade-up 0.8s var(--ease-out) both;
  }

  .hero-lead {
    animation-delay: 0.35s;
  }

  .hero .pix {
    animation-delay: 0.45s;
  }

  .hero-links {
    animation-delay: 0.55s;
  }

  .hero-bowl .bowl {
    animation: bowl-in 1.2s var(--ease-out) 0.1s both;
  }

  .hero-stamp {
    animation: stamp-in 0.6s var(--ease-out) 0.95s both;
  }
}

@keyframes line-up {
  from {
    transform: translateY(105%);
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
}

@keyframes bowl-in {
  from {
    opacity: 0;
    transform: translate(16%, 20%) rotate(-10deg) scale(0.9);
  }
  60% {
    opacity: 1;
  }
}

@keyframes stamp-in {
  from {
    opacity: 0;
    transform: rotate(-24deg) scale(0.6);
  }
}

/* ── O PROJETO ──────────────────────────────────────────────── */
.projeto {
  background: var(--osso-50);
}

.projeto-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) auto;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.projeto-text {
  display: grid;
  gap: 1.1rem;
  padding-top: 0.4rem;
  color: var(--choc-800);
}

.projeto-text .lead {
  color: var(--choc-900);
}

.projeto-video {
  position: relative;
  width: clamp(11rem, 17vw, 15rem);
}

.bowl--small {
  --ring: 7px;
}

.video-wrap {
  position: relative;
}

.video-toggle {
  position: absolute;
  right: 2%;
  bottom: 2%;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--choc-900);
  color: var(--osso-50);
  box-shadow: var(--shadow-soft);
  transition: transform 0.15s var(--ease-out);
}

.video-toggle:active {
  transform: scale(0.92);
}

.video-toggle .pause-icon,
.video-toggle[aria-pressed="true"] .play-icon {
  display: none;
}

.video-toggle[aria-pressed="true"] .pause-icon {
  display: block;
}

.projeto-video figcaption {
  margin-top: 1.6rem;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--choc-700);
}

.trail {
  --trail: 1;
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: clamp(4rem, 8vw, 6.5rem);
}

.trail::before,
.trail::after {
  content: "";
  position: absolute;
  top: 27px;
  left: 28px;
  right: 10%;
  height: 3px;
  border-radius: 3px;
  background: rgba(90, 52, 24, 0.2);
}

.trail::after {
  background: var(--terracota);
  transform: scaleX(var(--trail));
  transform-origin: left;
}

.trail-step {
  position: relative;
  z-index: 1;
}

.trail-dot {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--caramel-500);
  border: 3px solid var(--choc-800);
  color: var(--choc-900);
  font-size: 1.15rem;
  box-shadow: 0 0 0 6px var(--osso-50);
}

.trail-step h3 {
  margin-top: 1.1rem;
  font-variation-settings: "wdth" 85;
  font-size: 1.4rem;
  line-height: 1.1;
}

.trail-step p {
  margin-top: 0.4rem;
  max-width: 22ch;
  font-size: 0.98rem;
  line-height: 1.5;
  color: var(--choc-800);
}

@media (max-width: 1023px) {
  .projeto-intro {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .projeto-intro .h2 {
    grid-column: 1 / -1;
  }
}

@media (max-width: 759px) {
  .projeto-intro {
    grid-template-columns: 1fr;
  }

  .projeto-video {
    width: min(62vw, 15rem);
    justify-self: center;
  }

  .projeto-video figcaption {
    text-align: center;
  }

  .trail {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .trail::before,
  .trail::after {
    top: 28px;
    bottom: 3rem;
    left: 26px;
    right: auto;
    width: 3px;
    height: auto;
  }

  .trail::after {
    transform: scaleY(var(--trail));
    transform-origin: top;
  }

  .trail-step {
    display: grid;
    grid-template-columns: 56px 1fr;
    column-gap: 1.25rem;
  }

  .trail-dot {
    grid-row: span 2;
  }

  .trail-step h3 {
    margin-top: 0.7rem;
  }
}

/* ── FIEL ───────────────────────────────────────────────────── */
.fiel {
  background:
    radial-gradient(70% 50% at 85% 0%, rgba(198, 138, 82, 0.22), transparent 70%),
    var(--grain),
    var(--caramel-100);
  color: var(--choc-900);
}

.fiel-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(1.5rem, 5vw, 5rem);
  align-items: end;
}

.fiel-header .display {
  color: var(--terracota);
}

.fiel-intro {
  max-width: 40rem;
  color: var(--choc-800);
}

.fiel-intro .lead {
  color: var(--choc-900);
}

.content-note {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.35rem 0.85rem;
  border: 1px solid rgba(90, 52, 24, 0.35);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--choc-700);
}

.story {
  margin-top: clamp(3.5rem, 7vw, 6rem);
}

.story-stage {
  display: none;
}

.chapter {
  display: grid;
  gap: 1rem;
  padding-block: 2.5rem;
  border-top: 1px solid rgba(90, 52, 24, 0.18);
}

.chapter-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 24px;
}

.chapter-title {
  font-variation-settings: "wdth" 80;
  font-size: clamp(2rem, 3.4vw, 3rem);
  line-height: 1;
  color: var(--choc-900);
}

.chapter p {
  max-width: 34rem;
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--choc-800);
}

.chapter .chapter-date {
  justify-self: start;
  background: var(--ambar);
  color: var(--choc-900);
}

.chapter .text-link {
  justify-self: start;
  color: var(--terracota-escuro);
}

@media (min-width: 900px) {
  .story {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: clamp(3rem, 7vw, 7rem);
  }

  .story-stage {
    position: sticky;
    top: calc(var(--header-h) + 4vh);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    height: calc(100vh - var(--header-h) - 10vh);
    max-height: 760px;
  }

  .story-frame {
    position: relative;
    flex: 1;
    border-radius: 999px 999px 32px 32px;
    overflow: hidden;
    background: var(--caramel-300);
    box-shadow:
      0 0 0 8px var(--choc-800),
      0 0 0 12px var(--caramel-400),
      var(--shadow-deep);
  }

  .story-frame img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    clip-path: circle(0% at 50% 62%);
    transform: scale(1.08);
    transition:
      clip-path 0.9s var(--ease-out),
      transform 1.4s var(--ease-out);
  }

  .story-frame img.is-prev {
    z-index: 1;
    clip-path: circle(80% at 50% 62%);
    transform: none;
  }

  .story-frame img.is-active {
    z-index: 2;
    clip-path: circle(80% at 50% 62%);
    transform: none;
  }

  .story-progress {
    display: flex;
    justify-content: center;
    gap: 8px;
  }

  .story-progress li {
    width: 28px;
    height: 4px;
    border-radius: 4px;
    background: rgba(90, 52, 24, 0.2);
    transition: background-color 0.4s ease, width 0.4s var(--ease-out);
  }

  .story-progress li.is-active {
    width: 44px;
    background: var(--terracota);
  }

  .chapter-media {
    display: none;
  }

  .chapter {
    min-height: 64vh;
    align-content: center;
    padding-block: 8vh;
    border-top: 0;
  }

  .chapter:first-child {
    min-height: 60vh;
    align-content: start;
    padding-top: 6vh;
  }

  .js .chapter {
    opacity: 0.32;
    transition: opacity 0.6s ease;
  }

  .js .chapter.is-active {
    opacity: 1;
  }
}

@media (max-width: 759px) {
  .fiel-header {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .story-frame img {
    transition: none;
  }
}

.fiel-close {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 3rem;
  margin-top: clamp(3rem, 6vw, 5rem);
  padding-top: 2.5rem;
  border-top: 1px solid rgba(90, 52, 24, 0.2);
}

.fiel-close p {
  max-width: 38ch;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 700;
  line-height: 1.4;
  color: var(--choc-900);
}

/* ── PÉTALA ─────────────────────────────────────────────────── */
.petala {
  background:
    radial-gradient(60% 60% at 0% 100%, rgba(198, 138, 82, 0.28), transparent 70%),
    var(--osso-50);
}

.petala-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(3rem, 7vw, 7rem);
  align-items: center;
}

.petala-media {
  position: relative;
  padding: 0 12% 14% 0;
}

.petala-photo--main img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 32px;
  box-shadow: var(--shadow-deep);
}

.petala-photo--medal {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 46%;
}

.bowl--medal {
  --ring: 8px;
}

.petala-copy {
  display: grid;
  gap: 1.3rem;
  align-content: center;
}

.petala-copy .display {
  color: var(--choc-900);
}

.petala-copy > p:not(.lead) {
  color: var(--choc-800);
  max-width: 36rem;
}

.care-log {
  position: relative;
  display: grid;
  gap: 1.4rem;
  padding-left: 2rem;
}

.care-log::before {
  content: "";
  position: absolute;
  top: 0.6rem;
  bottom: 0.6rem;
  left: 0.55rem;
  width: 2px;
  border-radius: 2px;
  background: rgba(42, 23, 12, 0.35);
}

.care-log li {
  position: relative;
  display: grid;
  gap: 0.5rem;
  justify-items: start;
}

.care-log li::before {
  content: "";
  position: absolute;
  top: 0.45rem;
  left: -2rem;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--caramel-500);
  border: 3px solid var(--choc-900);
}

.update-date {
  background: var(--choc-900);
  color: var(--osso-50);
}

.update-text {
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.4;
}

.petala-cta {
  justify-self: start;
  margin-top: 0.4rem;
}

@media (max-width: 899px) {
  .petala-grid {
    grid-template-columns: 1fr;
  }

  .petala-media {
    max-width: 32rem;
  }
}

/* ── GALERIA (faixa) ────────────────────────────────────────── */
.galeria {
  background: var(--grain), var(--osso-100);
}

.galeria-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
}

.galeria-head .h2 {
  max-width: 14ch;
}

.reel-controls {
  display: flex;
  gap: 0.6rem;
}

.reel {
  --edge: max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter)));
  display: flex;
  align-items: flex-start;
  gap: clamp(0.9rem, 2vw, 1.5rem);
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding: 0.5rem var(--edge) 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--edge);
  scrollbar-width: thin;
  scrollbar-color: var(--caramel-500) transparent;
  overscroll-behavior-x: contain;
}

.reel:focus-visible {
  outline-offset: -3px;
}

.reel-item {
  flex: none;
  width: clamp(14rem, 22vw, 19rem);
  scroll-snap-align: start;
}

.reel-item:nth-child(even) {
  margin-top: clamp(1.5rem, 4vw, 3.5rem);
}

.reel-item--wide {
  width: clamp(18rem, 32vw, 27rem);
}

.reel-item a {
  display: block;
  overflow: hidden;
  border-radius: 22px;
  background: var(--caramel-300);
}

.reel-item img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out);
}

.reel-item--tall img {
  aspect-ratio: 3 / 4.2;
}

.reel-item--wide img {
  aspect-ratio: 4 / 3;
}

.reel-item a:hover img {
  transform: scale(1.05);
}

.reel-item p {
  margin-top: 0.7rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--choc-800);
}

.galeria-foot {
  margin-top: 1.5rem;
}

/* ── COMO AJUDAR ────────────────────────────────────────────── */
.ajudar {
  background:
    radial-gradient(70% 60% at 100% 0%, rgba(232, 162, 58, 0.28), transparent 70%),
    var(--grain),
    var(--caramel-100);
}

.ajudar-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(3rem, 7vw, 7rem);
  align-items: start;
}

.ajudar-head {
  display: grid;
  gap: 1.4rem;
}

.ajudar-head .lead {
  max-width: 32rem;
  color: var(--choc-800);
}

.pix--big {
  margin-top: 0.6rem;
  padding: 1.5rem 1.5rem 1.35rem 1.7rem;
  background: var(--choc-900) var(--grain);
  color: var(--osso-50);
  box-shadow: var(--shadow-deep);
  --focus: var(--ambar-claro);
}

.pix--big .pix-title {
  font-size: 1.5rem;
}

.pix--big .pix-row {
  border-top-color: rgba(233, 192, 143, 0.35);
}

.pix--big .pix-key-label {
  color: var(--caramel-300);
}

.pix--big .pix-key-value {
  font-size: clamp(1.15rem, 2vw, 1.45rem);
}

.pix--big .pix-note {
  color: var(--caramel-200);
}

.pix--big .pix-note a {
  font-weight: 800;
  color: var(--osso-50);
  text-underline-offset: 3px;
}

.pix--big .btn--action {
  background: var(--ambar);
  color: var(--choc-900);
  box-shadow: none;
}

.pix--big .btn--action:hover {
  background: var(--ambar-claro);
}

.pix--big .copy-btn.is-copied {
  background: var(--osso-50);
}

.ways {
  border-top: 2px solid var(--choc-900);
}

.way {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 1.2rem;
  padding: 1.6rem 0;
  border-bottom: 1px solid rgba(42, 23, 12, 0.3);
}

.way-icon {
  width: 40px;
  height: 40px;
  stroke-width: 1.6;
  color: var(--terracota);
}

.way h3 {
  font-variation-settings: "wdth" 85;
  font-size: 1.55rem;
  line-height: 1.1;
}

.way p {
  margin: 0.35rem 0 0.6rem;
  color: var(--choc-800);
}

.share-btn {
  padding: 0;
  font-size: inherit;
}

@media (max-width: 899px) {
  .ajudar-grid {
    grid-template-columns: 1fr;
  }
}

/* ── RODAPÉ ─────────────────────────────────────────────────── */
.site-footer {
  background: var(--grain), var(--choc-950);
  color: var(--caramel-200);
  padding-top: clamp(4rem, 8vw, 7rem);
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
}

.footer-cta {
  display: grid;
  justify-items: start;
  gap: 1.8rem;
}

.footer-line {
  max-width: 12ch;
  font-family: var(--fonte-display);
  font-variation-settings: "wdth" 75;
  font-size: clamp(2.6rem, 6.4vw, 5.6rem);
  font-weight: 800;
  line-height: 0.9;
  text-transform: uppercase;
  color: var(--osso-50);
}

.corner-bowl {
  width: clamp(12rem, 24vw, 20rem);
  height: auto;
  margin: 0 0 -0.5rem auto;
}

.cb-wall--left {
  fill: rgba(198, 138, 82, 0.1);
}

.cb-wall--right {
  fill: rgba(198, 138, 82, 0.17);
}

.cb-floor {
  fill: rgba(198, 138, 82, 0.28);
}

.cb-shadow {
  fill: rgba(0, 0, 0, 0.4);
}

.cb-body {
  fill: var(--caramel-500);
  stroke: var(--osso-100);
  stroke-width: 3;
  stroke-linejoin: round;
}

.cb-rim {
  fill: var(--caramel-400);
  stroke: var(--osso-100);
  stroke-width: 3;
}

.cb-inner {
  fill: var(--choc-700);
}

.cb-kibble circle {
  fill: var(--terracota);
  stroke: var(--choc-900);
  stroke-width: 2;
}

.cb-shine {
  fill: none;
  stroke: rgba(255, 244, 228, 0.55);
  stroke-width: 5;
  stroke-linecap: round;
}

@media (prefers-reduced-motion: no-preference) {
  .js .corner-bowl .cb-kibble circle {
    transform-box: fill-box;
    transform-origin: center;
    transform: translateY(-60px);
    opacity: 0;
    transition:
      transform 0.7s var(--ease-out),
      opacity 0.3s ease;
  }

  .js .corner-bowl.is-in .cb-kibble circle {
    transform: none;
    opacity: 1;
  }

  .js .corner-bowl .cb-kibble circle:nth-child(2) { transition-delay: 0.05s; }
  .js .corner-bowl .cb-kibble circle:nth-child(3) { transition-delay: 0.1s; }
  .js .corner-bowl .cb-kibble circle:nth-child(4) { transition-delay: 0.15s; }
  .js .corner-bowl .cb-kibble circle:nth-child(5) { transition-delay: 0.2s; }
  .js .corner-bowl .cb-kibble circle:nth-child(6) { transition-delay: 0.25s; }
  .js .corner-bowl .cb-kibble circle:nth-child(7) { transition-delay: 0.3s; }
  .js .corner-bowl .cb-kibble circle:nth-child(8) { transition-delay: 0.35s; }
  .js .corner-bowl .cb-kibble circle:nth-child(9) { transition-delay: 0.4s; }
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 2.5rem;
  margin-top: clamp(3rem, 6vw, 4.5rem);
  padding-top: clamp(2.5rem, 5vw, 3.5rem);
  border-top: 1px solid rgba(233, 192, 143, 0.2);
}

.brand--footer {
  color: var(--osso-50);
}

.brand--footer .brand-mark {
  width: 56px;
  height: 56px;
}

.footer-brand p {
  max-width: 30ch;
  margin-top: 1rem;
  font-size: 0.98rem;
}

.footer-heading {
  margin-bottom: 0.9rem;
  font-variation-settings: "wdth" 80;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--caramel-400);
}

.footer-nav ul,
.footer-contact ul {
  display: grid;
  gap: 0.55rem;
}

.footer-nav a,
.footer-contact a {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 32px;
  font-weight: 700;
  color: var(--osso-50);
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: color 0.2s ease;
}

.footer-nav a:hover,
.footer-contact a:hover {
  color: var(--ambar-claro);
}

.footer-bottom {
  margin-top: clamp(3rem, 6vw, 4rem);
  padding-block: 1.5rem;
  border-top: 1px solid rgba(233, 192, 143, 0.15);
  font-size: 0.9rem;
  color: var(--caramel-300);
}

@media (max-width: 759px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ── REVELAÇÃO NO SCROLL ────────────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal].is-pending {
    opacity: 0;
    transform: translateY(26px);
  }

  .js [data-reveal].is-revealed {
    opacity: 1;
    transform: none;
    transition:
      opacity 0.7s ease var(--delay, 0s),
      transform 0.9s var(--ease-out) var(--delay, 0s);
  }
}

/* ── LIGHTBOX ───────────────────────────────────────────────── */
.lightbox {
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--osso-50);
  --focus: var(--ambar-claro);
}

.lightbox[open] {
  display: grid;
  place-items: center;
}

.lightbox::backdrop {
  background: rgba(20, 10, 4, 0.9);
}

.lightbox-figure {
  display: grid;
  justify-items: center;
  gap: 0.9rem;
  padding: 4.5rem 1rem 1.5rem;
}

.lightbox-img {
  max-width: min(92vw, 1100px);
  max-height: calc(100vh - 11rem);
  width: auto;
  height: auto;
  border-radius: 18px;
  box-shadow: var(--shadow-deep);
}

.lightbox-caption {
  max-width: 60ch;
  font-weight: 700;
  text-align: center;
  color: var(--caramel-200);
}

.lightbox-btn {
  position: fixed;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--osso-50);
  color: var(--choc-900);
  transition: transform 0.15s var(--ease-out), background-color 0.2s ease;
}

.lightbox-btn:hover {
  background: var(--ambar);
}

.lightbox-btn:active {
  transform: scale(0.93);
}

.lightbox-close {
  top: 1rem;
  right: 1rem;
}

.lightbox-prev,
.lightbox-next {
  top: 50%;
  margin-top: -26px;
}

.lightbox-prev {
  left: 1rem;
}

.lightbox-next {
  right: 1rem;
}

@media (max-width: 699px) {
  .lightbox-prev,
  .lightbox-next {
    top: auto;
    bottom: 1rem;
    margin-top: 0;
  }

  .lightbox-figure {
    padding-bottom: 5.5rem;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .lightbox[open] .lightbox-figure {
    animation: lightbox-in 0.4s var(--ease-out);
  }

  .lightbox[open]::backdrop {
    animation: backdrop-in 0.3s ease;
  }
}

@keyframes lightbox-in {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
}

@keyframes backdrop-in {
  from {
    opacity: 0;
  }
}

/* ── PÁGINA DA GALERIA ──────────────────────────────────────── */
.page-hero {
  padding: calc(var(--header-h) + clamp(3rem, 8vw, 6rem)) 0 clamp(3rem, 6vw, 5rem);
  background:
    radial-gradient(60% 90% at 100% 100%, rgba(198, 138, 82, 0.45), transparent 70%),
    var(--grain),
    var(--areia);
}

.page-hero-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem 3rem;
}

.page-hero .display {
  color: var(--choc-900);
}

.page-hero p {
  max-width: 34rem;
  color: var(--choc-800);
}

.back-link {
  margin-bottom: 1.5rem;
  color: var(--choc-900);
}

.back-link .icon {
  transform: scaleX(-1);
}

.text-link.back-link:hover .icon[class] {
  transform: scaleX(-1) translateX(3px);
}

.galeria-page {
  background: var(--grain), var(--caramel-100);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.chip {
  min-height: 44px;
  padding: 0.55rem 1.15rem;
  border: 2px solid var(--choc-900);
  border-radius: 999px;
  font-weight: 800;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

.chip:hover {
  background: var(--osso-100);
}

.chip[aria-pressed="true"] {
  background: var(--choc-900);
  color: var(--osso-50);
}

.masonry {
  columns: 3 18rem;
  column-gap: clamp(0.9rem, 2vw, 1.5rem);
}

.masonry-item {
  break-inside: avoid;
  margin-bottom: clamp(0.9rem, 2vw, 1.5rem);
}

.masonry-item[hidden] {
  display: none;
}

.masonry-item a {
  display: block;
  overflow: hidden;
  border-radius: 20px;
  background: var(--caramel-300);
}

.masonry-item img {
  width: 100%;
  transition: transform 0.7s var(--ease-out);
}

.masonry-item a:hover img {
  transform: scale(1.04);
}

.video-tile {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: var(--choc-900);
}

.masonry-item video {
  width: 100%;
  height: auto;
  background: var(--choc-900);
}

.video-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(to top, rgba(30, 16, 8, 0.45), transparent 55%);
}

.video-play-disc {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--osso-50);
  color: var(--choc-900);
  box-shadow: var(--shadow-deep);
  transition: transform 0.25s var(--ease-out), background-color 0.2s ease;
}

.video-play:hover .video-play-disc {
  transform: scale(1.08);
  background: var(--ambar);
}

.video-play:focus-visible {
  outline-offset: -6px;
}

.video-play[hidden] {
  display: none;
}

.masonry-item figcaption {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.55rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--choc-800);
}

.masonry-item figcaption .icon {
  color: var(--terracota);
}

@media (max-width: 599px) {
  .masonry {
    columns: 2;
  }
}

[tabindex="-1"]:focus:not(:focus-visible) {
  outline: none;
}
