/* ==========================================================================
   JOIA RARA — DESIGN SYSTEM (SUNDAY TEMPLATE ARCHITECTURE)
   ========================================================================== */

:root {
  --color-off-black: #1a1a1a;
  --color-off-black-60: #1a1a1aa1;
  --color-off-black-50: #1a1a1a80;
  --color-off-black-10: #1a1a1a1a;
  --color-off-black-05: #1a1a1a0d;

  --color-white: #ffffff;
  --color-warm-grey: #f3f3f0;
  --color-warm-grey-dark: #ecece8;
  --color-grey-dark: #e6e6e6;

  --color-yellow: #f7e731;
  --color-yellow-tint: #faf7eb;
  --color-blue-tint: #d9ecee;
  --color-blue: #3b6cf3;
  --color-green-tint: #aec2b8;
  --color-red: #914621;

  --color-bg: var(--color-white);
  --color-surface: var(--color-warm-grey);
  --color-surface-secondary: var(--color-warm-grey-dark);
  --color-primary: var(--color-off-black);
  --color-secondary: var(--color-off-black-60);
  --color-border: var(--color-off-black-10);
  --color-accent: var(--color-yellow);

  --color-nav-bg: rgba(255, 255, 255, 0.86);
  --color-nav-border: rgba(26, 26, 26, 0.12);
  --color-nav-primary: #1a1a1a;
  --color-nav-secondary: #1a1a1aa1;
  --color-nav-button-hover: rgba(26, 26, 26, 0.06);

  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'Space Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-pill: 9999px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --container-max: 1280px;
  --editorial-max: 760px;
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--color-yellow);
  color: var(--color-primary);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  background-color: var(--color-white);
  color: var(--color-primary);
  font-family: var(--font-sans);
  overflow-x: clip;
}

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

button, input, select {
  font: inherit;
  color: inherit;
}

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

/* ==========================================================================
   TYPOGRAPHY SCALE (EXACT SUNDAY PROPORTIONS)
   ========================================================================== */

.display-2 {
  font-family: var(--font-sans);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-size: clamp(2.625rem, 6.2vw, 6.5rem);
  margin: 0;
}

.heading-1 {
  font-family: var(--font-sans);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-size: clamp(2.35rem, 4.8vw, 4.75rem);
  margin: 0;
}

.heading-2 {
  font-family: var(--font-sans);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.025em;
  font-size: clamp(1.75rem, 3.2vw, 3rem);
  margin: 0;
}

.heading-3 {
  font-family: var(--font-sans);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-size: clamp(1.375rem, 2.2vw, 2rem);
  margin: 0;
}

.body-1 {
  font-family: var(--font-sans);
  font-weight: 500;
  line-height: 1.45;
  font-size: clamp(1rem, 1.3vw, 1.25rem);
  margin: 0;
}

.body-2 {
  font-family: var(--font-sans);
  font-weight: 500;
  line-height: 1.45;
  font-size: clamp(0.9rem, 1.1vw, 1.0625rem);
  margin: 0;
}

.body-3 {
  font-family: var(--font-sans);
  font-weight: 500;
  line-height: 1.45;
  font-size: clamp(0.78rem, 0.9vw, 0.875rem);
  margin: 0;
}

.label-1 {
  font-family: var(--font-mono);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: 0.025em;
  font-size: clamp(0.75rem, 0.85vw, 0.875rem);
}

.label-2 {
  font-family: var(--font-mono);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: 0.03em;
  font-size: clamp(0.65rem, 0.75vw, 0.75rem);
}

.text-secondary {
  color: var(--color-secondary);
}

/* ==========================================================================
   PRELOADER CURTAIN (#f7e731)
   ========================================================================== */

.preloader-curtain {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background-color: var(--color-yellow);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  transition: transform 0.75s var(--ease-out), opacity 0.55s ease;
  pointer-events: all;
}

.preloader-curtain.is-done {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

.preloader-mark {
  width: 44px;
  height: 44px;
  animation: pulseMark 1.2s ease-in-out infinite;
}

@keyframes pulseMark {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.08) rotate(12deg); }
}

