@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Manrope:wght@300;400;500;600;700;800&display=swap');

:root {
  --bg-deep: #050510;
  --bg-card: rgba(255,255,255,0.03);
  --gold: #d4a853;
  --amber: #e8b84b;
  --slate: #2a3440;
  --teal: #3d7a7a;
  --warm-beige: #e8c4a0;
  --cream: #f0e8d8;
  --app-white: #f0f0f0;
  --glass-bg: rgba(5,5,16,0.78);
  --glass-border: rgba(212,168,83,0.12);
  --card-radius: 20px;
  --font-display: 'Bebas Neue', 'Impact', sans-serif;
  --font-body: 'Manrope', 'Segoe UI', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  background: var(--bg-deep);
  font-family: var(--font-body);
  color: var(--app-white);
  overflow: hidden;
  width: 100%;
  height: 100%;
}

.reveal {
  background: linear-gradient(135deg, #050510 0%, #0a0a20 25%, #151025 50%, #080812 75%, #050510 100%);
  background-size: 400% 400%;
  animation: gradientShift 20s ease infinite;
  width: 100%;
  height: 100%;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  33% { background-position: 100% 50%; }
  66% { background-position: 50% 100%; }
  100% { background-position: 0% 50%; }
}

.reveal .slides { z-index: 1; }
.reveal .slides section { padding: 20px 36px; }

.reveal .slides > section,
.reveal .slides > section > section {
  height: 100%;
  min-height: 100%;
  box-sizing: border-box;
}

.reveal h1, .reveal h2, .reveal h3, .reveal h4 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 400;
}

.reveal h1 {
  font-size: clamp(4.2em, 10vw, 8.5em);
  background: linear-gradient(135deg, var(--gold), var(--amber), var(--warm-beige));
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmerText 5s ease infinite;
  line-height: 1.05;
}

@keyframes shimmerText {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.reveal h2 {
  font-size: clamp(2.6em, 5.5vw, 4em);
  background: linear-gradient(135deg, var(--gold), var(--amber));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.35em;
  line-height: 1.12;
  padding-top: 0.04em;
}

.reveal h3 {
  font-size: clamp(1.5em, 3vw, 2.2em);
  color: var(--amber);
  margin-bottom: 0.5em;
}

.reveal h4 {
  font-size: clamp(0.95em, 1.8vw, 1.25em);
  color: var(--warm-beige);
}

.reveal p, .reveal li {
  font-family: var(--font-body);
  font-size: clamp(1em, 2vw, 1.3em);
  line-height: 1.7;
  color: rgba(255,255,255,0.7);
}

.reveal .subtitle {
  font-size: clamp(1.4em, 2.8vw, 2em);
  color: var(--warm-beige);
  font-weight: 300;
  margin-top: 0.4em;
}

/* gradient overlays for image backgrounds */
.gradient-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.gradient-overlay.dark {
  background: linear-gradient(135deg, rgba(5,5,16,0.96) 25%, rgba(5,5,16,0.7) 60%, rgba(5,5,16,0.92) 100%);
}

.gradient-overlay.gold {
  background: linear-gradient(135deg, rgba(5,5,16,0.88) 40%, rgba(212,168,83,0.15) 80%, rgba(5,5,16,0.9) 100%);
}

.gradient-overlay.slate {
  background: linear-gradient(135deg, rgba(5,5,16,0.9) 30%, rgba(42,52,64,0.3) 100%);
}

/* slide backgrounds with images */
.has-bg { position: relative; }

.has-bg .bg-img {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

.cover-team {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: clamp(8px, 1vw, 14px);
  margin-top: clamp(24px, 4vh, 40px);
  max-width: 100%;
}

.cover-team .badge {
  font-size: clamp(1em, 1.5vw, 1.2em);
  padding: clamp(8px, 1vw, 12px) clamp(16px, 1.6vw, 24px);
  border-radius: 999px;
  white-space: nowrap;
}

.slide-compact .subtitle { margin-top: 0.15em; }
.slide-compact .divider { margin-block: 6px; }
.slide-compact .grid-3 { margin-top: 14px !important; }
.slide-compact .glass-card { padding: clamp(10px, 1.4vw, 16px); }
.slide-compact .split-diagonal .panel-text { padding: 14px 20px; }
.slide-compact h2 { margin-bottom: 0.18em; }

.has-bg h2 { flex-shrink: 0; }

/* glass card */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid var(--glass-border);
  border-radius: var(--card-radius);
  padding: clamp(16px, 2.5vw, 28px) clamp(18px, 2.8vw, 32px);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 20%, rgba(212,168,83,0.05), transparent 60%);
  pointer-events: none;
}

