/* ============================================================
   Abstrakt · Landing temporária
   Direção: sobriedade enterprise, denso e escuro, tipografia
   Archivo (títulos) + Spline Sans Mono (rótulos operacionais)
   ============================================================ */

:root {
  --ink: #0b0d0e;
  --paper: #f2f0eb;
  --paper-dim: rgba(242, 240, 235, 0.72);
  --accent: #ff5c1a;
  --line: rgba(242, 240, 235, 0.22);
  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Spline Sans Mono", "SF Mono", Menlo, monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-display);
  font-weight: 300;
  overflow-x: hidden;
}

/* ---------- vídeo de fundo ---------- */

.video-stage {
  position: fixed;
  inset: 0;
  z-index: 0;
}

.video-stage video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.85) contrast(1.02);
}

/* véu para legibilidade do texto sobre o vídeo */
.veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11, 13, 14, 0.55) 0%, rgba(11, 13, 14, 0.25) 40%, rgba(11, 13, 14, 0.62) 100%),
    radial-gradient(120% 90% at 20% 50%, rgba(11, 13, 14, 0.45) 0%, rgba(11, 13, 14, 0.1) 60%);
}

.grain {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.28'/%3E%3C/svg%3E");
}

/* ---------- topo ---------- */

/* topo: visível apenas no mobile (no desktop o logo vive acima do menu lateral) */
.topbar {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: none;
  justify-content: flex-start;
  align-items: center;
  padding: 1.4rem clamp(1.6rem, 7vw, 8rem);
  mix-blend-mode: normal;
}

@media (max-width: 900px) {
  .topbar { display: flex; }
}

.brand {
  display: block;
  text-decoration: none;
}

.brand img {
  display: block;
  height: 30px;
  width: auto;
  opacity: 0.6;
}

/* ---------- trilho lateral ---------- */

.rail {
  position: fixed;
  z-index: 20;
  right: 2.2rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  align-items: flex-end;
}

/* logo lateral: acima do menu, alinhado à direita na régua dos traços */
.side-brand {
  position: fixed;
  z-index: 20;
  right: calc(2.2rem - 5px);
  bottom: calc(50% + 190px);
}

.side-brand img {
  display: block;
  height: 22px;
  width: auto;
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.side-brand:hover img {
  opacity: 0.9;
}

@media (max-width: 900px) {
  .side-brand { display: none; }
}

.rail a {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--paper-dim);
  opacity: 0.45;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  transition: opacity 0.3s ease, color 0.3s ease;
}

.rail a:hover { opacity: 0.85; }

.rail a.active {
  opacity: 1;
  color: var(--accent);
}

.rail-name {
  font-weight: 700;
}

.rail-num {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  padding: 0.26rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.rail a.active .rail-num {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--ink);
}

/* traço com o mesmo efeito de varredura do "role para continuar" */
.rail-line {
  display: block;
  width: 1.4rem;
  height: 1px;
  background: currentColor;
  position: relative;
  overflow: hidden;
  transition: width 0.3s ease, background 0.3s ease;
}

.rail a.active .rail-line {
  width: 2.6rem;
  background: var(--line);
}

.rail-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: translateX(-100%);
}

.rail a.active .rail-line::after,
.rail a:hover .rail-line::after {
  animation: sweep 2.4s ease-in-out infinite;
}

/* ---------- seletor de idioma ---------- */

/* desktop: abaixo do trilho, na mesma régua à direita */
.lang-switch {
  position: fixed;
  z-index: 20;
  right: 2.2rem;
  top: calc(50% + 165px);
  display: flex;
  gap: 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.lang-switch a {
  color: var(--paper-dim);
  opacity: 0.45;
  text-decoration: none;
  transition: opacity 0.3s ease, color 0.3s ease;
}

.lang-switch a:hover { opacity: 0.85; }

.lang-switch a[aria-current="page"] {
  opacity: 1;
  color: var(--accent);
}

/* mobile: no topo, alinhado ao logo */
@media (max-width: 900px) {
  .lang-switch {
    top: 1.4rem;
    right: clamp(1.6rem, 7vw, 8rem);
    height: 30px;
    align-items: center;
  }
}

/* ---------- seções ---------- */

main { position: relative; z-index: 10; }

.panel {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6rem clamp(1.6rem, 7vw, 8rem);
  position: relative;
}

.content {
  max-width: 52rem;
}

#s1 .display {
  margin-bottom: calc(1.8rem - 5px);
}

