:root {
  --cx-navy: #04140c;
  --cx-ink: #eaf7f0;
  --cx-green: #1ecf7a;
  --cx-lime: #b6f26d;
  --cx-pad: clamp(1.25rem, 4vw, 2.75rem);
  --cx-max: 1180px;
  --font-display: "Sora", "Segoe UI", sans-serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--cx-ink);
  background: var(--cx-navy);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2 { font-family: var(--font-display); margin: 0; }
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
.cx-cursor {
  position: fixed;
  top: 0; left: 0; z-index: 9999;
  width: 28px; height: 28px;
  margin: -14px 0 0 -14px;
  pointer-events: none;
  opacity: 0;
  color: var(--cx-green);
  transition: opacity 0.25s ease, width 0.25s var(--ease), height 0.25s var(--ease), margin 0.25s var(--ease);
  will-change: transform;
}
.cx-cursor.is-on { opacity: 1; }
.cx-cursor.is-hover { width: 42px; height: 42px; margin: -21px 0 0 -21px; }
.cx-cursor svg { display: block; width: 100%; height: 100%; filter: drop-shadow(0 0 8px rgba(30, 207, 122, 0.4)); }
@media (hover: none), (pointer: coarse) { .cx-cursor { display: none !important; } }

/* ——— Até logo / story ——— */
body.page-ate-logo {
  background: var(--cx-navy);
  color: var(--cx-ink);
}
body.page-ate-logo main {
  background: var(--cx-navy);
}
.story-page {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: var(--cx-ink);
}
.story-page__glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 70% 40% at 50% 0%, rgba(30, 207, 122, 0.14), transparent 55%),
    radial-gradient(ellipse 50% 35% at 85% 40%, rgba(11, 122, 77, 0.12), transparent 60%);
}
.story-hero {
  position: relative;
  z-index: 1;
  padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(3rem, 6vw, 4.5rem);
  text-align: center;
}
.story-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.35) 55%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.35) 55%, transparent 100%);
}
.story-hero__media picture,
.story-hero__media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 28%;
  filter: saturate(0.65) contrast(1.05) brightness(0.55);
}
.story-hero__shade {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(4, 20, 12, 0.55) 0%, rgba(4, 20, 12, 0.72) 55%, var(--cx-navy) 100%);
}
.story-hero__inner {
  position: relative;
  z-index: 1;
  width: min(100% - 2 * var(--cx-pad), 46rem);
  margin-inline: auto;
}
.story-brand {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}
.story-brand img {
  height: clamp(28px, 3.5vw, 36px);
  width: auto;
}
.story-eyebrow {
  margin: 0 0 1rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cx-lime);
}
.story-hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.5rem);
  font-weight: 300;
  letter-spacing: -0.04em;
  line-height: 1.08;
  margin: 0 0 1.25rem;
  color: #fff;
}
.story-hero h1 em {
  font-style: normal;
  font-weight: 500;
  color: var(--cx-lime);
}
.story-lead {
  margin: 0 auto;
  max-width: 38rem;
  color: rgba(234, 247, 240, 0.82);
  font-size: clamp(1.02rem, 1.6vw, 1.15rem);
  line-height: 1.65;
}