/* ==========================================================================
   FLOATING PILL NAVBAR (60px)
   ========================================================================== */

.site-header {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  width: min(330px, calc(100vw - 24px));
  transition: width 0.42s var(--ease-out);
}

.site-header.is-open {
  width: min(820px, calc(100vw - 24px));
}

.nav-shell {
  background: var(--color-nav-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--color-nav-border);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header.is-open .nav-shell {
  background: var(--color-white);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.14);
}

.nav-bar {
  height: 60px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand-icon {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: transform 0.3s var(--ease-out);
}

.nav-brand-icon:hover {
  transform: rotate(45deg);
}

.nav-wordmark {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-nav-primary);
}

.nav-toggle {
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background-color 0.2s ease;
}

.nav-toggle:hover {
  background: var(--color-nav-button-hover);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.75px;
  background: var(--color-nav-primary);
  border-radius: 2px;
  transition: transform 0.3s var(--ease-out);
}

.site-header.is-open .nav-toggle span:first-child {
  transform: translateY(3.8px) rotate(45deg);
}

.site-header.is-open .nav-toggle span:last-child {
  transform: translateY(-3.8px) rotate(-45deg);
}

.nav-drawer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.42s var(--ease-out);
}

.site-header.is-open .nav-drawer {
  grid-template-rows: 1fr;
}

.nav-drawer-inner {
  overflow: hidden;
}

.nav-drawer-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 24px;
  padding: 12px 24px 20px;
  border-top: 1px solid var(--color-border);
}

.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  transition: background-color 0.2s ease;
}

.nav-links a:hover {
  background-color: var(--color-off-black-05);
}

.nav-story-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  cursor: pointer;
  border: 1px solid var(--color-border);
  background: #141414;
  padding: 0;
  width: 100%;
  text-align: left;
}

.nav-story-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

.nav-story-card:hover img {
  transform: scale(1.04);
}

.nav-story-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(to top, rgba(0,0,0,0.45), rgba(0,0,0,0.08));
}

.nav-story-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.92);
  color: var(--color-off-black);
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.nav-drawer-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 24px 18px;
  border-top: 1px solid var(--color-border);
  background: var(--color-warm-grey);
}

/* ==========================================================================
   RIGHT-EDGE FLOATING TOC PROGRESS PILL (SM+)
   ========================================================================== */

.toc-floating {
  position: fixed;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 900;
  display: none;
}

@media (min-width: 900px) {
  .toc-floating {
    display: block;
  }
}

.toc-pill {
  width: 40px;
  padding: 12px 10px;
  border-radius: var(--radius-md);
  background: rgba(236, 236, 232, 0.85);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  transition: transform 0.25s var(--ease-out), background-color 0.2s ease;
}

.toc-pill:hover {
  background: var(--color-warm-grey-dark);
  transform: scale(1.03);
}

.toc-bar {
  width: 4px;
  height: 22px;
  border-radius: 99px;
  background: rgba(26, 26, 26, 0.16);
  overflow: hidden;
  position: relative;
}

.toc-bar-fill {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 0%;
  background: var(--color-off-black);
  border-radius: 99px;
  transition: height 0.15s linear;
}

.toc-drawer {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%) scale(0.96);
  width: 310px;
  background: rgba(236, 236, 232, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 12px;
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.14);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s var(--ease-out), transform 0.28s var(--ease-out);
}

.toc-floating.is-open .toc-pill {
  opacity: 0;
  pointer-events: none;
}

.toc-floating.is-open .toc-drawer {
  opacity: 1;
  pointer-events: all;
  transform: translateY(-50%) scale(1);
}

.toc-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 6px 10px;
}

.toc-close {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 0;
  background: transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.toc-close:hover {
  background: var(--color-off-black-10);
}

.toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.toc-item {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 12px;
  align-items: center;
  padding: 8px;
  border-radius: var(--radius-md);
  transition: background-color 0.2s ease;
}

.toc-item:hover,
.toc-item.is-active {
  background: rgba(255, 255, 255, 0.85);
}

.toc-thumb {
  width: 84px;
  aspect-ratio: 16 / 9;
  border-radius: 7px;
  object-fit: cover;
  background: #d8d8d2;
}

.toc-item-title {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-off-black);
}