/* revelação por seção */
.content > * {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.panel.in-view .content > * { opacity: 1; transform: none; }

.panel.in-view .content > *:nth-child(1) { transition-delay: 0.05s; }
.panel.in-view .content > *:nth-child(2) { transition-delay: 0.16s; }
.panel.in-view .content > *:nth-child(3) { transition-delay: 0.3s; }
.panel.in-view .content > *:nth-child(4) { transition-delay: 0.44s; }
.panel.in-view .content > *:nth-child(5) { transition-delay: 0.58s; }

/* ---------- tipografia ---------- */

.kicker {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--paper-dim);
  margin-bottom: 1.1rem;
  padding: 0.34rem 0.75rem 0.34rem calc(0.75rem + 0.24em);
  border-radius: 999px;
  background: rgba(242, 240, 235, 0.07);
  border: 1px solid rgba(242, 240, 235, 0.12);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* alinha a tinta da label com a tinta do título grande (bearing óptico) */
.panel:not(#s1) .kicker {
  margin-left: 5px;
}

.display {
  font-weight: 640;
  font-stretch: 108%;
  font-size: clamp(2.3rem, 5.4vw, 4.6rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin-bottom: 1.8rem;
  text-wrap: balance;
}

.display-sm {
  font-size: clamp(2rem, 4.2vw, 3.4rem);
}

.display-lg {
  font-size: clamp(2.8rem, 6.5vw, 5.6rem);
}

.display-md {
  font-size: clamp(2.1rem, 4vw, 3.6rem);
}

/* alemão: compostos longos não podem estourar a largura no mobile */
:lang(de) .display,
:lang(de) .acc-head {
  hyphens: auto;
  -webkit-hyphens: auto;
}

.display-accent {
  color: var(--accent);
}

.lede {
  font-size: clamp(1.02rem, 1.5vw, 1.25rem);
  line-height: 1.6;
  color: var(--paper-dim);
  max-width: 40rem;
}

.lede-wide {
  max-width: none;
}

/* textos de apoio das seções de produto 02–05: levemente menores */
#s2 .lede,
#s3 .lede,
#s4 .lede,
#s5 .lede {
  font-size: clamp(0.95rem, 1.35vw, 1.12rem);
}

.provocation {
  margin-top: 2.6rem;
  font-size: clamp(1.3rem, 2.4vw, 1.9rem);
  font-weight: 500;
  font-style: normal;
}

.provocation em {
  font-style: normal;
  color: var(--accent);
}

.br-lg { display: none; }
@media (min-width: 900px) { .br-lg { display: inline; } }

/* ---------- acordeão ---------- */

.accordion {
  margin-top: 2.6rem;
  max-width: 32.5rem;
  border-top: 1px solid var(--line);
}

.acc-item {
  border-bottom: 1px solid var(--line);
}

.acc-head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem 0;
  border: none;
  background: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--paper);
  transition: color 0.25s ease;
}

.acc-head:hover { color: var(--accent); }

.acc-item[data-open="true"] .acc-head { color: var(--accent); }

.acc-icon {
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: currentColor;
  flex-shrink: 0;
  transition: transform 0.35s ease, border-color 0.25s ease;
}

.acc-item[data-open="true"] .acc-icon {
  transform: rotate(180deg);
  border-color: var(--accent);
}

.acc-icon svg { width: 0.6rem; height: 0.6rem; }

.acc-icon .v { transition: opacity 0.25s ease; }

.acc-item[data-open="true"] .acc-icon .v { opacity: 0; }

.acc-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
}

.acc-item[data-open="true"] .acc-body { max-height: 420px; }

.acc-body-inner {
  padding-bottom: 1.1rem;
  font-size: 0.82rem;
  line-height: 1.65;
  color: var(--paper-dim);
  max-width: 30rem;
}

/* ---------- três frentes ---------- */

.fronts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 2.4rem;
  border-top: 1px solid var(--line);
}

.front {
  padding: 1.8rem 1.6rem 0 0;
  border-right: 1px solid var(--line);
  padding-right: 1.6rem;
}

.front:nth-child(2) { padding-left: 1.6rem; }
.front:last-child { border-right: none; padding-left: 1.6rem; }

.front-index {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.front h3 {
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  margin-bottom: 0.8rem;
}

.front p:last-child {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--paper-dim);
}