.story-timeline {
  position: relative;
  z-index: 1;
  padding: 0 0 clamp(3rem, 7vw, 5rem);
}
.story-timeline__list {
  position: relative;
  width: min(100% - 2 * var(--cx-pad), 44rem);
  margin: 0 auto;
  padding: 0;
  list-style: none;
}
.story-timeline__list::before {
  content: "";
  position: absolute;
  left: 0.55rem;
  top: 0.35rem;
  bottom: 0.35rem;
  width: 1px;
  background: linear-gradient(180deg, rgba(30, 207, 122, 0.55), rgba(30, 207, 122, 0.08));
}
.story-chapter {
  position: relative;
  padding: 0 0 clamp(2.25rem, 5vw, 3.25rem) 2.15rem;
}
.story-chapter:last-child { padding-bottom: 0; }
.story-chapter__marker {
  position: absolute;
  left: 0;
  top: 0.35rem;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  background: var(--cx-navy);
  border: 2px solid var(--cx-green);
  box-shadow: 0 0 0 4px rgba(30, 207, 122, 0.12);
}
.story-chapter__index {
  display: inline-block;
  margin-bottom: 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cx-lime);
}
.story-chapter h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  color: #fff;
  margin: 0 0 0.85rem;
}
.story-chapter p {
  margin: 0 0 0.9rem;
  color: rgba(234, 247, 240, 0.8);
  font-size: clamp(0.98rem, 1.4vw, 1.08rem);
  line-height: 1.7;
}
.story-chapter p:last-child { margin-bottom: 0; }
.story-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}
.story-tags li {
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(30, 207, 122, 0.22);
  background: rgba(30, 207, 122, 0.08);
  color: rgba(234, 247, 240, 0.88);
  font-size: 0.86rem;
  font-weight: 500;
}
.story-years {
  margin: 1.15rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.65rem;
}
.story-years li {
  display: grid;
  grid-template-columns: 3.4rem 1fr;
  gap: 0.85rem;
  align-items: baseline;
  color: rgba(234, 247, 240, 0.8);
  font-size: clamp(0.95rem, 1.3vw, 1.04rem);
  line-height: 1.55;
}
.story-years strong {
  color: var(--cx-lime);
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}
.story-pull {
  margin: 1.15rem 0 0;
  padding: 1rem 0 0;
  border-top: 1px solid rgba(30, 207, 122, 0.2);
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.45;
  color: #fff;
}

.story-close {
  position: relative;
  z-index: 1;
  padding: clamp(3rem, 7vw, 5rem) 0 clamp(4rem, 8vw, 6rem);
  text-align: center;
  background:
    linear-gradient(180deg, transparent, rgba(30, 207, 122, 0.06) 40%, transparent);
}
.story-close__inner {
  width: min(100% - 2 * var(--cx-pad), 40rem);
  margin-inline: auto;
}
.story-mascot {
  display: flex;
  justify-content: center;
  margin: 0 auto 1.35rem;
  max-width: 240px;
}
.story-mascot picture,
.story-mascot img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 18px 40px rgba(30, 207, 122, 0.18));
  animation: mascotWave 2.8s var(--ease) infinite;
  transform-origin: 65% 20%;
}
@keyframes mascotWave {
  0%, 100% { transform: rotate(0deg) translateY(0); }
  35% { transform: rotate(-3deg) translateY(-4px); }
  55% { transform: rotate(2deg) translateY(-2px); }
}
@media (prefers-reduced-motion: reduce) {
  .story-mascot img { animation: none; }
}
.story-close h2 {
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  font-weight: 300;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin: 0 0 1.5rem;
  color: #fff;
}
.story-close h2 em {
  font-style: normal;
  font-weight: 500;
  color: var(--cx-lime);
}
.story-close__thanks {
  margin: 0 0 1.25rem;
  color: rgba(234, 247, 240, 0.78);
  font-size: 1.05rem;
  line-height: 1.6;
}
.story-sign {
  margin: 0;
  color: rgba(234, 247, 240, 0.58);
  font-size: 0.98rem;
  line-height: 1.55;
}
.story-sign strong {
  display: inline-block;
  margin-top: 0.2rem;
  color: var(--cx-lime);
  font-weight: 600;
}

.farewell-cookie {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 50;
  appearance: none;
  border: 1px solid rgba(234, 247, 240, 0.14);
  background: rgba(4, 20, 12, 0.72);
  color: rgba(234, 247, 240, 0.55);
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  backdrop-filter: blur(10px);
}
.farewell-cookie:hover,
.farewell-cookie:focus-visible {
  color: #fff;
  border-color: rgba(30, 207, 122, 0.35);
  outline: none;
}

@media (max-width: 640px) {
  .story-timeline__list::before { left: 0.45rem; }
  .story-chapter { padding-left: 1.85rem; }
  .story-chapter__marker {
    width: 1rem;
    height: 1rem;
    left: 0;
  }
}