.toc-item-sub {
  display: block;
  font-size: 0.78rem;
  color: var(--color-secondary);
  margin-top: 2px;
}

/* ==========================================================================
   BUTTONS & PILLS
   ========================================================================== */

.btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: var(--radius-pill);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease-out), background-color 0.2s ease, border-color 0.2s ease;
}

.btn-pill:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--color-off-black);
  color: var(--color-white);
}

.btn-primary:hover {
  background: #2e2e2e;
}

.btn-secondary {
  background: var(--color-warm-grey);
  color: var(--color-off-black);
  border-color: var(--color-border);
}

.btn-secondary:hover {
  background: var(--color-warm-grey-dark);
}

.btn-white {
  background: var(--color-white);
  color: var(--color-off-black);
  border-color: var(--color-border);
}

.btn-white:hover {
  background: var(--color-warm-grey);
}

/* ==========================================================================
   ANIMATED MARCHING-ANTS UNDERLINE TOOLTIPS
   ========================================================================== */

.marching-term {
  position: relative;
  display: inline;
  cursor: pointer;
  background-image: linear-gradient(90deg, var(--color-off-black) 50%, transparent 50%);
  background-size: 10px 1.5px;
  background-repeat: repeat-x;
  background-position: 0 100%;
  padding-bottom: 2px;
  animation: marching-ants 0.9s linear infinite;
}

@keyframes marching-ants {
  from { background-position: 0 100%; }
  to { background-position: 10px 100%; }
}

.floating-tooltip {
  position: fixed;
  z-index: 1200;
  max-width: 310px;
  background: var(--color-off-black);
  color: var(--color-white);
  padding: 14px 16px;
  border-radius: var(--radius-md);
  font-size: 0.84rem;
  line-height: 1.45;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s var(--ease-out);
}

.floating-tooltip.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* ==========================================================================
   SECTIONS & CONTAINERS
   ========================================================================== */

.section-block {
  position: relative;
  transition: background-color 0.35s ease;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.editorial-container {
  width: 100%;
  max-width: var(--editorial-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   SECTION 1: HERO (#introducao) WITH SCROLL-DRIVEN EXPANSION
   ========================================================================== */

.hero-section {
  padding-top: 124px;
  padding-bottom: 56px;
  background: var(--color-white);
}

.hero-header {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 0 20px;
  margin-bottom: 42px;
}

.hero-media-stage {
  --hero-inset: 48px;
  padding: 0 var(--hero-inset);
  transition: padding 0.12s linear;
}

@media (max-width: 768px) {
  .hero-media-stage {
    --hero-inset: 16px;
  }
}

/* ==========================================================================
   CINEMATIC MOTION REEL PLAYER (VIDEO-DYNAMIC ENGINE)
   ========================================================================== */

.motion-reel {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #171717;
  border: 1px solid var(--color-border);
  user-select: none;
}

.motion-reel-hero {
  aspect-ratio: 16 / 9;
  max-height: 78vh;
}

.motion-reel-frames {
  position: absolute;
  inset: 0;
}

.motion-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.3s ease;
  will-change: transform, opacity;
}

.motion-frame.is-active {
  opacity: 1;
  animation: kenBurns var(--reel-duration, 14s) ease-in-out infinite alternate;
}

.motion-reel.is-paused .motion-frame.is-active {
  animation-play-state: paused;
}

@keyframes kenBurns {
  0% { transform: scale(1.02) translate3d(-1.2%, -0.8%, 0); }
  100% { transform: scale(1.11) translate3d(1.4%, 0.8%, 0); }
}

.motion-reel-vignette {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.24) 0%, transparent 28%),
    linear-gradient(to top, rgba(0, 0, 0, 0.56) 0%, transparent 40%);
  pointer-events: none;
}

.reel-top-left {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 8px;
}

.reel-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: 8px;
  background: rgba(20, 20, 20, 0.56);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
}

.reel-speed-btn {
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.reel-speed-btn:hover {
  background: rgba(20, 20, 20, 0.82);
}

.reel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-yellow);
}

