/* ============================================================
   ÔMEGA CONSTRUTORA — Sistema de design v2
   Claro & arejado · navy #2B2D42 · vermelho #D90429 · #EDF2F4
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* paleta da marca */
  --navy: #2B2D42;
  --navy-2: #34374f;
  --slate: #8D99AE;
  --mist: #EDF2F4;
  --red: #D90429;
  --red-hi: #EF233C;

  /* superfícies claras */
  --bg: #ffffff;
  --bg-soft: #EDF2F4;
  --bg-mist: #f5f8fa;
  --surface: #ffffff;

  /* superfícies escuras */
  --dark: #2B2D42;
  --dark-2: #25273a;
  --dark-3: #1f2030;

  /* texto sobre claro */
  --ink: #2B2D42;
  --ink-2: #4a4e66;
  --ink-body: #565b73;
  --ink-mute: #8D99AE;

  /* texto sobre escuro */
  --on-dark: #EDF2F4;
  --on-dark-dim: #aeb6c6;
  --on-dark-mute: #7e88a0;

  /* acento */
  --accent: #D90429;
  --accent-hi: #EF233C;
  --accent-ink: #ffffff;
  --accent-glow: rgba(217, 4, 41, 0.28);

  --line: rgba(43, 45, 66, 0.12);
  --line-soft: rgba(43, 45, 66, 0.07);
  --line-dark: rgba(237, 242, 244, 0.14);

  --font-display: "Bebas Neue", "Archivo", sans-serif;
  --font-sans: "Archivo", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --maxw: 1360px;
  --gutter: clamp(24px, 5.5vw, 90px);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --radius: 6px;
  --radius-lg: 16px;
  --radius-xl: 26px;
}

/* fix accidental glyphs */
:root {
  --ink-2: #4a4e66;
  --ink-body: #565b73;
}

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

* {
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink-body);
  line-height: 1.7;
  font-size: 17px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

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

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  background: none;
  border: none;
}

::selection {
  background: var(--accent);
  color: #fff;
}

/* ---------- Grain (sutil, off por padrão) ---------- */
.fx-grain {
  position: fixed;
  inset: 0;
  z-index: 9000;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

body[data-grain="off"] .fx-grain {
  display: none;
}

.fx-vignette {
  display: none;
}

/* ---------- Layout helpers ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  position: relative;
  padding-block: clamp(32px, 5vw, 64px);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--accent);
  display: inline-block;
}

.eyebrow.center::after {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--accent);
  display: inline-block;
}

.eyebrow.on-dark {
  color: var(--red-hi);
}

h1,
h2,
h3 {
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.display {
  font-family: var(--font-display);
  text-transform: uppercase;
  line-height: 1.05;
  letter-spacing: 0.04em;
  font-weight: 400;
}

.lede {
  color: var(--ink-body);
  font-size: clamp(16px, 1.25vw, 19px);
  max-width: 56ch;
  line-height: 1.9;
  font-weight: 400;
}

.font-w600 {
  font-weight: 600;
}

.font-w700 {
  font-weight: 700;
}

.font-w800 {
  font-weight: 800;
}

.font-w900 {
  font-weight: 900;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 17px 28px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  border-radius: 999px;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s var(--ease), background 0.3s, color 0.3s, box-shadow 0.4s, border-color 0.3s;
}

.btn .arrow {
  transition: transform 0.4s var(--ease);
}

.btn:hover .arrow {
  transform: translateX(5px);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  padding: 18px 32px;
  font-size: 13px;
  letter-spacing: 0.1em;
}

.btn-primary:hover {
  background: var(--red-hi);
  box-shadow: 0 16px 38px -10px var(--accent-glow);
  transform: translateY(-2px);
}

.btn-ghost {
  border: 1.5px solid var(--line);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.btn-ghost.on-dark {
  border-color: var(--line-dark);
  color: var(--on-dark);
}

.btn-ghost.on-dark:hover {
  border-color: var(--red-hi);
  color: var(--red-hi);
}


/* ============================================================
   NAV - SEMPRE BRANCA
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 1px 0 var(--line-soft), 0 12px 40px -28px rgba(43, 45, 66, 0.4);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  height: 76px;
}

/* logo sempre versão escura (sobre branco) */
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.brand-symbol {
  height: 40px;
  width: auto;
}

.sym-on-dark {
  display: none;
}

/* esconde versão clara */
.sym-on-light {
  display: block;
}

/* mostra versão escura sempre */
.brand-word {
  height: 16px;
  width: auto;
}

.wm-light {
  display: none;
}

.wm-dark {
  display: block;
}

/* container de links — centrado */
.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 1;
  margin: 0 48px;
}