.glass-card:hover {
  transform: translateY(-4px);
  border-color: rgba(212,168,83,0.3);
  box-shadow: 0 8px 40px rgba(212,168,83,0.12);
}

.glass-card.gold { background: rgba(30,22,8,0.82); border-color: rgba(212,168,83,0.25); }
.glass-card.amber { background: rgba(30,22,8,0.82); border-color: rgba(232,184,75,0.25); }
.glass-card.slate { background: rgba(12,16,25,0.82); border-color: rgba(42,52,64,0.35); }
.glass-card.teal { background: rgba(8,20,20,0.82); border-color: rgba(61,122,122,0.25); }
.glass-card.beige { background: rgba(25,18,12,0.82); border-color: rgba(232,196,160,0.2); }

.glass-card.gold:hover { box-shadow: 0 8px 40px rgba(212,168,83,0.15); }
.glass-card.amber:hover { box-shadow: 0 8px 40px rgba(232,184,75,0.15); }
.glass-card.slate:hover { box-shadow: 0 8px 40px rgba(42,52,64,0.2); }
.glass-card.teal:hover { box-shadow: 0 8px 40px rgba(61,122,122,0.15); }
.glass-card.beige:hover { box-shadow: 0 8px 40px rgba(232,196,160,0.1); }

/* phone mockup for capturas */
.phone-mockup {
  width: clamp(140px, 14vw, 220px);
  height: auto;
  border-radius: 24px;
  border: 2px solid rgba(212,168,83,0.3);
  box-shadow:
    0 0 30px rgba(212,168,83,0.15),
    0 20px 60px rgba(0,0,0,0.5);
  transition: all 0.5s ease;
  position: relative;
  z-index: 2;
}

.content-aside .phone-mockup,
.split-diagonal .phone-mockup {
  width: auto;
  max-width: 100%;
  max-height: clamp(260px, 52vh, 430px);
}

.phone-mockup:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(212,168,83,0.6);
  box-shadow:
    0 0 50px rgba(212,168,83,0.25),
    0 30px 80px rgba(0,0,0,0.6);
}

.phone-mockup.right {
  float: right;
  margin: 0 0 20px 30px;
  shape-outside: margin-box;
}

.phone-mockup.left {
  float: left;
  margin: 0 30px 20px 0;
  shape-outside: margin-box;
}

.phone-mockup.absolute-right {
  position: absolute;
  right: -20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
}

.phone-mockup.absolute-left {
  position: absolute;
  left: -20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
}

/* asymmetric content layout */
.content-aside {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: center;
  width: 100%;
}

.content-aside.reverse { direction: rtl; }
.content-aside.reverse > * { direction: ltr; }

.content-aside .text-block { text-align: left; }
.content-aside .media-block { text-align: center; }

/* asymmetric split */
.split-diagonal {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 0;
  width: 100%;
  align-items: center;
}

.split-diagonal.reverse { grid-template-columns: 0.8fr 1.2fr; direction: rtl; }
.split-diagonal.reverse > * { direction: ltr; }

.split-diagonal .panel-text {
  padding: 30px 40px;
  text-align: left;
  position: relative;
  z-index: 2;
}

.split-diagonal .panel-media {
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.split-diagonal .panel-media::before {
  content: '';
  position: absolute;
  width: 120%;
  height: 120%;
  background: radial-gradient(ellipse at center, rgba(212,168,83,0.08), transparent 70%);
  z-index: 0;
}

/* badge / tag */
.badge {
  display: inline-block;
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 0.9em;
  font-family: var(--font-body);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.badge.gold { background: rgba(212,168,83,0.12); color: var(--gold); border: 1px solid rgba(212,168,83,0.25); }
.badge.amber { background: rgba(232,184,75,0.12); color: var(--amber); border: 1px solid rgba(232,184,75,0.25); }
.badge.slate { background: rgba(42,52,64,0.3); color: var(--cream); border: 1px solid rgba(42,52,64,0.4); }
.badge.teal { background: rgba(61,122,122,0.3); color: var(--cream); border: 1px solid rgba(61,122,122,0.4); }
.badge.beige { background: rgba(232,196,160,0.12); color: var(--warm-beige); border: 1px solid rgba(232,196,160,0.25); }

/* section divider */
.divider {
  width: 80px; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--amber));
  margin: 16px 0;
  border-radius: 2px;
}

.divider.center { margin: 16px auto; }

/* centered content */
.slide-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 100%;
  min-height: 100%;
  width: 100%;
  position: relative;
  z-index: 2;
  overflow-y: auto;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--gold) transparent;
}