.reel-enlarge-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 4;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(20, 20, 20, 0.56);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.reel-enlarge-btn:hover {
  background: rgba(20, 20, 20, 0.84);
  transform: scale(1.05);
}

.reel-bottom-bar {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.reel-play-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.reel-play-btn {
  width: 34px;
  height: 34px;
  border-radius: 99px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(20, 20, 20, 0.62);
  backdrop-filter: blur(12px);
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.reel-caption {
  color: rgba(255, 255, 255, 0.94);
  font-size: 0.86rem;
  font-weight: 500;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}

.reel-progress-track {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.2);
  z-index: 5;
}

.reel-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--color-yellow);
}

/* ==========================================================================
   SECTION 2: MISSION EDITORIAL + OUR STORY CARD
   ========================================================================== */

.mission-section {
  padding: 64px 0 96px;
  background: var(--color-white);
}

.mission-layout {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.mission-copy {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.story-trigger-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--color-border);
  cursor: pointer;
  padding: 0;
  background: #1a1a1a;
  width: 100%;
}

.story-trigger-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

.story-trigger-card:hover img {
  transform: scale(1.04);
}

.story-trigger-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.52), rgba(0,0,0,0.06));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

/* ==========================================================================
   SECTION 3: RITUAIS / SKILL LIBRARY (#rituais, #faf7eb)
   ========================================================================== */

.services-section {
  background: var(--color-yellow-tint);
  padding: 96px 0 112px;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.services-intro {
  max-width: 780px;
  margin-bottom: 72px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.service-block {
  margin-bottom: 88px;
}

.service-block:last-child {
  margin-bottom: 0;
}

.service-block-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.service-block-head-copy {
  max-width: 660px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Carousel */
.reel-carousel-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.carousel-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border);
  background: var(--color-white);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.carousel-btn:hover {
  background: var(--color-warm-grey-dark);
}

.reel-carousel-viewport {
  overflow: hidden;
  border-radius: var(--radius-md);
}

.reel-carousel-track {
  display: flex;
  transition: transform 0.55s var(--ease-out);
}

.reel-slide {
  min-width: 100%;
}

.carousel-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.carousel-dot {
  height: 8px;
  width: 8px;
  border-radius: 99px;
  border: 0;
  padding: 0;
  background: rgba(26, 26, 26, 0.2);
  cursor: pointer;
  transition: width 0.28s var(--ease-out), background-color 0.25s ease;
}

.carousel-dot.is-active {
  width: 28px;
  background: var(--color-off-black);
}

.timeline-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}

.timeline-chip {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* ==========================================================================
   SECTION 4: TERAPEUTAS / PROTOCOLO SENSORIAL (#terapeutas)
   ========================================================================== */

.technology-section {
  background: var(--color-white);
  padding: 108px 0;
}

.tech-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 56px;
}

.tech-portrait-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-warm-grey);
  border: 1px solid var(--color-border);
  aspect-ratio: 4 / 5;
  max-height: 540px;
  margin-left: auto;
}

.tech-portrait-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tech-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}

/* ==========================================================================
   SECTION 5: DESIGNED FOR REAL USE (#experiencia)
   ========================================================================== */

.design-section {
  background: var(--color-warm-grey);
  padding: 96px 0 108px;
  border-top: 1px solid var(--color-border);
}

.design-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
  margin-bottom: 42px;
}

.segmented-pill-wrap {
  position: sticky;
  top: 88px;
  z-index: 40;
  display: inline-flex;
  padding: 5px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
  border: 1px solid var(--color-border);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.seg-btn {
  border: 0;
  background: transparent;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-secondary);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.seg-btn.is-active {
  background: var(--color-off-black);
  color: var(--color-white);
}

.design-panel {
  display: none;
}

.design-panel.is-active {
  display: block;
  animation: fadeUp 0.35s var(--ease-out);
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Features 4-card grid/carousel */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.feature-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  min-height: 420px;
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.feature-card--dark {
  background: #141414;
  color: #ffffff;
}

.feature-card--dark img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.82;
}

.feature-card--dark .feature-card-body {
  position: relative;
  z-index: 2;
  padding: 24px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.62), transparent);
}