/* links sempre escuros */
.nav-links a {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 10px 14px;
  position: relative;
  transition: color 0.3s, transform 0.3s;
  font-weight: 600;
  border-radius: 4px;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 6px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

.nav-links a:hover {
  color: var(--accent);
  transform: translateY(-1px);
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

/* CTA e tel à direita */
.nav-cta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  flex-shrink: 0;
}

/* hamburger sempre escuro */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  cursor: pointer;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--ink);
  transition: 0.3s;
}

/* estado scrollado - sem mudanças */
.nav.scrolled {
  box-shadow: 0 1px 0 var(--line-soft), 0 8px 24px -16px rgba(43, 45, 66, 0.3);
}

/* ============================================================
   HERO (dark cinematográfico, 3 variações)
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  background: var(--dark);
}

.hero-variant {
  display: none;
}

body[data-hero="a"] .hero-a,
body[data-hero="b"] .hero-b,
body[data-hero="c"] .hero-c {
  display: block;
}

.hero-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.hero-media media-slot {
  width: 100%;
  height: 118%;
  position: absolute;
  top: -9%;
  left: 0;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-media {
    animation: kenburns 26s ease-in-out infinite alternate;
    transform-origin: 60% 45%;
  }
}

.hero-media:has(media-slot[data-kind="video"]) {
  animation: none;
}

@keyframes kenburns {
  from {
    transform: scale(1.02);
  }

  to {
    transform: scale(1.12);
  }
}

.hero-media image-slot {
  width: 100%;
  height: 118%;
  position: absolute;
  top: -9%;
  left: 0;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(31, 32, 48, 0.5) 0%, rgba(31, 32, 48, 0.1) 28%, rgba(31, 32, 48, 0.7) 76%, var(--dark) 100%),
    linear-gradient(90deg, rgba(31, 32, 48, 0.88) 0%, rgba(31, 32, 48, 0.12) 62%);
}

.hero h1,
.hero .lede {
  color: var(--on-dark);
}

.hero .lede {
  color: var(--on-dark-dim);
}

/* Let drops reach the full-bleed background slot: text containers are
   transparent to the pointer, but links/buttons/slots stay interactive. */
.hero .hero-inner,
.hero .hero-grid,
.hero .hero-text,
.hero .panel-row,
.hero .panel-copy,
.hero .kicker,
.hero .hero-foot,
.hero .hero-tags {
  pointer-events: none;
}

.hero a,
.hero .btn,
.hero button,
.hero media-slot,
.hero .float-card {
  pointer-events: auto;
}

.hero-media media-slot {
  z-index: 0;
}

.hero-media:has(media-slot:not([data-filled]))::after {
  opacity: 0;
}

/* ---------- Hero background slideshow (3 slides, cross-fade + zoom por slide) ---------- */
/* Quando o slideshow assume, o Ken-Burns global sai de cena (cada slide tem seu zoom),
   o media-slot legado fica oculto e o gradiente de leitura fica sempre visível. */
.hero-media.has-slideshow {
  animation: none !important;
}

.hero-media.has-slideshow media-slot {
  display: none !important;
}

.hero-media.has-slideshow::after {
  opacity: 1 !important;
}

.hero-ss {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

/* Estado (opacity/transform) das camadas é controlado pelo motor JS (Web Animations
   API em hero-slideshow.js) — entrada/saída na .hero-slide e movimento no filho. */
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  will-change: opacity, transform;
}

.hero-slide-img,
.hero-slide video {
  position: absolute;
  top: -9%;
  left: 0;
  width: 100%;
  height: 118%;
  object-fit: cover;
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  will-change: transform;
}

.hero-media:has(media-slot:not([data-filled])) media-slot {
  z-index: 3;
}

.scroll-cue {
  position: absolute;
  left: var(--gutter);
  bottom: 34px;
  z-index: 6;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--on-dark-mute);
  display: flex;
  align-items: center;
  gap: 12px;
}

.scroll-cue .line {
  width: 2px;
  height: 46px;
  background: var(--line-dark);
  position: relative;
  overflow: hidden;
}