.slide-center::-webkit-scrollbar { width: 4px; }
.slide-center::-webkit-scrollbar-track { background: transparent; }
.slide-center::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 2px; }

/* big number */
.big-number {
  font-family: var(--font-display);
  font-size: clamp(3em, 6vw, 5em);
  background: linear-gradient(135deg, var(--gold), var(--amber));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

/* flow */
.flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  width: 100%;
}

.flow.compact {
  gap: clamp(6px, 1vw, 12px);
  max-width: 760px;
  margin-inline: auto;
}

.flow-step {
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: clamp(8px, 1.2vw, 12px) clamp(14px, 2vw, 22px);
  font-size: clamp(0.9em, 1.6vw, 1.1em);
  font-family: var(--font-body);
  color: var(--app-white);
  transition: all 0.3s ease;
}

.flow-step:hover {
  border-color: var(--gold);
  transform: scale(1.05);
}

.flow-arrow {
  color: var(--amber);
  font-size: 1.2em;
  font-weight: 300;
}

/* flow carousel mode — animated by JS */
.flow-carousel {
  width: 100%;
  overflow: hidden;
  padding: 16px 0 8px;
  position: relative;
}

.flow-carousel::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, var(--bg-deep) 0%, transparent 8%, transparent 92%, var(--bg-deep) 100%);
  z-index: 1;
}

.flow-carousel-track {
  display: flex;
  align-items: center;
  gap: clamp(6px, 1vw, 12px);
  width: max-content;
  will-change: transform;
}

.flow-carousel.is-animating .flow-carousel-track {
  animation: carouselScroll var(--duration, 12s) linear infinite;
  animation-delay: calc(var(--duration, 12s) * -0.15);
}

.flow-carousel.is-paused .flow-carousel-track {
  animation-play-state: paused;
}

@keyframes carouselScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(var(--scroll-distance, -400px)); }
}

.flow-carousel .flow-step {
  flex-shrink: 0;
  white-space: nowrap;
}

.flow-carousel .flow-step:first-child {
  border-color: var(--gold);
  background: rgba(212,168,83,0.12);
  box-shadow: 0 0 20px rgba(212,168,83,0.15);
}

.flow-carousel .flow-arrow {
  flex-shrink: 0;
  font-size: 1em;
}

/* team card */
.team-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--card-radius);
  padding: 20px;
  text-align: center;
  transition: all 0.4s ease;
}

.team-card:hover {
  transform: translateY(-8px);
  border-color: rgba(212,168,83,0.3);
  box-shadow: 0 12px 40px rgba(212,168,83,0.15);
}

.team-card .avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--amber));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  font-family: var(--font-display);
  font-size: 1.6em;
  color: var(--bg-deep);
}

.foda-matrix {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  max-width: 1060px;
  margin-top: 18px;
}

.foda-card {
  padding: clamp(14px, 1.8vw, 20px);
  min-width: 0;
}

.foda-card .foda-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.foda-list li {
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: clamp(0.78em, 1.4vw, 0.95em);
  line-height: 1.42;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.foda-card .foda-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.foda-letter {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(212,168,83,0.18);
  color: var(--gold);
  font-size: 1.2em;
  font-weight: 700;
}

.foda-summary {
  width: 100%;
  max-width: 1060px;
  margin-top: 12px;
  text-align: center;
  min-width: 0;
}

.foda-summary p { overflow-wrap: break-word; word-break: break-word; }

.team-card .name {
  font-family: var(--font-display);
  font-size: 1.4em;
  color: var(--app-white);
  margin-bottom: 4px;
}

.team-card .role {
  font-size: 0.82em;
  color: var(--warm-beige);
}

/* FODA */
.foda-title {
  font-family: var(--font-display);
  font-size: clamp(1.6em, 2.8vw, 2.2em);
  margin-bottom: 10px;
}

.foda-card.gold .foda-title { color: var(--gold); }
.foda-card.amber .foda-title { color: var(--amber); }
.foda-card.slate .foda-title { color: var(--cream); }
.foda-card.beige .foda-title { color: var(--warm-beige); }

.foda-list {
  list-style: none;
  text-align: left;
}

.foda-list li {
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: clamp(0.78em, 1.4vw, 0.95em);
  line-height: 1.42;
}

.foda-list li:last-child { border-bottom: none; }

.foda-list li strong {
  color: var(--app-white);
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1em, 1.6vw, 1.15em);
  letter-spacing: 0.03em;
}

/* RF table */
.rf-table-wrapper {
  width: 100%;
  max-width: 1000px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.rf-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 5px;
  font-size: clamp(0.7em, 1.3vw, 0.85em);
  min-width: 500px;
}

