

:root {
  /* Base para zoom e tamanho de fonte (1rem = 16px; 200% zoom = 2rem) */
  --base-font-size: 1rem;
  --bg: #f5f7fa;
  --bg-soft: #e8ecf2;
  --text: #0f172a;
  --text-muted: #334155;
  --blue: #1a5fb4;
  --orange: #c55400;
  --border: rgba(26, 95, 180, 0.16);
  --card: rgba(255, 255, 255, 0.48);
  --shadow: 0 2px 8px rgba(12, 45, 91, 0.08), 0 24px 64px rgba(22, 81, 150, 0.1);
  --radius: 18px;
  --container: min(1240px, calc(100% - 3rem));
  --hero-size: clamp(3.3rem, 13vw, 11rem);
  --space-marquee: clamp(2rem, 5vh, 3.5rem);
  --footer-height: 58vh;
}

body[data-theme="deep"] {
  --bg: #071326;
  --bg-soft: #0c1d36;
  --text: #f8fbff;
  --text-muted: #94a3b8;
  --blue: #74adff;
  --orange: #fdba74;
  --border: rgba(255, 255, 255, 0.22);
  --card: rgba(255, 255, 255, 0.08);
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.3), 0 24px 72px rgba(10, 20, 40, 0.55);
}

body[data-theme="deep"] .eyebrow {
  color: #fdba74;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

/* SVG de filtros (daltonismo) fora do fluxo, sem ocupar espaço */
.svg-filters-hidden {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

html {
  scroll-behavior: smooth;
  font-size: var(--base-font-size);
}

/* Zoom 200% / 400%: layout flexível (rem, min-width: 0, wrap) para não quebrar */
body {
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 1rem;
  background: var(--bg);
  color: var(--text);
  transition: background 1s ease, color 1s ease;
  overflow-x: clip;
  line-height: 1.5;
}

/* Focus visível para teclado (WCAG 2.4.7) — contraste alto, sem remover outline */
a:focus-visible,
button:focus-visible,
[tabindex="0"]:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

.skip-link:focus {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  z-index: 10002;
  color: #fff;
  background: var(--blue);
  padding: 0.6rem 0.9rem;
  border-radius: 10px;
}

/* SEO e acessibilidade: texto lido por leitores de tela e robôs, invisível na tela */
.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;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

.theme-wipe {
  position: fixed;
  inset: 0;
  z-index: 9980;
  pointer-events: none;
  display: grid;
  place-items: center;
  /* Cores solidas (sem gradiente) */
  background: linear-gradient(90deg, #e66100 0 50%, #1a5fb4 50% 100%);
  transform: translateX(-110%);
  opacity: 0;
}

.theme-wipe.is-active {
  opacity: 1;
  transform: translateX(0);
  transition: transform 0.95s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.2s ease;
}

.theme-wipe.is-leaving {
  transform: translateX(110%);
  opacity: 1;
  transition: transform 0.95s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.2s ease;
}

.theme-wipe__logo {
  font-size: clamp(2rem, 7vw, 4.5rem);
  font-weight: 800;
  color: #fff;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transform: translateY(12px) scale(0.98);
  transition: opacity 0.26s ease, transform 0.26s ease;
  font-family: "Manrope", system-ui, sans-serif;
  letter-spacing: 0.12em;
}

.theme-wipe.is-active .theme-wipe__logo,
.theme-wipe.is-leaving .theme-wipe__logo {
  opacity: 1;
  transform: translateY(0) scale(1);
  animation: dakota-font-cycle 2s ease-in-out 1;
}

@keyframes dakota-font-cycle {
  0% {
    font-family: "Manrope", system-ui, sans-serif;
    letter-spacing: 0.12em;
  }
  22% {
    font-family: "Bebas Neue", sans-serif;
    letter-spacing: 0.08em;
  }
  44% {
    font-family: "Playfair Display", serif;
    letter-spacing: 0.06em;
  }
  66% {
    font-family: "Space Grotesk", system-ui, sans-serif;
    letter-spacing: 0.1em;
  }
  88%,
  100% {
    font-family: "Manrope", system-ui, sans-serif;
    letter-spacing: 0.12em;
  }
}

.underlay {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
}

.underlay__blob {
  position: absolute;
  border-radius: 999px;
  filter: blur(150px);
  opacity: 0.38;
  mix-blend-mode: screen;
  animation: blobDrift 22s ease-in-out infinite alternate;
}

.underlay__blob--1 {
  width: 42rem;
  height: 42rem;
  background: rgba(26, 95, 180, 0.4);
  top: -16rem;
  left: -10rem;
}

.underlay__blob--2 {
  width: 34rem;
  height: 34rem;
  background: rgba(230, 97, 0, 0.35);
  top: 32%;
  right: -12rem;
  animation-delay: -7s;
}

.underlay__blob--3 {
  width: 30rem;
  height: 30rem;
  background: rgba(26, 95, 180, 0.28);
  bottom: -10rem;
  left: 28%;
  animation-delay: -10s;
}

.underlay__blob--4 {
  width: 24rem;
  height: 24rem;
  background: rgba(230, 97, 0, 0.3);
  bottom: -8rem;
  right: 15%;
}

@keyframes blobDrift {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(4vw, -3vh) scale(1.12);
  }
}

.noise {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23noise)'/%3E%3C/svg%3E");
}

.header {
  position: relative;
  z-index: 90;
  backdrop-filter: blur(12px);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  border-bottom: 1px solid var(--border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}

.brand,
.nav-links a {
  color: var(--text);
  text-decoration: none;
}

.brand {
  font-weight: 700;
  display: inline-flex;
  align-items: center;
}

/* DAKOTA no header: fixo (fonte e cores estáveis) */
.brand__monument {
  display: inline-block;
  font-size: clamp(1.5rem, 3.2vw, 2.25rem);
  line-height: 0.88;
  letter-spacing: 0.02em;
  font-family: "Space Grotesk", sans-serif;
  font-style: normal;
  font-weight: 700;
}

.brand__monument-letter {
  display: inline-block;
  color: var(--letter-color);
  -webkit-text-stroke: 1px var(--letter-color);
  paint-order: stroke fill;
}

.brand__monument-letter:nth-child(1) { --letter-color: #1a5fb4; }
.brand__monument-letter:nth-child(2) { --letter-color: #e66100; }
.brand__monument-letter:nth-child(3) { --letter-color: #7c3aed; }
.brand__monument-letter:nth-child(4) { --letter-color: #0891b2; }
.brand__monument-letter:nth-child(5) { --letter-color: #db2777; }
.brand__monument-letter:nth-child(6) { --letter-color: #ca8a04; }

body[data-theme="deep"] .brand__monument-letter:nth-child(1) { --letter-color: #74adff; }
body[data-theme="deep"] .brand__monument-letter:nth-child(2) { --letter-color: #ff9a54; }
body[data-theme="deep"] .brand__monument-letter:nth-child(3) { --letter-color: #a78bfa; }
body[data-theme="deep"] .brand__monument-letter:nth-child(4) { --letter-color: #22d3ee; }
body[data-theme="deep"] .brand__monument-letter:nth-child(5) { --letter-color: #f472b6; }
body[data-theme="deep"] .brand__monument-letter:nth-child(6) { --letter-color: #facc15; }

.nav-links {
  display: flex;
  gap: 1.4rem;
}

.nav-links a {
  color: var(--text-muted);
  font-weight: 600;
}

/* Agrupamento: botão menu + opções (Ver do seu jeito) */
.header__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Botão menu (hamburger) — visível só em mobile */
.header__menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg-soft) 78%, transparent);
  color: var(--text);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.header__menu-btn:hover {
  border-color: var(--blue);
  background: color-mix(in srgb, var(--blue) 10%, var(--bg-soft));
}

.header__menu-icon {
  position: relative;
  display: block;
  width: 22px;
  height: 16px;
}

.header__menu-icon::before,
.header__menu-icon::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.25s ease, top 0.25s ease, bottom 0.25s ease;
}

.header__menu-icon::before {
  top: 0;
}

.header__menu-icon::after {
  bottom: 0;
}

.header__menu-icon {
  background: linear-gradient(to bottom, transparent 5px, currentColor 5px, currentColor 7px, transparent 7px);
  background-repeat: no-repeat;
  background-position: 0 50%;
}

.header__menu-btn[aria-expanded="true"] .header__menu-icon {
  background: transparent;
}

.header__menu-btn[aria-expanded="true"] .header__menu-icon::before {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}

.header__menu-btn[aria-expanded="true"] .header__menu-icon::after {
  bottom: 50%;
  transform: translateY(50%) rotate(-45deg);
}

/* Drawer de navegação (mobile) */
.nav-drawer {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: color-mix(in srgb, var(--bg) 98%, transparent);
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.5rem 1.5rem;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
  z-index: 89;
}

.header.is-menu-open .nav-drawer {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-drawer[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-drawer__nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.nav-drawer__link {
  display: block;
  padding: 0.75rem 0.5rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-drawer__link:hover {
  background: var(--bg-soft);
  color: var(--blue);
}

.nav-drawer__link--current {
  color: var(--blue);
}

/* Botão de acessibilidade no header (abre painel com tema + fonte + zoom + cores) */
.header__a11y {
  position: relative;
}

.a11y-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.7rem;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg-soft) 78%, transparent);
  color: var(--text);
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
}

.a11y-trigger:hover {
  border-color: var(--blue);
  background: color-mix(in srgb, var(--blue) 10%, var(--bg-soft));
}

.a11y-trigger__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.a11y-trigger__icon .icon-access {
  display: block;
  width: 1.15em;
  height: 1.15em;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg-soft) 78%, transparent);
  color: var(--text);
  border-radius: 999px;
  padding: 0.35rem 0.55rem;
  font: inherit;
  cursor: pointer;
}

.theme-toggle--in-panel {
  width: 100%;
  justify-content: space-between;
}

.theme-toggle__track {
  width: 40px;
  height: 22px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--text) 16%, transparent);
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  padding: 2px;
}

.theme-toggle__thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transform: translateX(0);
  transition: transform 0.25s ease, background 0.25s ease;
}

.theme-toggle[aria-checked="true"] .theme-toggle__thumb {
  transform: translateX(18px);
  background: var(--orange);
}

.theme-toggle__text {
  font-size: 0.78rem;
  font-weight: 700;
}

body.has-custom-cursor {
  cursor: none;
}

body.has-custom-cursor a,
body.has-custom-cursor button {
  cursor: none;
}

/* No header: cursor normal (esconde o cursor customizado para não tapar menu/opções) */
body.has-custom-cursor .header,
body.has-custom-cursor .header a,
body.has-custom-cursor .header button {
  cursor: pointer;
}

.cursor {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 9999;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.cursor.is-over-header {
  opacity: 0;
  visibility: hidden;
}

.cursor__inner {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--text);
  transform: translate(-50%, -50%);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.cursor.is-hover .cursor__inner {
  transform: translate(-50%, -50%) scale(2.4);
  background: #fff;
  mix-blend-mode: difference;
}

.section {
  padding: clamp(4.2rem, 11vh, 8rem) 0;
}

/* Espaço entre hero e primeira seção */
.hero + .section {
  padding-top: var(--space-marquee);
}

.hero {
  min-height: 90vh;
  display: grid;
  align-items: start;
  padding-top: clamp(1.25rem, 5vh, 3rem);
  padding-bottom: var(--space-marquee);
}

/* Contraste WCAG AA 4.5:1+ — eyebrow mais escuro no tema claro */
.eyebrow {
  margin: 0 0 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #994300;
  font-size: 0.73rem;
  font-weight: 800;
}

.hero__title {
  margin: 0;
  font-size: var(--hero-size);
  line-height: 0.9;
  letter-spacing: -0.03em;
  max-width: 18ch;
  mix-blend-mode: multiply;
}

body[data-theme="deep"] .hero__title {
  mix-blend-mode: screen;
}

.hero__title-static {
  display: block;
  color: var(--text);
}

.hero__title-dynamic-wrap {
  display: block;
  min-height: 1.15em;
  position: relative;
}

.hero__title-dynamic {
  display: block;
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.hero__title-dynamic.is-changing {
  opacity: 0;
  transform: translateY(6px);
}

/* Rotação: fontes */
.hero__title-dynamic--font-display {
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.04em;
}

.hero__title-dynamic--font-serif {
  font-family: "Playfair Display", serif;
  letter-spacing: 0.02em;
}

.hero__title-dynamic--font-geo {
  font-family: "Space Grotesk", system-ui, sans-serif;
  letter-spacing: -0.02em;
}

.hero__title-dynamic--font-sans {
  font-family: "Manrope", system-ui, sans-serif;
  letter-spacing: -0.02em;
}

/* Rotação: cores */
.hero__title-dynamic--color-blue {
  color: var(--blue);
}

.hero__title-dynamic--color-orange {
  color: var(--orange);
}

.hero__title-dynamic--color-gradient {
  color: var(--blue);
}

.hero__title-dynamic--color-text {
  color: var(--text);
}

.hero__lead {
  margin-top: 1.3rem;
  max-width: 55ch;
  font-size: clamp(1.05rem, 1.7vw, 1.35rem);
  color: var(--text-muted);
}

.hero__actions {
  margin-top: 1.7rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

@media (max-width: 768px) {
  .hero {
    min-height: auto;
    padding-bottom: 2rem;
  }
  .hero__actions {
    flex-wrap: nowrap;
    gap: 0.6rem;
  }
  .hero__actions .btn {
    padding: 0.65rem 0.9rem;
    font-size: 0.9rem;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
  }
}

.collage-slot {
  width: 100%;
  height: 100%;
  min-height: 120px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg-soft) 75%, transparent);
  position: relative;
  overflow: hidden;
  clip-path: polygon(0 6%, 4% 0, 96% 3%, 100% 9%, 98% 94%, 95% 100%, 3% 98%, 0 92%);
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 0.8rem 0.9rem;
}

.collage-slot::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26, 95, 180, 0.14), rgba(230, 97, 0, 0.12));
  mix-blend-mode: multiply;
}

.collage-slot__label {
  position: relative;
  z-index: 2;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: color-mix(in srgb, var(--text) 88%, transparent);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
  border-radius: 999px;
  padding: 0.3rem 0.6rem;
  white-space: nowrap;
}

.collage-slot--blue::after {
  background: rgba(26, 95, 180, 0.22);
}

.collage-slot--orange::after {
  background: rgba(230, 97, 0, 0.22);
}

.collage-slot--line::after {
  background: repeating-linear-gradient(
    -18deg,
    rgba(26, 95, 180, 0.18) 0 6px,
    transparent 6px 12px
  );
}


.section__header h2 {
  margin: 0;
  font-size: clamp(2rem, 6vw, 4.5rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
}

.bento {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
}

/* ========== Produtos — Split-screen editorial, tipografia sóbria, crossfade ========== */
.produtos {
  width: 100%;
  padding: clamp(3.5rem, 8vh, 6rem) 0 clamp(2.5rem, 6vh, 4rem) 0;
  background: color-mix(in srgb, var(--bg-soft) 40%, var(--bg));
}

.produtos__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
  max-width: min(1400px, calc(100% - 4rem));
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Coluna esquerda: título + lista */
.produtos__col--text {
  min-width: 0;
}

.produtos__list {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
}

.produtos__item {
  padding: 0;
  margin-left: -1rem;
  border-left: 2px solid transparent;
  opacity: 0.4;
  transition: opacity 0.4s ease, border-color 0.4s ease;
  list-style: none;
}

.produtos__item-btn {
  display: block;
  width: 100%;
  padding: 1.25rem 0 1.25rem 1rem;
  margin: 0;
  border: none;
  background: none;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.produtos__item-btn:focus {
  outline: none;
}

.produtos__item:hover,
.produtos__item.active,
.produtos__item-btn:focus-visible {
  opacity: 1;
}

.produtos__item.active {
  border-left-color: var(--text);
}

.produtos__item .produtos__title,
.produtos__item .produtos__desc {
  margin: 0;
}

.produtos__item .produtos__desc {
  margin-top: 0.5rem;
}

.produtos__title {
  margin: 0;
  font-size: 2rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text);
}

.produtos__desc {
  margin: 0.5rem 0 0;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--text-muted);
}

/* Coluna direita: palco fixo com imagem HD */
.produtos__col--media {
  position: sticky;
  top: 2rem;
}

.produtos__stage {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-soft);
}

.produtos__stage-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.produtos__stage-img.is-visible {
  opacity: 1;
  z-index: 1;
}

/* Mobile: sem imagens — apenas título e lista */
@media (max-width: 900px) {
  .produtos__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .produtos__col--media {
    display: none;
  }
}

/* Bento padrão (outras seções) */
.bento__card {
  --mx: 50%;
  --my: 50%;
  grid-column: span 4;
  position: relative;
  padding: 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  transform-style: preserve-3d;
}

.bento__card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at var(--mx) var(--my), rgba(255, 255, 255, 0.34), transparent 45%);
  opacity: 0;
  transition: opacity 0.24s ease;
}

.bento__card.is-active::before {
  opacity: 1;
}

.bento__card--featured {
  grid-column: span 8;
}

.bento__card h3 {
  margin: 0;
  font-size: 1.15rem;
}

.bento__card p {
  margin: 0.55rem 0 0;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Responsivo: Bento expandido empilha em telas menores */
@media (max-width: 1024px) {
  .bento--expandido .bento__card--featured,
  .bento--expandido .bento__card:nth-child(2),
  .bento--expandido .bento__card:nth-child(3),
  .bento--expandido .bento__card:nth-child(4) {
    grid-column: 1 / -1;
    grid-row: auto;
    min-height: 320px;
  }
}


.horizontal-story {
  position: relative;
  --story-h: 300vh;
  height: var(--story-h);
}

.horizontal-story__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: grid;
  align-items: center;
}

.horizontal-story__track {
  display: flex;
  gap: 1.1rem;
  will-change: transform;
  padding: 0 6vw;
}

.panel {
  width: min(85vw, 820px);
  min-height: 72vh;
  padding: clamp(1.2rem, 2.5vw, 2.2rem);
  border: 1px solid var(--border);
  border-radius: clamp(18px, 2.6vw, 28px);
  background: var(--card);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.panel h3 {
  font-size: clamp(1.7rem, 4.6vw, 4rem);
  line-height: 0.95;
  margin: 0 0 0.8rem;
}

.panel p {
  margin: 0;
  color: var(--text-muted);
  max-width: 48ch;
}

.panel__mini {
  margin-top: 1.2rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.79rem;
  color: var(--text-muted);
}

.panel__mini span {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.35rem 0.62rem;
}

.collage-area {
  margin-top: 1.4rem;
  display: flex;
  gap: 0.8rem;
}

.panel--accent {
  background: linear-gradient(145deg, color-mix(in srgb, var(--blue) 12%, var(--card)), var(--card));
}

.section--cta {
  border-top: 1px solid var(--border);
}

.section__header--center {
  text-align: center;
  margin-inline: auto;
}

.cta-buttons {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

@media (max-width: 768px) {
  .cta-buttons {
    flex-wrap: nowrap;
    gap: 0.6rem;
  }
  .cta-buttons .btn {
    padding: 0.7rem 1rem;
    font-size: 0.9rem;
    flex: 1;
    min-width: 0;
    white-space: normal;
    line-height: 1.25;
  }
}

.btn {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.82rem 1.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  transition: transform 0.24s ease, box-shadow 0.24s ease;
  overflow: visible;
  box-sizing: border-box;
  text-align: center;
}

/* Botão primário: efeito de fluxo via pseudo-elemento + transform (100% GPU, sem background-position) */
.btn--primary {
  color: #fff;
  position: relative;
  overflow: hidden;
  background: transparent;
}

.btn--primary::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 200%;
  background: linear-gradient(120deg, var(--blue), var(--orange), var(--blue));
  background-size: 100% 100%;
  animation: btnFlowTranslate 5s linear infinite;
  pointer-events: none;
}

@keyframes btnFlowTranslate {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .btn--primary::before {
    animation: none;
    width: 100%;
    background: linear-gradient(120deg, var(--blue), var(--orange));
  }
}

.btn--ghost {
  border-color: var(--border);
  background: color-mix(in srgb, var(--bg-soft) 68%, transparent);
}

.btn:hover {
  transform: translateY(-2px);
}

/* ========== Curtain Reveal: main cobre o footer até o scroll revelar ========== */
main {
  position: relative;
  z-index: 2;
  background: var(--bg);
  margin-bottom: var(--footer-height);
  box-shadow: 0 -8px 48px rgba(0, 0, 0, 0.06);
}

body[data-theme="deep"] main {
  box-shadow: 0 -12px 56px rgba(0, 0, 0, 0.25);
}

/* ========== Footer: fixo na base, editorial + tipografia monumental ========== */
/* Desktop: padding-bottom generoso; mobile sobrescreve nos media queries */
.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--footer-height);
  z-index: 1;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 4vw, 2.5rem) var(--container) clamp(1.5rem, 3vw, 2.5rem);
  padding-left: max(1.5rem, calc((100vw - 1240px) / 2 + 1.5rem));
  padding-right: max(1.5rem, calc((100vw - 1240px) / 2 + 1.5rem));
  box-sizing: border-box;
}