.scroll-cue .line::after {
  content: "";
  position: absolute;
  top: -46px;
  left: 0;
  width: 2px;
  height: 46px;
  background: var(--red-hi);
  animation: cueDrop 2.4s var(--ease) infinite;
}

@keyframes cueDrop {
  0% {
    transform: translateY(0)
  }

  60%,
  100% {
    transform: translateY(92px)
  }
}

.hero-drop-hint {
  position: absolute;
  right: var(--gutter);
  bottom: 34px;
  z-index: 6;
  display: none;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-dark-dim);
  background: rgba(43, 45, 66, 0.55);
  border: 1px dashed var(--line-dark);
  padding: 11px 15px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
  pointer-events: none;
}

.hero-drop-hint span {
  color: var(--red-hi);
  font-size: 15px;
  line-height: 1;
}

.hero:has(.hero-media media-slot[data-editable]:not([data-filled])) .hero-drop-hint {
  display: flex;
}

/* HERO A */
.hero-a .hero-inner {
  position: relative;
  z-index: 5;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: clamp(74px, 9vw, 128px);
  padding-top: 130px;
}

.hero-a h1 {
  font-size: clamp(36px, 7.6vw, 150px);
  max-width: 18ch;
  font-weight: 900;
  letter-spacing: 0;
}

.hero-a h1 .ln {
  display: block;
  overflow: hidden;
}

.hero-a .accent-word {
  color: var(--red-hi);
}

.hero-a .hero-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 36px;
  margin-top: clamp(10px, 1.8vw, 18px);
}

.hero-a .hero-foot .lede {
  max-width: 46ch;
}

.hero-a .hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* HERO B */
.hero-b .hero-grid {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  min-height: 100svh;
  align-items: stretch;
}

.hero-b .hero-text {
  padding: 160px var(--gutter) 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-b .hero-text h1 {
  font-size: clamp(46px, 6.6vw, 120px);
  font-weight: 900;
  letter-spacing: 0;
}

.hero-b .accent-word {
  color: var(--red-hi);
}

.hero-b .hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 34px 0;
}

.hero-b .hero-tags span {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--on-dark-dim);
  border: 1px solid var(--line-dark);
  padding: 9px 14px;
  border-radius: 999px;
}

.hero-b .hero-figure {
  position: relative;
}

.hero-b .hero-figure media-slot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-b .hero-figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--dark) 0%, transparent 24%);
  z-index: 2;
  pointer-events: none;
}

.hero-b .float-card {
  position: absolute;
  bottom: 44px;
  left: -54px;
  z-index: 4;
  width: 280px;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid var(--line);
  padding: 26px;
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 60px -24px rgba(31, 32, 48, 0.6);
}

.hero-b .float-card .big {
  font-family: var(--font-display);
  font-size: 50px;
  color: var(--accent);
  line-height: 1.1;
  font-weight: 900;
}

.hero-b .float-card p {
  font-size: 13px;
  color: var(--ink-body);
  margin-top: 8px;
  line-height: 1.5;
}

/* HERO C */
.hero-c .hero-inner {
  position: relative;
  z-index: 5;
  width: 100%;
  padding-block: 156px 76px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100svh;
}

.hero-c .kicker {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  border-bottom: 1px solid var(--line-dark);
  padding-bottom: 22px;
  margin-bottom: 42px;
}

.hero-c .kicker .coords {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--on-dark-mute);
  letter-spacing: 0.1em;
}

.hero-c h1 {
  font-size: clamp(40px, 8.5vw, 148px);
  font-weight: 900;
  letter-spacing: 0;
}

.hero-c h1 .accent-word {
  color: var(--red-hi);
}

.hero-c .panel-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 36px;
  align-items: end;
  margin-top: 50px;
}

.hero-c .hero-frame {
  position: relative;
  height: clamp(220px, 30vw, 372px);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line-dark);
}

.hero-c .hero-frame media-slot {
  width: 100%;
  height: 100%;
}

.hero-c .panel-copy .lede {
  margin-bottom: 26px;
}

.hero-c .hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee {
  border-block: 1px solid var(--line-soft);
  background: var(--bg-soft);
  overflow: hidden;
  padding-block: 0;
  height: 60px;
  display: flex;
  align-items: center;
  position: relative;
}

.marquee-track {
  display: flex;
  white-space: nowrap;
  width: max-content;
  animation: marquee 48s linear infinite;
  align-items: center;
  height: 100%;
}