/* ---------- botão de acesso aos produtos ---------- */

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 2rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  padding: 0.85rem 1.5rem;
  background: none;
  cursor: pointer;
  border: 1px solid var(--accent);
  border-radius: 999px;
  transition: border-color 0.25s ease, color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.btn-link .btn-arrow {
  display: inline-block;
  transition: transform 0.25s ease;
}

.btn-link:hover {
  border-color: var(--line);
  color: var(--paper);
  transform: translateY(-2px);
}

.btn-link:hover .btn-arrow {
  transform: translateX(4px);
}

/* ---------- CTA ---------- */

.cta {
  display: inline-block;
  margin-top: 2.6rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--paper);
  text-decoration: none;
  padding: 1.1rem 2.2rem;
  border-radius: 999px;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.cta:hover {
  background: var(--accent);
  color: var(--ink);
  transform: translateY(-2px);
}

.footnote {
  margin-top: 3.2rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--paper-dim);
  opacity: 0.6;
}

/* ---------- rodapé institucional (base da última seção) ---------- */

.site-footer {
  position: absolute;
  left: clamp(1.6rem, 7vw, 8rem);
  right: clamp(1.6rem, 7vw, 8rem);
  bottom: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.6rem;
  flex-wrap: wrap;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.04em;
  line-height: 1.5;
  color: var(--paper-dim);
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  white-space: nowrap;
}

.footer-brand img {
  display: block;
  height: 12px;
  width: auto;
  opacity: 0.55;
}

.footer-address {
  font-style: normal;
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0 0.5rem;
  white-space: nowrap;
  opacity: 0.85;
}

.footer-address .sep {
  color: var(--accent);
  opacity: 0.8;
}

.footer-cnpj {
  white-space: nowrap;
  opacity: 0.85;
}

.footer-label {
  display: inline-block;
  margin-right: 0.45rem;
  padding: 0.18rem 0.45rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.54rem;
  letter-spacing: 0.14em;
  line-height: 1;
}

@media (max-width: 900px) {
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }
}

/* ---------- esteira de logos (hero) ---------- */

.logo-marquee {
  position: absolute;
  left: 15%;
  right: 15%;
  bottom: 2.4rem;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 60s linear infinite;
}

.marquee-group {
  display: flex;
  align-items: center;
  gap: clamp(3rem, 6vw, 5.5rem);
  padding-right: clamp(3rem, 6vw, 5.5rem);
}

.marquee-group img {
  height: 46px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.8;
}

/* Itaú e ONS são mais "cheios" e saltam mais: opacidade levemente menor */
.marquee-group img[src*="logo_itau"],
.marquee-group img[src*="logo_ONS"] {
  opacity: 0.6;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (max-width: 900px) {
  .marquee-group img { height: 34px; }
}

/* ---------- galeria do software (modal) ---------- */

html.gallery-open { overflow: hidden; }

.gallery {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: clamp(1.2rem, 4vw, 3rem) clamp(1.2rem, 5vw, 4.5rem);
  border: none;
  color: var(--paper);
  background: rgba(11, 13, 14, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.gallery::backdrop { background: transparent; }

.gallery[open] { animation: gallery-in 0.45s cubic-bezier(0.22, 1, 0.36, 1); }

.gallery[open] .gallery-frame { animation: gallery-rise 0.6s cubic-bezier(0.22, 1, 0.36, 1); }

@keyframes gallery-in { from { opacity: 0; } }
@keyframes gallery-rise { from { opacity: 0; transform: translateY(18px); } }

.gallery-frame {
  height: 100%;
  outline: none;
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: clamp(1rem, 2.4vh, 1.8rem);
}

.gallery-head {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.gallery-label,
.gallery-count {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--paper-dim);
}

.gallery-title {
  font-weight: 640;
  font-stretch: 108%;
  font-size: clamp(1.15rem, 2vw, 1.6rem);
  letter-spacing: -0.01em;
  color: var(--accent);
}

.gallery-count {
  margin-left: auto;
  font-variant-numeric: tabular-nums;
}

.gallery-close,
.gallery-nav {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 0.95rem;
  cursor: pointer;
  transition: border-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.gallery-close svg { width: 12px; height: 12px; }

.gallery-close:hover,
.gallery-nav:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.gallery-prev:hover { transform: translateX(-3px); }
.gallery-next:hover { transform: translateX(3px); }

.gallery-close:focus-visible,
.gallery-nav:focus-visible,
.gallery-thumbs button:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 3px;
}

.gallery-stage {
  min-height: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(0.8rem, 2vw, 1.6rem);
}

.gallery-slides {
  position: relative;
  width: 100%;
  height: 100%;
  container-type: size;
  touch-action: pan-y;
}

.slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.8rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s ease, visibility 0s linear 0.45s;
}

.slide.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.45s ease;
}

/* a mídia ocupa o maior 16:9 que cabe no palco, descontada a legenda */
.slide > img,
.slide > video,
.slide-ph {
  width: min(100cqw, (100cqh - 2rem) * 16 / 9);
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  background: rgba(242, 240, 235, 0.04);
}

.slide > img,
.slide > video {
  object-fit: contain;
  border: 1px solid rgba(242, 240, 235, 0.12);
}

/* placeholder até chegarem as telas e o vídeo reais */
.slide-ph {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 1rem;
  border: 1px dashed var(--line);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--paper-dim);
}