/* Grid editorial — desktop: colunas próximas com linhas verticais leves */
.footer__grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.5rem 1.25rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: clamp(1rem, 2.5vw, 1.5rem);
  margin-bottom: clamp(0.75rem, 2vw, 1.25rem);
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
}

.footer__cell {
  padding: 0 1.25rem;
  border-right: 1px solid var(--border);
}

.footer__cell:first-child {
  padding-left: 0;
}

.footer__cell:last-child {
  border-right: none;
  padding-right: 0;
}

.footer__label {
  display: block;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}

.footer__cell a,
.footer__links a {
  display: block;
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  transition: color 0.2s ease;
}

.footer__cell a:hover,
.footer__links a:hover {
  color: var(--blue);
}

.footer__links a:last-child {
  margin-bottom: 0;
}

/* Status local + relógio */
.footer__status {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  font-style: normal;
}

.footer__status #footer-time {
  letter-spacing: 0.04em;
}

/* Links com efeito colagem no hover (data-hover) */
.footer__link-collage {
  position: relative;
}

.footer__link-collage::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--orange));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.footer__link-collage:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

.footer__link-collage::after {
  content: "";
  position: absolute;
  right: -0.5rem;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, rgba(26, 95, 180, 0.2), rgba(230, 97, 0, 0.2));
  clip-path: polygon(2% 8%, 92% 5%, 98% 92%, 5% 95%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.footer__link-collage:hover::after {
  opacity: 1;
}

/* Tipografia monumental DAKOTA — alturas fixas para evitar CLS */
.footer__monument-wrap {
  flex: 1;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 3vw, 2rem);
  min-height: 4.5rem;
  padding: 0.25rem 0 clamp(0.75rem, 2vw, 1.25rem);
  flex-wrap: wrap;
  box-sizing: border-box;
  contain: layout style;
}