.marquee-track:hover {
  animation-play-state: paused;
}

.marquee-item {
  display: inline-flex;
  height: 100%;
  align-items: center;
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(15px, 1.6vw, 22px);
  color: var(--slate);
  padding-inline: 42px;
  transition: color 0.3s;
  letter-spacing: 0.01em;
  line-height: 1;
  white-space: nowrap;
  flex-shrink: 0;
}

.marquee-item:hover {
  color: var(--navy);
}

.marquee-item .dot {
  width: 9px;
  height: 9px;
  background: var(--accent);
  border-radius: 50%;
  margin-left: 64px;
  flex-shrink: 0;
}

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

/* ============================================================
   SOBRE (claro)
   ============================================================ */
.about {
  background: var(--bg);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 5.5vw, 90px);
  align-items: center;
}

.about-copy h2 {
  font-size: clamp(34px, 4.4vw, 62px);
  margin: 10px 0 20px;
  max-width: 16ch;
  font-weight: 900;
}

.about-copy h2 em {
  font-style: normal;
  color: var(--accent);
}

.about-copy .lede+.lede {
  margin-top: 12px;
}

.about-meta {
  display: flex;
  gap: 40px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.about-actions {
  margin-top: 16px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.stat .num {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 66px);
  color: var(--navy);
  line-height: 1.1;
  font-weight: 900;
}

.stat .num span {
  color: var(--accent);
}

.stat .lbl {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-top: 6px;
  max-width: 16ch;
}

.about-visual {
  position: relative;
}

.about-visual .collage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1.3fr 1fr;
  gap: 16px;
  height: clamp(430px, 52vw, 610px);
  overflow: hidden;
}

.about-visual image-slot {
  width: 100%;
  height: 100%;
}

.about-visual .tall {
  grid-row: span 2;
}

.about-visual .badge {
  position: absolute;
  bottom: -28px;
  right: -12px;
  background: var(--accent);
  color: #fff;
  width: 138px;
  height: 138px;
  border-radius: 50%;
  display: grid;
  place-content: center;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.4;
  box-shadow: 0 22px 50px -16px var(--accent-glow);
}

.about-visual .badge b {
  font-family: var(--font-display);
  font-size: 32px;
  display: block;
  font-weight: 900;
  line-height: 1.1;
}

.about-visual .badge.spin {
  animation: spin 28s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ============================================================
   SERVIÇOS (mist claro)
   ============================================================ */
.services {
  background: var(--bg-soft);
}

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

.services-head h2 {
  font-size: clamp(34px, 4.6vw, 64px);
  max-width: 14ch;
  font-weight: 900;
}

.services-list {
  border-top: 1px solid var(--line);
}

.svc {
  display: grid;
  grid-template-columns: 64px 1fr 176px 56px;
  gap: 26px;
  align-items: center;
  padding: clamp(22px, 2.8vw, 32px) 10px;
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: padding-left 0.5s var(--ease);
}

.svc::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  opacity: 0;
  transition: opacity 0.45s;
  z-index: -1;
  border-radius: var(--radius);
}

.svc:hover {
  padding-left: 30px;
}

.svc:hover::before {
  opacity: 0.05;
}

.svc .idx {
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--ink-mute);
  font-weight: 700;
}

.svc:hover .idx {
  color: var(--accent);
}

.svc .svc-main {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.svc .svc-title {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(24px, 3.2vw, 46px);
  line-height: 1.12;
  color: var(--navy);
  transition: transform 0.5s var(--ease), color 0.3s;
  letter-spacing: 0.03em;
  font-weight: 800;
}

.svc:hover .svc-title {
  transform: translateX(8px);
  color: var(--accent);
}

.svc .svc-desc {
  color: var(--ink-body);
  font-size: 15.5px;
  max-width: 66ch;
  line-height: 1.7;
  font-weight: 400;
}

.svc .svc-go {
  width: 56px;
  height: 56px;
  border: 1.5px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--ink-2);
  transition: 0.45s var(--ease);
  flex-shrink: 0;
  text-decoration: none;
}

.svc:hover .svc-go {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: rotate(-45deg);
}

.svc-photo {
  width: 176px;
  height: 108px;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.45s var(--ease), box-shadow 0.3s;
  background: rgba(141, 153, 174, 0.16);
  box-shadow: inset 0 0 0 1px rgba(141, 153, 174, 0.45);
}