.slide[data-type="video"] .slide-ph::before {
  content: "";
  width: 56px;
  height: 56px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 56 56'%3E%3Cpath d='M23 19 L37 28 L23 37 Z' fill='%23ff5c1a'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}

.slide figcaption {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--paper-dim);
}

.gallery-thumbs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.4rem 1.4rem;
}

.gallery-thumbs button {
  position: relative;
  padding: 0.7rem 0.1rem;
  border: none;
  background: none;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--paper-dim);
  opacity: 0.5;
  cursor: pointer;
  transition: opacity 0.25s ease, color 0.25s ease;
}

.gallery-thumbs button::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.25rem;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.gallery-thumbs button:hover { opacity: 0.85; }

.gallery-thumbs button[aria-current="true"] {
  opacity: 1;
  color: var(--accent);
}

.gallery-thumbs button[aria-current="true"]::after { transform: scaleX(1); }

.gallery.is-single .gallery-nav,
.gallery.is-single .gallery-count,
.gallery.is-single .gallery-thumbs { visibility: hidden; }

@media (max-width: 900px) {
  .gallery-label { display: none; }
  .gallery-stage { grid-template-columns: minmax(0, 1fr); }
  .gallery-nav { display: none; }
}

/* ---------- varredura (usada no trilho lateral) ---------- */

@keyframes sweep {
  0% { transform: translateX(-100%); }
  55% { transform: translateX(100%); }
  100% { transform: translateX(100%); }
}

/* ---------- consentimento de cookies ---------- */

.consent {
  position: fixed;
  z-index: 30;
  left: clamp(1rem, 3vw, 2.2rem);
  bottom: clamp(1rem, 3vw, 2.2rem);
  max-width: 25rem;
  padding: 1.3rem 1.4rem;
  background: rgba(11, 13, 14, 0.92);
  border: 1px solid var(--line);
  border-radius: 14px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  animation: consent-in 0.4s ease both;
}

.consent[hidden] { display: none; }

.consent-text {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  line-height: 1.6;
  letter-spacing: 0.02em;
  color: var(--paper-dim);
}

.consent-actions {
  display: flex;
  gap: 0.6rem;
  margin-top: 1.1rem;
}

.consent-btn {
  flex: 1;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--paper);
  background: transparent;
  border: 1px solid var(--paper-dim);
  border-radius: 999px;
  padding: 0.75rem 1rem;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.consent-btn--accept {
  color: var(--ink);
  background: var(--paper);
  border-color: var(--paper);
}

.consent-btn:hover,
.consent-btn:focus-visible {
  color: var(--ink);
  background: var(--accent);
  border-color: var(--accent);
}

.consent-btn:focus-visible,
.footer-cookies:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* botão do rodapé que reabre o aviso */
.footer-cookies {
  font: inherit;
  letter-spacing: inherit;
  color: inherit;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--line);
  opacity: 0.85;
}

.footer-cookies:hover { color: var(--accent); }

@keyframes consent-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 900px) {
  .consent {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    max-width: none;
  }
}

/* ---------- responsivo ---------- */

@media (max-width: 900px) {
  .rail { display: none; }

  .fronts {
    grid-template-columns: 1fr;
    border-top: none;
  }

  .front,
  .front:nth-child(2),
  .front:last-child {
    border-right: none;
    border-top: 1px solid var(--line);
    padding: 1.4rem 0 0.6rem 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .content > * { transition: none; opacity: 1; transform: none; }
  .rail-line::after { animation: none !important; }
  .marquee-track { animation: none; }
  .consent { animation: none; }
  .gallery[open],
  .gallery[open] .gallery-frame { animation: none; }
  .slide, .gallery-thumbs button::after, .gallery-close, .gallery-nav { transition: none; }
}