.rf-table th {
  font-family: var(--font-display);
  font-size: 1em;
  letter-spacing: 0.05em;
  color: var(--gold);
  text-align: left;
  padding: 8px 12px;
  border-bottom: 2px solid rgba(212,168,83,0.3);
}

.rf-table td {
  padding: 10px 12px;
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  color: rgba(255,255,255,0.7);
}

.rf-table tr td:first-child { border-radius: 10px 0 0 10px; }
.rf-table tr td:last-child { border-radius: 0 10px 10px 0; }
.rf-table tr:hover td { border-color: rgba(212,168,83,0.25); }

.rf-priority {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 0.7em;
  font-weight: 700;
  white-space: nowrap;
}

.rf-priority.high { background: rgba(61,122,122,0.15); color: var(--teal); }
.rf-priority.medium { background: rgba(232,184,75,0.15); color: var(--amber); }
.rf-priority.low { background: rgba(232,184,75,0.08); color: var(--warm-beige); }

/* RNF grid */
.rnf-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }

.rnf-item {
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: 16px 20px;
  text-align: left;
  transition: all 0.3s ease;
}

.rnf-item:hover {
  border-color: rgba(212,168,83,0.25);
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(212,168,83,0.1);
}

.rnf-item .rnf-code {
  font-family: var(--font-display);
  font-size: 1.3em;
  color: var(--gold);
}

.rnf-item p { font-size: clamp(0.82em, 1.5vw, 1em); margin-top: 4px; }

/* rules list */
.rules-list {
  list-style: none;
  text-align: left;
  columns: 2;
  column-gap: 20px;
}

.rules-list li {
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  break-inside: avoid;
  font-size: clamp(0.85em, 1.5vw, 1em);
  line-height: 1.5;
  padding-left: 24px;
  position: relative;
}

.rules-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--amber);
}