.svc-photo::part(empty) {
  font-size: 11px;
}

.svc:hover .svc-photo {
  transform: scale(1.03);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.svc-thumb {
  display: none;
}

/* ============================================================
   OBRAS (branco)
   ============================================================ */
.works {
  background: var(--bg);
}

.works-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 28px;
  margin-bottom: 32px;
}

.works-head h2 {
  font-size: clamp(34px, 4.6vw, 64px);
  max-width: 14ch;
  line-height: 1.1;
  font-weight: 900;
  margin-top: 10px;
}

.works-head h2 em {
  color: var(--accent);
  font-style: normal;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}

.work {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-soft);
  min-height: 320px;
  display: flex;
  align-items: flex-end;
  isolation: isolate;
  background: var(--bg-soft);
}

.work.w-7 {
  grid-column: span 7;
}

.work.w-5 {
  grid-column: span 5;
}

.work.w-6 {
  grid-column: span 6;
}

.work.w-4 {
  grid-column: span 4;
}

.work.w-8 {
  grid-column: span 8;
}

.work.tall {
  min-height: 480px;
}

.work-media-wrapper,
.work image-slot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.work::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(0deg, rgba(31, 32, 48, 0.98) 0%, rgba(31, 32, 48, 0.65) 40%, rgba(31, 32, 48, 0.12) 85%);
  transition: opacity 0.5s;
}

.work:has(.work-media-wrapper image-slot:not([data-filled]))::after {
  opacity: 0;
}

.work .work-body {
  padding: clamp(32px, 3.5vw, 48px);
  width: 100%;
  position: relative;
  z-index: 2;
  pointer-events: none;
  transform: translateY(14px);
  transition: transform 0.5s var(--ease);
}

.work .work-cat {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red-hi);
  font-weight: 600;
}

.work .work-title {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(24px, 2.8vw, 42px);
  line-height: 1.12;
  margin-top: 6px;
  color: var(--on-dark);
  font-weight: 900;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  letter-spacing: 0.05em;
}

.work:hover .work-body {
  transform: translateY(0);
}

.work .work-loc {
  font-size: 14px;
  color: var(--on-dark-dim);
  margin-top: 6px;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.4s, max-height 0.5s;
  font-weight: 500;
}

.work:hover .work-loc {
  opacity: 1;
  max-height: 40px;
}

/* ============================================================
   LINHA DO TEMPO (escuro navy — único respiro escuro)
   ============================================================ */
.timeline {
  background: var(--dark);
  overflow: hidden;
}

.timeline h2,
.timeline .yr.on,
.timeline h3 {
  color: var(--on-dark);
}

.timeline-head {
  text-align: center;
  margin-bottom: 40px;
}

.timeline-head h2 {
  font-size: clamp(34px, 5vw, 74px);
  margin-top: 12px;
  color: var(--on-dark);
  font-weight: 900;
}

.tl-track {
  position: relative;
}

.tl-line {
  position: absolute;
  left: 0;
  right: 0;
  top: 70px;
  height: 2px;
  background: var(--line-dark);
}

.tl-progress {
  position: absolute;
  left: 0;
  top: 70px;
  height: 2px;
  background: var(--accent);
  width: 0;
  box-shadow: 0 0 14px var(--accent-glow);
}

.tl-items {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(264px, 1fr);
  gap: 34px;
  overflow-x: auto;
  padding-bottom: 22px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--slate) transparent;
}

.tl-item {
  scroll-snap-align: start;
  position: relative;
  padding-top: 104px;
}

.tl-item .node {
  position: absolute;
  top: 63px;
  left: 0;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--dark);
  border: 2px solid var(--on-dark-mute);
  transition: 0.4s;
}

.tl-item.on .node {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 6px var(--accent-glow);
}

.tl-item .yr {
  font-family: var(--font-display);
  font-size: clamp(34px, 4vw, 56px);
  color: var(--on-dark-mute);
  line-height: 1;
  transition: color 0.4s;
}

.tl-item.on .yr {
  color: var(--red-hi);
}

.tl-item h3 {
  font-size: 20px;
  margin: 12px 0 8px;
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.25;
  color: var(--on-dark);
}

.tl-item p {
  color: var(--on-dark-dim);
  font-size: 14.5px;
  line-height: 1.6;
}