/* Tipografia monumental DAKOTA — 10 variações de cor + fonte em sequência */
.footer__monument {
  margin: 0;
  font-size: clamp(3rem, 10vw, 6.5rem);
  line-height: 0.88;
  letter-spacing: 0.02em;
  min-height: 2.8rem;
  height: 1.32em;
  pointer-events: none;
  user-select: none;
  font-family: var(--monument-font, "Space Grotesk", sans-serif);
  font-style: var(--monument-style, normal);
  font-weight: var(--monument-weight, 700);
  transition: font-family 0.35s ease, font-style 0.35s ease, font-weight 0.35s ease;
  animation: footer-10-variations 10s linear infinite;
}

.footer__monument-letter {
  display: inline-block;
  color: var(--letter-color);
  -webkit-text-stroke: 2px var(--letter-color);
  paint-order: stroke fill;
  transition: color 0.4s ease, -webkit-text-stroke 0.4s ease;
}

.footer__monument-letter:nth-child(1) { --letter-color: var(--c1); }
.footer__monument-letter:nth-child(2) { --letter-color: var(--c2); }
.footer__monument-letter:nth-child(3) { --letter-color: var(--c3); }
.footer__monument-letter:nth-child(4) { --letter-color: var(--c4); }
.footer__monument-letter:nth-child(5) { --letter-color: var(--c5); }
.footer__monument-letter:nth-child(6) { --letter-color: var(--c6); }