/* demo button */
.reveal .demo-btn {
  display: inline-block;
  margin-top: 24px;
  padding: clamp(16px, 2.6vw, 24px) clamp(40px, 7vw, 64px);
  background: linear-gradient(135deg, var(--gold), var(--amber));
  border-radius: 50px;
  font-family: var(--font-display);
  font-size: clamp(1.3em, 2.8vw, 2em);
  color: var(--bg-deep);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.reveal .demo-btn:hover {
  transform: scale(1.04);
  box-shadow: 0 0 32px rgba(212,168,83,0.24);
}

.demo-card {
  background: rgba(5,5,16,0.85);
  border-color: rgba(212,168,83,0.35);
}

/* strategy sections */
.strategy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.strategy-section {
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  border-radius: var(--card-radius);
  padding: clamp(14px, 2vw, 20px) clamp(16px, 2.5vw, 24px);
  margin-bottom: 0;
}

.strategy-section h4 {
  color: var(--gold);
  font-family: var(--font-display);
  font-size: clamp(0.92em, 1.5vw, 1.15em);
  margin-bottom: 6px;
}

.strategy-section p { font-size: clamp(0.72em, 1.2vw, 0.85em); }

.strategy-section.fo { border-left: 3px solid var(--gold); }
.strategy-section.do { border-left: 3px solid var(--amber); }
.strategy-section.fa { border-left: 3px solid var(--teal); }
.strategy-section.da { border-left: 3px solid var(--warm-beige); }

/* thank you */
.thank-you {
  font-family: var(--font-display);
  font-size: clamp(3.5em, 9vw, 7em);
  background: linear-gradient(135deg, var(--gold), var(--amber), var(--warm-beige));
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmerText 3s ease infinite;
}

/* reveal overrides */
.reveal .controls { color: var(--gold); }
.reveal .progress { background: rgba(255,255,255,0.04); height: 3px; z-index: 10; }
.reveal .progress span { background: linear-gradient(90deg, var(--gold), var(--amber)); }
.reveal .slide-number {
  font-family: var(--font-body);
  font-size: 0.65em;
  color: var(--warm-beige);
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  padding: 4px 14px;
}
.reveal .slide-number a { color: var(--gold); }
.reveal a { color: var(--gold); }

/* controls toggle button (slide 1) */
.controls-toggle-btn {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(212,168,83,0.12);
  border: 1px solid rgba(212,168,83,0.2);
  color: var(--gold);
  font-family: var(--font-body);
  font-size: 0.7em;
  padding: 4px 12px;
  border-radius: 20px;
  cursor: pointer;
  transition: background 0.3s ease;
  z-index: 10;
}

.controls-toggle-btn:hover {
  background: rgba(212,168,83,0.2);
}

.controls-toggle-btn { animation: none !important; }

body.controls-left .reveal .controls {
  left: 95px !important;
  right: auto !important;
}

@media (max-width: 900px), (orientation: portrait) {
  .controls-toggle-btn { display: none; }
}

/* automatic content animation — no manual fragments */
.reveal .slides section.present .slide-center > * {
  animation: contentIn 1.1s ease both;
}
.reveal .slides section.present .slide-center > :nth-child(1) { animation-delay: 0s; }
.reveal .slides section.present .slide-center > :nth-child(2) { animation-delay: 0.25s; }
.reveal .slides section.present .slide-center > :nth-child(3) { animation-delay: 0.45s; }
.reveal .slides section.present .slide-center > :nth-child(4) { animation-delay: 0.65s; }
.reveal .slides section.present .slide-center > :nth-child(5) { animation-delay: 0.8s; }
.reveal .slides section.present .slide-center > :nth-child(n+6) { animation-delay: 0.95s; }

@keyframes contentIn {
  from { opacity: 0; transform: translateY(20px); filter: blur(3px); }
  to   { opacity: 1; transform: translateY(0);   filter: blur(0); }
}

/* responsive */
@media (max-width: 1100px) {
  .content-aside { grid-template-columns: 1fr; gap: 14px; }
  .split-diagonal { grid-template-columns: 1fr; min-height: auto; }
  .split-diagonal.reverse { grid-template-columns: 1fr; }
  .strategy-grid { grid-template-columns: 1fr; }
  .split-diagonal .panel-text { padding: 16px 22px; }
  .split-diagonal .panel-media { padding: 8px; }
  .content-aside .phone-mockup,
  .split-diagonal .phone-mockup { max-height: clamp(220px, 36vh, 340px); }
  .phone-mockup.absolute-right,
  .phone-mockup.absolute-left { position: relative; right: auto; left: auto; top: auto; transform: none; }
  .foda-matrix { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 820px; }
}

@media (max-width: 900px) {
  .rules-list { columns: 1; }
  .rnf-grid { grid-template-columns: 1fr; }
  .reveal .slides section { padding: 18px 16px; }
  .content-aside .media-block { order: -1; }
  .content-aside .phone-mockup,
  .split-diagonal .phone-mockup { max-height: 30vh; }
  .flow-step { font-size: clamp(0.72em, 2vw, 0.85em); }
  .flow-arrow { font-size: 1em; }
  .cover-team { gap: 10px; }
  .cover-team .badge { font-size: clamp(0.75em, 2.8vw, 0.9em); }
  .team-card { padding: 14px; }
  .team-card .avatar { width: 60px; height: 60px; font-size: 1.3em; }
  .team-card .name { font-size: 1.1em; }
  .foda-title { font-size: clamp(1.1em, 2.4vw, 1.4em); }
}

@media (max-width: 1024px) and (max-height: 760px) {
  .reveal .slides section { padding: 14px 24px; }
  .reveal h1 { font-size: clamp(2.6em, 5.5vw, 4.8em); }
  .reveal h2 { font-size: clamp(1.6em, 3vw, 2.4em); }
  .reveal .subtitle { font-size: clamp(0.85em, 1.6vw, 1.1em); }
  .glass-card { padding: 12px 16px; }
  .foda-list li { padding: 4px 0; line-height: 1.35; }
  .content-aside,
  .split-diagonal { gap: 10px; }
  .content-aside .phone-mockup,
  .split-diagonal .phone-mockup { max-height: 32vh; }
}

@media (max-width: 640px) {
  .flow { flex-direction: column; }
  .flow-arrow { transform: rotate(90deg); }
  .flow-carousel .flow-arrow { transform: none; }
  .phone-mockup.right,
  .phone-mockup.left { float: none; margin: 12px auto; display: block; }
  .content-aside,
  .split-diagonal { gap: 8px; }
  .split-diagonal .panel-text { padding: 8px 4px; }
  .cover-team { gap: 8px; }
  .cover-team .badge { font-size: clamp(0.75em, 2.8vw, 0.9em); }
  .content-aside .phone-mockup,
  .split-diagonal .phone-mockup { max-height: 24vh; }
  .foda-matrix { grid-template-columns: 1fr; gap: 8px; }
}

@media (max-width: 400px) {
  .cover-team { flex-direction: column; align-items: center; gap: 6px; }
  .cover-team .badge { font-size: clamp(0.72em, 4vw, 0.85em); }
  .flow-carousel { max-width: 100%; }
}

/* grids flexible */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }

/* fade-in on scroll */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