/* ============================================================
   CONTATO (claro)
   ============================================================ */
.contact {
  background: var(--bg-soft);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(44px, 5.5vw, 92px);
}

.contact-copy h2 {
  font-size: clamp(36px, 5vw, 74px);
  margin: 12px 0 20px;
  line-height: 1.1;
  font-weight: 900;
}

.contact-copy h2 em {
  color: var(--accent);
  font-style: normal;
}

.contact-info {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.cinfo {
  display: flex;
  gap: 22px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}

.cinfo .k {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  width: 96px;
  flex-shrink: 0;
}

.cinfo .v {
  font-size: 16px;
  color: var(--ink);
  line-height: 1.55;
}

.cinfo .v a:hover {
  color: var(--accent);
}

.contact-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: clamp(28px, 3.2vw, 48px);
  box-shadow: 0 30px 70px -40px rgba(43, 45, 66, 0.4);
  min-width: 0;
}

.form-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
}

.field {
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-width: 0;
}

.field label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.field input,
.field select,
.field textarea {
  background: var(--bg-mist);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  padding: 15px 16px;
  font-family: var(--font-sans);
  font-size: 15px;
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
  width: 100%;
  min-width: 0;
}

.field textarea {
  resize: vertical;
  min-height: 116px;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--ink-mute);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 4px var(--accent-glow);
}

.contact-form .btn-primary {
  width: 100%;
  justify-content: center;
  margin-top: 8px;
}

.form-note {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-mute);
  margin-top: 16px;
  text-align: center;
  letter-spacing: 0.06em;
}

.map-wrap {
  margin-top: 28px;
  height: 230px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  position: relative;
  filter: grayscale(0.6) contrast(0.98);
  transition: filter 0.5s;
}

.map-wrap:hover {
  filter: grayscale(0);
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ============================================================
   RODAPÉ (navy)
   ============================================================ */
.footer {
  background: var(--dark-3);
  padding-top: clamp(70px, 8vw, 120px);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 44px;
  padding-bottom: 64px;
  border-bottom: 1px solid var(--line-dark);
}

.footer .brand {
  margin-bottom: 26px;
}

.footer .brand-word {
  height: 16px;
}

.footer-about p {
  color: var(--on-dark-dim);
  font-size: 15px;
  max-width: 38ch;
  line-height: 1.7;
}

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--on-dark-mute);
  margin-bottom: 22px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.footer-col a {
  color: var(--on-dark-dim);
  font-size: 14.5px;
  transition: color 0.3s, padding-left 0.3s;
}

.footer-col a:hover {
  color: var(--red-hi);
  padding-left: 5px;
}

.footer-col .btn {
  color: #fff;
}

.footer-col .btn:hover {
  color: #fff;
  padding-left: 32px;
}

.footer-cta {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-cta h4 {
  margin-bottom: 6px;
}

.footer-cta p {
  color: var(--on-dark-dim);
  font-size: 14.5px;
  line-height: 1.6;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-block: 32px;
}

.footer-bottom p {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--on-dark-mute);
  letter-spacing: 0.02em;
}

.footer-giant {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(60px, 17vw, 280px);
  line-height: 0.88;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--line-dark);
  text-align: center;
  padding-block: 24px 6px;
  letter-spacing: 0.02em;
  font-weight: 900;
  user-select: none;
}

/* ============================================================
   REVEAL
   ============================================================ */
.reveal {
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}

html.js .reveal {
  opacity: 0;
  transform: translateY(34px);
}

html.js .reveal.in {
  opacity: 1;
  transform: none;
}

.reveal-d1 {
  transition-delay: 0.08s;
}

.reveal-d2 {
  transition-delay: 0.16s;
}

.reveal-d3 {
  transition-delay: 0.24s;
}

.reveal-d4 {
  transition-delay: 0.32s;
}

.lines .ln>span {
  display: block;
  transition: transform 1.7s var(--ease-out), opacity 1.3s ease-out;
}

html.js .lines .ln>span {
  transform: translateY(110%);
  opacity: 0;
}

html.js .lines.in .ln>span {
  transform: none;
  opacity: 1;
}

html.js .lines.in .ln {
  overflow: visible;
}

.lines .ln:nth-child(2)>span {
  transition-delay: 0.16s;
}

.lines .ln:nth-child(3)>span {
  transition-delay: 0.32s;
}