.feature-card--cream {
  background: var(--color-yellow-tint);
  padding: 24px;
  gap: 18px;
}

.feature-card--cream .feature-inset-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}

.feature-card--white {
  background: var(--color-white);
  padding: 24px;
  gap: 18px;
}

.feature-card--white .feature-inset-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-md);
}

/* 360° Interactive Viewer */
.viewer-360-stage {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: clamp(360px, 56vh, 560px);
  background: #181818;
  border: 1px solid var(--color-border);
  cursor: grab;
  user-select: none;
  touch-action: pan-y;
}

.viewer-360-stage:active {
  cursor: grabbing;
}

.viewer-360-pano {
  position: absolute;
  inset: 0;
  background-image: url('../img/suite-360-pan.jpg');
  background-size: auto 100%;
  background-repeat: repeat-x;
  background-position: 0px center;
}

.viewer-360-hud {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  color: var(--color-off-black);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
}

/* Anatomy Wireframe + Hotspots */
.anatomy-stage {
  position: relative;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 36px 24px 24px;
  overflow: hidden;
}

.anatomy-diagram-wrap {
  position: relative;
  max-width: 820px;
  margin: 0 auto 24px;
  aspect-ratio: 16 / 9;
}

.anatomy-svg {
  width: 100%;
  height: 100%;
}

.hotspot-btn {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid var(--color-off-black);
  background: var(--color-white);
  color: var(--color-off-black);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  transition: transform 0.2s var(--ease-out), background-color 0.2s ease, color 0.2s ease;
}

.hotspot-btn:hover,
.hotspot-btn.is-active {
  background: var(--color-off-black);
  color: var(--color-yellow);
  transform: translate(-50%, -50%) scale(1.12);
}

.anatomy-callout-bar {
  background: var(--color-blue-tint);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.anatomy-callout-bar.is-hidden {
  display: none;
}

/* ==========================================================================
   SECTION 6: INTERACTIVE POLAROID POLL (#d9ecee WHEN ACTIVE)
   ========================================================================== */

.poll-section {
  background: var(--color-white);
  padding: 96px 0;
  border-top: 1px solid var(--color-border);
  transition: background-color 0.45s ease;
}

.poll-section.is-active {
  background: var(--color-blue-tint);
}

.poll-intro {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.poll-stage {
  display: none;
  margin-top: 40px;
}

.poll-section.is-active .poll-stage {
  display: block;
  animation: fadeUp 0.4s var(--ease-out);
}

.polaroid-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-bottom: 32px;
}

.polaroid-card {
  background: var(--color-white);
  padding: 12px 12px 22px;
  border-radius: 6px;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.1);
  border: 2px solid transparent;
  cursor: pointer;
  text-align: left;
  transition: transform 0.3s var(--ease-out), border-color 0.2s ease, box-shadow 0.25s ease;
}

.polaroid-card:nth-child(odd) { transform: rotate(-2deg); }
.polaroid-card:nth-child(even) { transform: rotate(2deg); }

.polaroid-card:hover {
  transform: rotate(0deg) translateY(-6px);
}

.polaroid-card.is-selected {
  transform: rotate(0deg) translateY(-8px);
  border-color: var(--color-off-black);
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.16);
}

.polaroid-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 3px;
  margin-bottom: 14px;
}

.polaroid-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

/* ==========================================================================
   SECTION 7: FAQ SINGLE-OPEN ACCORDION (#duvidas)
   ========================================================================== */

.faq-section {
  background: var(--color-white);
  padding: 96px 0;
  border-top: 1px solid var(--color-border);
}