@keyframes footer-10-variations {
  0% {
    --c1: #1a5fb4; --c2: #e66100; --c3: #7c3aed; --c4: #0891b2; --c5: #db2777; --c6: #ca8a04;
    --monument-font: "Space Grotesk", sans-serif; --monument-style: normal; --monument-weight: 700;
  }
  10% {
    --c1: #0d9488; --c2: #dc2626; --c3: #2563eb; --c4: #ea580c; --c5: #7c3aed; --c6: #65a30d;
    --monument-font: "Bebas Neue", sans-serif; --monument-style: normal; --monument-weight: 400;
  }
  20% {
    --c1: #be185d; --c2: #0369a1; --c3: #b45309; --c4: #4f46e5; --c5: #0f766e; --c6: #c2410c;
    --monument-font: "Manrope", sans-serif; --monument-style: normal; --monument-weight: 800;
  }
  30% {
    --c1: #1e40af; --c2: #b91c1c; --c3: #047857; --c4: #7e22ce; --c5: #c2410c; --c6: #0e7490;
    --monument-font: "Manrope", sans-serif; --monument-style: italic; --monument-weight: 400;
  }
  40% {
    --c1: #6d28d9; --c2: #15803d; --c3: #ea580c; --c4: #0284c7; --c5: #b91c1c; --c6: #4d7c0f;
    --monument-font: "Playfair Display", serif; --monument-style: normal; --monument-weight: 700;
  }
  50% {
    --c1: #0f766e; --c2: #9333ea; --c3: #dc2626; --c4: #0d9488; --c5: #1d4ed8; --c6: #ca8a04;
    --monument-font: "Manrope", sans-serif; --monument-style: normal; --monument-weight: 600;
  }
  60% {
    --c1: #c2410c; --c2: #2563eb; --c3: #059669; --c4: #be185d; --c5: #6366f1; --c6: #0e7490;
    --monument-font: "Space Grotesk", sans-serif; --monument-style: normal; --monument-weight: 400;
  }
  70% {
    --c1: #7c3aed; --c2: #0d9488; --c3: #ea580c; --c4: #1e40af; --c5: #b91c1c; --c6: #65a30d;
    --monument-font: "Bebas Neue", sans-serif; --monument-style: normal; --monument-weight: 400;
  }
  80% {
    --c1: #dc2626; --c2: #4f46e5; --c3: #0f766e; --c4: #f59e0b; --c5: #1e3a8a; --c6: #be185d;
    --monument-font: "Manrope", sans-serif; --monument-style: italic; --monument-weight: 700;
  }
  90% {
    --c1: #0284c7; --c2: #7c3aed; --c3: #65a30d; --c4: #b91c1c; --c5: #0d9488; --c6: #6366f1;
    --monument-font: "Playfair Display", serif; --monument-style: normal; --monument-weight: 700;
  }
  100% {
    --c1: #1a5fb4; --c2: #e66100; --c3: #7c3aed; --c4: #0891b2; --c5: #db2777; --c6: #ca8a04;
    --monument-font: "Space Grotesk", sans-serif; --monument-style: normal; --monument-weight: 700;
  }
}