.lines .ln:nth-child(4)>span {
  transition-delay: 0.48s;
}

@media (prefers-reduced-motion: reduce) {

  .reveal,
  .lines .ln>span {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ============================================================
   RESPONSIVO
   ============================================================ */
/* ---------- Mobile menu ---------- */
.mobile-menu {
  position: fixed;
  top: 76px;
  left: 0;
  right: 0;
  z-index: 999;
  display: none;
  flex-direction: column;
  gap: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line-soft);
  max-height: calc(100vh - 76px);
  overflow-y: auto;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  padding: 18px var(--gutter);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid var(--line-soft);
  transition: background 0.3s, color 0.3s;
  font-weight: 600;
}

.mobile-menu a:last-child {
  border-bottom: none;
}

.mobile-menu a:hover {
  background: var(--bg-soft);
  color: var(--accent);
}

.mobile-menu a[href*="transparencia"] {
  color: var(--accent);
}

@media (max-width: 1080px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }

  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }
}

@media (max-width: 900px) {

  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-b .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-b .hero-figure {
    min-height: 60svh;
  }

  .hero-b .float-card {
    left: var(--gutter);
    bottom: 24px;
  }

  .hero-c .panel-row {
    grid-template-columns: 1fr;
  }

  .works-grid .work {
    grid-column: 1 / -1 !important;
    min-height: 340px;
  }

  .svc {
    grid-template-columns: 44px 1fr 110px;
    gap: 18px;
  }

  .svc .svc-go {
    display: none;
  }

  .svc-photo {
    width: 110px;
    height: 76px;
  }

  .svc-photo::part(empty) {
    font-size: 8.5px;
  }
}

@media (max-width: 560px) {
  :root {
    --gutter: 22px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }

  .about-meta {
    gap: 28px;
  }

  .svc {
    grid-template-columns: 36px 1fr;
  }

  .svc-photo {
    display: none;
  }

  .cinfo {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 14px 0;
  }

  .cinfo .k {
    width: auto;
  }

  .cinfo .v {
    word-break: break-word;
  }

  .contact-form {
    padding: 20px;
  }
}

@media (max-width: 768px) {
  .brand-word {
    display: none !important;
  }

  .nav-cta .btn {
    padding: 11px 20px;
    font-size: 11.5px;
  }

  .nav-cta {
    gap: 14px;
  }
}

/* ============================================================
   LIGHTBOX GALERIA DE OBRAS — Redesign moderno
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: #0c0d14;
  display: none;
  flex-direction: column;
  color: #fff;
  opacity: 0;
  transition: opacity 0.3s ease;
  overflow: hidden;
}

.lightbox.open {
  display: flex;
  opacity: 1;
}

/* --- Barra superior com info e fechar --- */
.lightbox-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  flex-shrink: 0;
  background: linear-gradient(to bottom, rgba(12, 13, 20, 0.95), transparent);
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2100;
}

.lightbox-header-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.lightbox-caption h4 {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(16px, 2vw, 24px);
  letter-spacing: 0.06em;
  color: #fff;
  margin: 0;
  line-height: 1.1;
}

.lightbox-caption p {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
  margin: 0;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: var(--font-mono);
}

.lightbox-counter {
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.12em;
  margin-right: 16px;
}

.lightbox-close {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s, transform 0.2s;
  line-height: 1;
  flex-shrink: 0;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  transform: rotate(90deg);
}

/* --- Área principal da imagem (ocupa todo o espaço) --- */
.lightbox-stage {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  min-height: 0;
}

.lightbox-media-container {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.lightbox-media-container img,
.lightbox-media-container image-slot {
  width: 100% !important;
  height: 100% !important;
  position: absolute !important;
  inset: 0 !important;
  border-radius: 0 !important;
  object-fit: contain !important;
}

.lightbox-media-container img {
  object-fit: contain;
}

/* --- Legenda sobre a imagem --- */
.lightbox-image-caption {
  position: absolute;
  bottom: 50px;
  left: 15%; /* Indent so it doesn't overlap the prev button */
  right: 15%;
  text-align: center;
  color: #fff;
  font-size: 1.25rem;
  font-weight: 600;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0,0,0,0.6);
  pointer-events: none;
  z-index: 10;
}

/* --- Carrossel scroll-snap (mobile) --- */
.lightbox-carousel-wrap {
  display: none; /* oculto no desktop */
  flex: 1;
  position: relative;
  min-height: 0;
}