.faq-list {
  margin-top: 36px;
  border-top: 1px solid var(--color-border);
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-trigger {
  width: 100%;
  background: transparent;
  border: 0;
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
  cursor: pointer;
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  font-weight: 600;
  letter-spacing: -0.015em;
}

.faq-chevron {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  transition: transform 0.3s var(--ease-out);
}

.faq-item.is-open .faq-chevron {
  transform: rotate(180deg);
}

.faq-content {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.32s var(--ease-out);
}

.faq-item.is-open .faq-content {
  grid-template-rows: 1fr;
}

.faq-content-inner {
  overflow: hidden;
}

.faq-content-body {
  padding-bottom: 24px;
  color: var(--color-secondary);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ==========================================================================
   SECTION 8 & 9: CLUB CTA CARD & CONCIERGE STRIP
   ========================================================================== */

.cta-cards-wrap {
  background: var(--color-white);
  padding: 16px 24px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.founding-card {
  max-width: var(--container-max);
  width: 100%;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  background: var(--color-warm-grey);
  border: 1px solid var(--color-border);
  padding: clamp(44px, 7vw, 88px) clamp(24px, 5vw, 64px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.newsletter-strip {
  max-width: var(--container-max);
  width: 100%;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  background: var(--color-yellow-tint);
  border: 1px solid var(--color-border);
  padding: 28px clamp(24px, 4vw, 48px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* ==========================================================================
   SECTION 10: FOOTER & YELLOW REVEAL CURTAIN (#f7e731)
   ========================================================================== */

.site-footer-wrap {
  background: var(--color-yellow);
}

.site-footer {
  background: var(--color-white);
  border-bottom-left-radius: 28px;
  border-bottom-right-radius: 28px;
  padding: 64px 24px 48px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
}

.footer-inner {
  max-width: var(--container-max);
  margin: 0 auto;
}

.footer-tagline {
  text-align: center;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-bottom: 42px;
}

.footer-col-title {
  color: var(--color-secondary);
  margin-bottom: 14px;
  display: block;
}

.footer-col-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col-links a:hover {
  text-decoration: underline;
}

.footer-copy {
  text-align: center;
  color: var(--color-secondary);
}

.yellow-reveal-panel {
  background: var(--color-yellow);
  padding: 44px 24px 52px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.reveal-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.reveal-pill {
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(26, 26, 26, 0.3);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--color-off-black);
}

/* ==========================================================================
   MODALS & BOTTOM-SHEET BOOKING DRAWER
   ========================================================================== */

dialog.media-dialog {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: min(1120px, 94vw);
  width: 100%;
  overflow: visible;
}

dialog.media-dialog::backdrop {
  background: rgba(14, 14, 14, 0.84);
  backdrop-filter: blur(18px);
}

.dialog-shell {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #ffffff;
}

.dialog-close-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1500;
  background: rgba(16, 16, 16, 0.56);
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.sheet-backdrop.is-open {
  opacity: 1;
  pointer-events: all;
}

.bottom-sheet {
  width: min(560px, 100vw);
  background: var(--color-white);
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  overflow: hidden;
  transform: translateY(100%);
  transition: transform 0.38s var(--ease-out);
  box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.22);
}

.sheet-backdrop.is-open .bottom-sheet {
  transform: translateY(0);
}

.sheet-handle {
  width: 44px;
  height: 5px;
  border-radius: 99px;
  background: rgba(26, 26, 26, 0.16);
  margin: 12px auto 6px;
}

.sheet-body {
  padding: 18px 28px 24px;
}

.sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.sheet-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-group label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--color-secondary);
}

.field-group input,
.field-group select {
  width: 100%;
  padding: 13px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: var(--color-warm-grey);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.field-group input:focus,
.field-group select:focus {
  border-color: var(--color-off-black);
  background: var(--color-white);
}

.sheet-legal {
  background: var(--color-warm-grey);
  padding: 14px 28px 18px;
  border-top: 1px solid var(--color-border);
  font-size: 0.76rem;
  color: var(--color-secondary);
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */

@media (max-width: 1024px) {
  .features-grid,
  .polaroid-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .mission-layout,
  .tech-hero-grid {
    grid-template-columns: 1fr;
  }

  .tech-portrait-card {
    margin: 0;
    max-width: 420px;
  }
}

@media (max-width: 720px) {
  .nav-drawer-grid {
    grid-template-columns: 1fr;
  }

  .timeline-strip,
  .features-grid,
  .polaroid-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .polaroid-card:nth-child(odd),
  .polaroid-card:nth-child(even) {
    transform: none;
  }
}