@media (prefers-reduced-motion: reduce) {
  .footer__monument { animation: none; font-family: "Space Grotesk", sans-serif; font-style: normal; font-weight: 700; }
  .footer__monument-letter { transition: none; }
  .footer__monument-letter:nth-child(1) { --letter-color: #1a5fb4; }
  .footer__monument-letter:nth-child(2) { --letter-color: #e66100; }
  .footer__monument-letter:nth-child(3) { --letter-color: #7c3aed; }
  .footer__monument-letter:nth-child(4) { --letter-color: #0891b2; }
  .footer__monument-letter:nth-child(5) { --letter-color: #db2777; }
  .footer__monument-letter:nth-child(6) { --letter-color: #ca8a04; }
  body[data-theme="deep"] .footer__monument-letter:nth-child(1) { --letter-color: #74adff; }
  body[data-theme="deep"] .footer__monument-letter:nth-child(2) { --letter-color: #ff9a54; }
  body[data-theme="deep"] .footer__monument-letter:nth-child(3) { --letter-color: #a78bfa; }
  body[data-theme="deep"] .footer__monument-letter:nth-child(4) { --letter-color: #22d3ee; }
  body[data-theme="deep"] .footer__monument-letter:nth-child(5) { --letter-color: #f472b6; }
  body[data-theme="deep"] .footer__monument-letter:nth-child(6) { --letter-color: #facc15; }
}

body[data-theme="deep"] .footer__monument-letter:nth-child(1) { --letter-color: var(--c1); }
body[data-theme="deep"] .footer__monument-letter:nth-child(2) { --letter-color: var(--c2); }
body[data-theme="deep"] .footer__monument-letter:nth-child(3) { --letter-color: var(--c3); }
body[data-theme="deep"] .footer__monument-letter:nth-child(4) { --letter-color: var(--c4); }
body[data-theme="deep"] .footer__monument-letter:nth-child(5) { --letter-color: var(--c5); }
body[data-theme="deep"] .footer__monument-letter:nth-child(6) { --letter-color: var(--c6); }

/* Tagline ao lado do monumento */
.footer__brand {
  margin: 0;
  font-size: clamp(0.65rem, 1.2vw, 0.78rem);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  writing-mode: horizontal-tb;
  align-self: center;
}

/* Footer responsivo — mobile: dois blocos, DAKOTA + Soluções Digitais logo ao scrollar */
@media (max-width: 900px) {
  :root {
    --footer-height: 52vh;
  }

  .footer {
    height: var(--footer-height);
    min-height: 0;
    overflow-y: auto;
    padding: 1.25rem 1.5rem 0.75rem;
    -webkit-overflow-scrolling: touch;
    flex-direction: column;
  }

  /* DAKOTA + Soluções Digitais embaixo das colunas no mobile */
  .footer__monument-wrap {
    order: 1;
    border-top: 1px solid var(--border);
    margin-top: 1rem;
    padding-top: 1rem;
  }

  /* Dois blocos = duas colunas: (1) Navegação + Escritório  (2) Redes */
  .footer__grid {
    order: 0;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 0 1.25rem;
    padding-bottom: 0;
    margin-bottom: 0;
    border-bottom: none;
  }

  .footer__cell {
    padding: 0.5rem 0;
    border-right: none;
    border-bottom: none;
  }

  .footer__cell:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
  }
  .footer__cell:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
  }
  .footer__cell:nth-child(3) {
    grid-column: 1;
    grid-row: 2;
  }

  .footer__cell:nth-child(odd) {
    padding-right: 0.75rem;
  }
  .footer__cell:nth-child(even) {
    padding-left: 0;
  }

  /* DAKOTA piscando + Soluções Digitais ao lado — mantém em uma linha no mobile */
  .footer__monument-wrap {
    flex: 0 0 auto;
    flex-wrap: nowrap;
    gap: 0.5rem;
    padding: 0.5rem 0;
    justify-content: center;
  }

  .footer__monument {
    font-size: clamp(2.5rem, 12vw, 5rem);
    flex-shrink: 0;
  }

  .footer__brand {
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    white-space: nowrap;
    align-self: center;
  }
}

@media (max-width: 560px) {
  .footer {
    padding: 1rem 1.25rem 0.5rem;
    max-height: 75vh;
  }

  .footer__grid {
    gap: 0 1rem;
  }

  .footer__cell {
    padding: 0.4rem 0;
  }

  .footer__label {
    font-size: 0.6rem;
    margin-bottom: 0.4rem;
  }

  .footer__cell a,
  .footer__links a {
    font-size: 0.85rem;
  }

  /* DAKOTA + Soluções Digitais: tamanho que encaixa e continua ao lado */
  .footer__monument {
    font-size: clamp(2rem, 11vw, 4rem);
  }

  .footer__brand {
    font-size: 0.6rem;
    letter-spacing: 0.12em;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.text-split .line-wrap {
  display: block;
  overflow: hidden;
  padding-top: 0.22em;
  padding-bottom: 0.22em;
  margin-top: -0.22em;
  margin-bottom: -0.22em;
}

.text-split .line {
  display: inline-block;
  transform: translateY(105%) skewY(4deg);
  transition: transform 0.88s cubic-bezier(0.16, 1, 0.3, 1);
}

.text-split.is-visible .line {
  transform: translateY(0) skewY(0);
}

/* Contato: sem skew para evitar “g” fantasma no descendente de “ignorar” */
.section--cta .text-split .line {
  transform: translateY(105%);
}
.section--cta .text-split.is-visible .line {
  transform: translateY(0);
}
.section--cta .text-split .line-wrap {
  overflow: hidden;
  padding-top: 0.28em;
  padding-bottom: 0.22em;
  margin-top: -0.28em;
  margin-bottom: -0.22em;
}

.is-ready .hero .text-split .line {
  transition-delay: var(--d, 0ms);
}

/* ========== Painel de acessibilidade (dropdown do header) ========== */
.a11y-panel {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 0.5rem;
  width: min(320px, calc(100vw - 2rem));
  padding: 1rem;
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  z-index: 100;
}

.a11y-panel[hidden] {
  display: none;
}

.a11y-panel:not([hidden]) {
  display: block;
}

.a11y-panel__close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
}

.a11y-panel__close:hover {
  color: var(--text);
  background: var(--bg-soft);
}

.a11y-panel__close:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

.a11y-panel__group {
  margin-bottom: 1rem;
}

.a11y-panel__group:last-child {
  margin-bottom: 0;
}

.a11y-panel__title {
  display: block;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.a11y-panel__row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.a11y-panel__value {
  min-width: 2.5rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
}

.a11y-btn {
  padding: 0.35rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-soft);
  color: var(--text);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.a11y-btn:hover {
  border-color: var(--blue);
  background: color-mix(in srgb, var(--blue) 12%, var(--bg-soft));
}

.a11y-btn:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

.a11y-panel__options {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.a11y-radio {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text);
  cursor: pointer;
}

.a11y-radio input {
  width: 1rem;
  height: 1rem;
  accent-color: var(--blue);
}

/* Zoom da página (aplicado via JS em html) — layout continua usável em 200% e 400% */
html[data-zoom="200"] {
  font-size: 200%;
}

html[data-zoom="400"] {
  font-size: 400%;
}

/* Tamanho da fonte (escala base) — não quebra layout; use rem no resto */
html[data-font-size="small"] {
  --base-font-size: 0.875rem;
}

html[data-font-size="large"] {
  --base-font-size: 1.125rem;
}

html[data-font-size="xlarge"] {
  --base-font-size: 1.25rem;
}

/* Daltonismo: filtros aplicados ao conteúdo (não ao painel) */
#page-wrap {
  min-height: 100vh;
}

body[data-daltonism="highcontrast"] #page-wrap {
  --text: #000;
  --text-muted: #1e293b;
  --bg: #fff;
  --bg-soft: #f1f5f9;
  --border: rgba(0, 0, 0, 0.25);
}

body[data-theme="deep"][data-daltonism="highcontrast"] #page-wrap {
  --text: #fff;
  --text-muted: #e2e8f0;
  --bg: #0a0a0a;
  --bg-soft: #1a1a1a;
  --border: rgba(255, 255, 255, 0.3);
}

body[data-daltonism="protanopia"] #page-wrap {
  filter: url(#protanopia);
}

body[data-daltonism="deuteranopia"] #page-wrap {
  filter: url(#deuteranopia);
}

body[data-daltonism="tritanopia"] #page-wrap {
  filter: url(#tritanopia);
}

body[data-daltonism="monochrome"] #page-wrap {
  filter: grayscale(1) contrast(1.08);
}

@media (max-width: 980px) {
  .nav-links {
    display: none;
  }

  .header__menu-btn {
    display: flex;
  }

  .a11y-trigger__label {
    display: none;
  }

  .a11y-trigger {
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 8px;
    justify-content: center;
  }

  .bento__card,
  .bento__card--featured {
    grid-column: span 12;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .cursor,
  .theme-wipe {
    display: none !important;
  }
}