.lightbox-carousel {
  position: absolute;
  inset: 0;
  overflow-x: scroll;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  display: flex;
}

.lightbox-carousel::-webkit-scrollbar {
  display: none;
}

/* Setas de navegação sobrepostas ao carrossel */
.lightbox-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  border: none;
  background: rgba(0, 0, 0, 0.38);
  color: rgba(255, 255, 255, 0.92);
  font-size: 18px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: background 0.15s;
  backdrop-filter: blur(6px);
  pointer-events: auto;
}

.lightbox-carousel-btn:active {
  background: rgba(0, 0, 0, 0.65);
}

.lightbox-carousel-prev {
  left: 12px;
}

.lightbox-carousel-next {
  right: 12px;
}

.lightbox-carousel-slide {
  flex: 0 0 100%;
  height: 100%;
  scroll-snap-align: start;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.lightbox-carousel-slide img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

.lightbox-carousel-caption {
  position: absolute;
  bottom: 12px;
  left: 16px;
  right: 16px;
  text-align: center;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.85);
  pointer-events: none;
  z-index: 2;
}

/* --- Contagem mobile: acima dos dots --- */
.lightbox-dots-counter {
  display: none;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.14em;
  padding: 6px 0 2px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
}

/* --- Dots de paginação (carrossel mobile) --- */
.lightbox-dots {
  display: none; /* oculto no desktop */
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  gap: 7px;
  height: 38px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 0 16px;
  overflow: hidden;
}

.lightbox-dot {
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  transition: background 0.2s, transform 0.2s;
  cursor: pointer;
}

.lightbox-dot.active {
  background: var(--accent, #fff);
  transform: scale(1.45);
}

/* --- Botões prev/next flutuantes na stage --- */
.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 20px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 2050;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s, transform 0.25s;
  backdrop-filter: blur(8px);
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.25);
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

.lightbox-prev:hover {
  transform: translateY(-50%) translateX(-2px);
}

.lightbox-next:hover {
  transform: translateY(-50%) translateX(2px);
}

/* --- Filmstrip — tira de miniaturas horizontal --- */
.lightbox-filmstrip {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0;
  height: 100px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  /* Firefox */
  padding: 0 16px;
  gap: 6px;
}

.lightbox-filmstrip::-webkit-scrollbar {
  display: none;
}

.lightbox-thumb {
  flex-shrink: 0;
  width: 80px;
  height: 72px;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  background: rgba(255, 255, 255, 0.05);
  position: relative;
  transition: border-color 0.2s, opacity 0.2s, transform 0.2s;
  opacity: 0.5;
}

.lightbox-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}

.lightbox-thumb:hover {
  opacity: 0.85;
  transform: translateY(-3px);
}

.lightbox-thumb:hover img {
  transform: scale(1.05);
}

.lightbox-thumb.active {
  border-color: var(--accent);
  opacity: 1;
  transform: translateY(-4px);
}

.lightbox-thumb.active::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
}

/* Indicador de número no thumb */
.lightbox-thumb-num {
  position: absolute;
  bottom: 4px;
  right: 5px;
  font-family: var(--font-mono);
  font-size: 9px;
  color: rgba(255, 255, 255, 0.5);
  background: rgba(0, 0, 0, 0.5);
  border-radius: 3px;
  padding: 1px 4px;
  letter-spacing: 0.06em;
  pointer-events: none;
}

/* Contagem flutuante no header */
.lightbox-header-right {
  display: flex;
  align-items: center;
}

/* --- Responsividade --- */
@media (max-width: 768px) {
  .lightbox-header {
    padding: 12px 16px;
  }

  .lightbox-caption p {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: calc(100vw - 110px);
  }

  /* Counter sai do header e vai para acima dos dots */
  .lightbox-counter {
    display: none;
  }

  .lightbox-header-right {
    flex-shrink: 0;
    min-width: fit-content;
  }

  .lightbox-dot {
    width: 8px;
    height: 8px;
  }

  .lightbox-close {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }

  /* Trocar stage + filmstrip pelo carrossel scroll-snap */
  .lightbox-stage,
  .lightbox-filmstrip {
    display: none;
  }

  .lightbox-carousel-wrap {
    display: block;
  }

  .lightbox-dots {
    display: flex;
  }

  .lightbox-dots-counter {
    display: block;
  }
}