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

:root {
  --ink: #08111f;
  --ink-2: #0b1929;
  --ink-3: #0f2035;
  --ink-4: #152840;
  --surface: rgba(15, 32, 53, 0.75);
  --surface-hover: rgba(21, 40, 64, 0.92);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --orange: #F97316;
  --orange-hover: #FB923C;
  --orange-soft: #FDBA74;
  --orange-glow: rgba(249, 115, 22, 0.16);
  --blue: #3b82f6;
  --green: #10b981;
  --gold: #f59e0b;
  --white: #f0f4f8;
  --muted: #94a7bc;
  --muted-2: #5d748d;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --shadow-card: 0 24px 56px -24px rgba(0, 0, 0, 0.82);
  --shadow-orange: 0 14px 34px -10px rgba(249, 115, 22, 0.6);
  --font-display: 'Montserrat', system-ui, -apple-system, sans-serif;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background-color: var(--ink);
  color-scheme: dark;
  overflow-x: clip;
  max-width: 100%;
}

body {
  min-height: 100dvh;
  font-family: var(--font-sans);
  background:
    radial-gradient(ellipse 85% 50% at 18% 12%, rgba(249, 115, 22, 0.10) 0%, transparent 65%),
    radial-gradient(ellipse 75% 55% at 85% 22%, rgba(28, 63, 112, 0.22) 0%, transparent 70%),
    linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 48%, var(--ink) 100%);
  color: var(--white);
  line-height: 1.6;
  overflow-x: clip;
  max-width: 100%;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 92% 68% at 50% 15%, #000 32%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 92% 68% at 50% 15%, #000 32%, transparent 100%);
}

.bg-glow {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(130px);
}

.bg-glow-orange {
  width: 640px;
  height: 640px;
  background: var(--orange);
  opacity: 0.09;
  top: -240px;
  left: -180px;
}

.bg-glow-blue {
  width: 580px;
  height: 580px;
  background: #2b6cb0;
  opacity: 0.11;
  bottom: -220px;
  right: -180px;
}

.container {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

/* ================= TYPED TAG CLASSES (Wireframe Contract) ================= */
.h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.15rem, 1.35rem + 2.9vw, 3.65rem);
  line-height: 1.07;
  letter-spacing: -0.028em;
  color: var(--white);
}

.h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.75rem, 1.2rem + 2vw, 2.75rem);
  line-height: 1.12;
  letter-spacing: -0.022em;
  color: var(--white);
}

.h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.12rem, 1rem + 0.45vw, 1.32rem);
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--white);
}

.t1 {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: clamp(1rem, 0.92rem + 0.35vw, 1.14rem);
  line-height: 1.7;
  color: var(--muted);
}

.t2 {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 0.92rem;
  line-height: 1.62;
  color: var(--muted);
}

.t3 {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
}

.text-accent {
  color: var(--orange);
}

.ico {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
  display: inline-block;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.94rem;
  letter-spacing: 0.01em;
  background: var(--orange);
  color: #08111f;
  padding: 16px 28px;
  border-radius: 12px;
  border: none;
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--shadow-orange);
  transition: transform 0.22s cubic-bezier(0.2, 0.7, 0.3, 1), background-color 0.22s, box-shadow 0.22s;
  white-space: nowrap;
}

.btn:hover {
  background: var(--orange-hover);
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -10px rgba(249, 115, 22, 0.75);
}

.btn2 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.88rem;
  background: rgba(255, 255, 255, 0.03);
  color: var(--white);
  padding: 15px 22px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s, color 0.2s;
  white-space: nowrap;
}

.btn2:hover,
.btn2.is-active {
  border-color: var(--orange);
  background: rgba(249, 115, 22, 0.12);
  color: var(--orange-soft);
}

.btn3 {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.73rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  transition: border-color 0.2s, color 0.2s, background-color 0.2s, transform 0.2s;
}

.btn3:hover {
  border-color: var(--orange);
  color: var(--orange-soft);
  transform: translateY(-1px);
}

.btn3-accent {
  color: var(--orange-soft);
  border-color: rgba(249, 115, 22, 0.3);
  background: rgba(249, 115, 22, 0.08);
}

.btn3-accent:hover {
  background: var(--orange);
  color: #08111f;
}

.lnk {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.88rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.lnk:hover,
.lnk-active {
  color: var(--white);
}

/* ================= NAV ================= */
.nav {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(8, 17, 31, 0.84);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.ico-logo {
  width: auto;
  height: 36px;
}

.ico-logo-sm {
  width: auto;
  height: 28px;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.14em;
  color: var(--white);
}

.brand-sub {
  font-size: 0.56rem;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin-top: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.btn-nav {
  padding: 11px 20px;
  font-size: 0.84rem;
  border-radius: 10px;
}

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

@media (max-width: 560px) {
  .btn-nav {
    padding: 9px 14px;
    font-size: 0.78rem;
  }
}

/* ================= HERO (Desktop: Texto à Esquerda · Mobile: Empilhado) ================= */
.hero {
  padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 8vw, 100px);
  position: relative;
  z-index: 2;
}

.sites-hero-section {
  border-bottom: 1px solid var(--line);
  background: radial-gradient(80% 90% at 15% 20%, rgba(249, 115, 22, 0.07) 0%, transparent 65%);
}

/* Blueprint Panel in Master Hero */
.viga-blueprint-box {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(249, 115, 22, 0.32);
  background:
    radial-gradient(120% 100% at 100% 0%, rgba(249, 115, 22, 0.14) 0%, transparent 55%),
    linear-gradient(180deg, rgba(14, 29, 48, 0.96) 0%, rgba(8, 17, 31, 0.98) 100%);
  padding: clamp(20px, 3vw, 28px);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.blueprint-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.blueprint-title-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.blueprint-kicker {
  color: var(--orange-soft);
  font-size: 0.62rem;
}

.blueprint-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.blueprint-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: flex-start;
  text-decoration: none;
  color: inherit;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(9, 19, 34, 0.78);
  transition: transform 0.22s ease, border-color 0.22s ease, background-color 0.22s ease;
}

.blueprint-step:hover {
  transform: translateX(4px);
  border-color: rgba(249, 115, 22, 0.48);
  background: rgba(16, 33, 56, 0.92);
}

.blueprint-step-highlight {
  border-color: rgba(249, 115, 22, 0.38);
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.11) 0%, rgba(11, 25, 41, 0.9) 100%);
}

.step-index {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--orange-soft);
  background: rgba(249, 115, 22, 0.14);
  border: 1px solid rgba(249, 115, 22, 0.32);
  padding: 5px 9px;
  border-radius: 8px;
  white-space: nowrap;
  margin-top: 2px;
}

.step-content {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.step-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.step-heading {
  font-size: 1rem;
  color: var(--white);
}

.step-link {
  color: var(--orange-soft);
  font-size: 0.62rem;
  white-space: nowrap;
}

.step-desc {
  font-size: 0.85rem;
  line-height: 1.5;
}

/* ================= COMPARE SECTION: AGÊNCIA COMUM × MÉTODO VIGA ================= */
.compare-section {
  padding: clamp(44px, 5vw, 68px) 0;
  border-bottom: 1px solid var(--line);
  background: rgba(9, 19, 34, 0.55);
}

.compare-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.compare-card {
  padding: clamp(24px, 3vw, 32px);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.compare-card-bad {
  background: linear-gradient(145deg, rgba(239, 68, 68, 0.08) 0%, rgba(11, 25, 41, 0.92) 100%);
  border: 1px solid rgba(239, 68, 68, 0.28);
}

.compare-card-good {
  background: linear-gradient(145deg, rgba(16, 185, 129, 0.12) 0%, rgba(11, 25, 41, 0.94) 100%);
  border: 1px solid rgba(16, 185, 129, 0.36);
  box-shadow: 0 22px 52px -22px rgba(16, 185, 129, 0.25);
}

.compare-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.compare-badge {
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.64rem;
  font-weight: 700;
}

.compare-badge-bad {
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.16);
  border: 1px solid rgba(239, 68, 68, 0.36);
}

.compare-badge-good {
  color: #6ee7b7;
  background: rgba(16, 185, 129, 0.16);
  border: 1px solid rgba(16, 185, 129, 0.38);
}

.compare-status {
  color: var(--muted);
  font-size: 0.6rem;
}

.compare-formula {
  font-size: clamp(1.08rem, 1.35vw, 1.3rem);
  line-height: 1.38;
  color: var(--white);
}

.formula-op {
  color: var(--orange-soft);
  margin: 0 3px;
}

.formula-bad {
  color: #fca5a5;
  text-decoration: underline;
  text-decoration-color: rgba(239, 68, 68, 0.5);
  text-underline-offset: 4px;
}

.formula-good {
  color: #6ee7b7;
}

.compare-desc {
  margin: 0;
}

@media (max-width: 860px) {
  .compare-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .blueprint-step {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .step-index {
    justify-self: start;
  }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: clamp(36px, 5vw, 68px);
  align-items: center;
}

.hero-grid > *,
.compare-grid > *,
.portfolio-grid > *,
.creatives-grid > *,
.metrics-grid > *,
.method-grid > * {
  min-width: 0;
}

.hero-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  max-width: 100%;
}

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 15px;
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.09);
  border: 1px solid rgba(249, 115, 22, 0.28);
  margin-bottom: 24px;
  max-width: 100%;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 12px var(--orange);
  flex-shrink: 0;
}

.hero-title {
  margin-bottom: 22px;
  text-wrap: balance;
}

.h1-line {
  display: block;
}

.hero-lead {
  max-width: 56ch;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 34px;
}

.hero-ticks {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  width: 100%;
}

.hero-ticks li {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-ticks strong {
  color: var(--white);
  font-weight: 600;
}

.tick-badge {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: rgba(249, 115, 22, 0.14);
  border: 1px solid rgba(249, 115, 22, 0.35);
  color: var(--orange);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

/* Hero Right Media Showcase */
.hero-right {
  position: relative;
  padding: 18px 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.showcase-stage {
  position: relative;
  padding: 18px 0;
}

.hero-ticks-under-media {
  margin-top: 6px;
  padding: 18px 20px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(11, 25, 41, 0.72);
}

.showcase-browser {
  border-radius: var(--radius-md);
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, #0e1d30 0%, #091321 100%);
  box-shadow: 0 36px 80px -28px rgba(0, 0, 0, 0.9);
  overflow: hidden;
  transform: perspective(1400px) rotateY(-6deg) rotateX(2deg);
  transition: transform 0.55s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.showcase-browser:hover {
  transform: perspective(1400px) rotateY(-1deg) rotateX(0deg);
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(7, 15, 28, 0.95);
  border-bottom: 1px solid var(--line);
}

.browser-dots {
  display: inline-flex;
  gap: 6px;
}

.browser-dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #243852;
  display: block;
}

.browser-dots i:first-child { background: #ef4444; opacity: 0.75; }
.browser-dots i:nth-child(2) { background: #f59e0b; opacity: 0.75; }
.browser-dots i:nth-child(3) { background: #10b981; opacity: 0.75; }

.browser-url {
  flex: 1;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 0.65rem;
  letter-spacing: 0.04em;
  text-transform: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.browser-status {
  color: var(--green);
  font-size: 0.62rem;
}

.hero-showcase-slot {
  position: relative;
  aspect-ratio: 16 / 10;
  background:
    radial-gradient(circle at 75% 25%, rgba(249, 115, 22, 0.24), transparent 55%),
    linear-gradient(135deg, #10243d 0%, #091526 100%);
  overflow: hidden;
}

.showcase-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  position: relative;
  z-index: 2;
}

.is-missing {
  display: none !important;
}

.slot-placeholder {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 24px;
  text-align: center;
}

.card2 {
  background: rgba(11, 25, 41, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  padding: 14px 18px;
  box-shadow: 0 20px 44px -16px rgba(0, 0, 0, 0.85);
}

.floating-badge {
  position: absolute;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.floating-badge-top {
  top: 0;
  right: -12px;
}

.floating-badge-bottom {
  bottom: 0;
  left: -16px;
}

.badge-kicker {
  font-size: 0.6rem;
  color: var(--orange);
}

.badge-val {
  font-size: 0.98rem;
  color: var(--white);
}

.badge-sub {
  font-size: 0.75rem;
  color: var(--muted);
}

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .showcase-browser {
    transform: none;
  }

  .floating-badge-top {
    right: 8px;
    top: -6px;
  }

  .floating-badge-bottom {
    left: 8px;
    bottom: -6px;
  }
}

@media (max-width: 560px) {
  .container {
    padding: 0 18px;
  }

  .eyebrow-pill {
    padding: 7px 12px;
    border-radius: 12px;
  }

  .eyebrow-pill .t3 {
    font-size: 0.62rem;
    letter-spacing: 0.08em;
    line-height: 1.4;
  }

  .btn,
  .btn2 {
    white-space: normal;
    text-align: center;
    max-width: 100%;
  }

  .btn-nav {
    white-space: nowrap;
    padding: 9px 12px;
    font-size: 0.74rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .hero-actions .btn,
  .hero-actions .btn2 {
    width: 100%;
    padding: 15px 18px;
    font-size: 0.88rem;
  }

  .blueprint-header,
  .step-top,
  .compare-card-top,
  .card-footer {
    flex-wrap: wrap;
  }

  .browser-url {
    min-width: 0;
  }

  .floating-badge {
    position: static;
    margin-top: 12px;
  }

  .showcase-stage {
    padding: 0;
  }

  .hero-right {
    padding: 0;
  }
}

/* ================= METRICS STRIP ================= */
.metrics-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(11, 25, 41, 0.65);
  padding: 28px 0;
}

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

.metric-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-left: 20px;
  border-left: 1px solid var(--line);
}

.metric-item:first-child {
  padding-left: 0;
  border-left: none;
}

.metric-num {
  font-size: clamp(1.65rem, 1.3rem + 1.2vw, 2.25rem);
}

.metric-label {
  color: var(--muted);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
}

@media (max-width: 860px) {
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  .metric-item:nth-child(3) {
    padding-left: 0;
    border-left: none;
  }
}

@media (max-width: 480px) {
  .metrics-grid {
    grid-template-columns: 1fr;
  }
  .metric-item {
    padding-left: 0;
    border-left: none;
    padding-top: 14px;
    border-top: 1px solid var(--line);
  }
  .metric-item:first-child {
    padding-top: 0;
    border-top: none;
  }
}

/* ================= PORTFOLIO SECTION & 12 CLIENT CARDS ================= */
.portfolio-section {
  padding: clamp(68px, 9vw, 112px) 0;
}

.portfolio-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 48px;
}

.section-eyebrow {
  display: inline-block;
  margin-bottom: 12px;
}

.section-heading {
  margin-bottom: 14px;
}

.section-description {
  max-width: 60ch;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-btn {
  padding: 10px 16px;
  font-size: 0.8rem;
  border-radius: 10px;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

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

@media (max-width: 660px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
}

.card {
  container-type: inline-size;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.28s cubic-bezier(0.2, 0.7, 0.3, 1), border-color 0.28s, background-color 0.28s;
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(249, 115, 22, 0.42);
  background: var(--surface-hover);
}

.card.is-hidden,
.card.is-collapsed {
  display: none;
}

.portfolio-more-wrap {
  margin-top: 38px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.portfolio-more-wrap.is-hidden {
  display: none;
}

.btn-load-more {
  padding: 15px 32px;
  font-size: 0.92rem;
  font-weight: 700;
  border-color: rgba(249, 115, 22, 0.45);
  background: linear-gradient(180deg, rgba(249, 115, 22, 0.14) 0%, rgba(14, 29, 48, 0.9) 100%);
  color: var(--white);
  box-shadow: 0 14px 34px -12px rgba(249, 115, 22, 0.35);
}

.btn-load-more:hover {
  border-color: var(--orange);
  background: linear-gradient(180deg, rgba(249, 115, 22, 0.24) 0%, rgba(18, 36, 58, 0.95) 100%);
  transform: translateY(-2px);
}

.load-more-arrow {
  display: inline-block;
  color: var(--orange-soft);
  transition: transform 0.25s ease;
}

.portfolio-count-hint {
  color: var(--muted);
  font-size: 0.64rem;
}

.card-browser {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(7, 15, 28, 0.9);
  border-bottom: 1px solid var(--line);
}

.card-domain {
  flex: 1;
  color: var(--muted);
  font-size: 0.64rem;
  letter-spacing: 0.04em;
  text-transform: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.badge-type {
  font-size: 0.58rem;
  padding: 3px 8px;
  border-radius: 999px;
  letter-spacing: 0.08em;
}

.badge-orange {
  color: var(--orange-soft);
  background: rgba(249, 115, 22, 0.14);
  border: 1px solid rgba(249, 115, 22, 0.32);
}

.badge-green {
  color: #6ee7b7;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.32);
}

.badge-blue {
  color: #93c5fd;
  background: rgba(59, 130, 246, 0.14);
  border: 1px solid rgba(59, 130, 246, 0.32);
}

.badge-gold {
  color: #fcd34d;
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.32);
}

.card-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, #12263f 0%, #0a1524 100%);
  border-bottom: 1px solid var(--line);
}

.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  position: relative;
  z-index: 2;
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.card:hover .card-thumb img {
  transform: scale(1.045);
}

.thumb-fallback {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  padding: 16px;
  text-align: center;
}

.card-body {
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-tag {
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  color: var(--orange-soft);
  margin-bottom: 8px;
}

.card-title {
  margin-bottom: 10px;
}

/* Breve descrição de 3 linhas embaixo do título do cliente */
.card-desc {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
  min-height: calc(1.62em * 3);
  margin-bottom: 20px;
}

.card-footer {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

/* ================= METHOD SECTION ================= */
.method-section {
  padding: clamp(56px, 7vw, 92px) 0;
  border-top: 1px solid var(--line);
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 38px;
}

.method-card {
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.method-num {
  font-size: 0.68rem;
}

.method-title {
  font-size: 1.15rem;
}

@media (max-width: 860px) {
  .method-grid {
    grid-template-columns: 1fr;
  }
}

/* ================= CREATIVES GALLERY & LIGHTBOX ================= */
.creatives-section {
  padding: clamp(64px, 8vw, 108px) 0;
  border-top: 1px solid var(--line);
}

.creative-filter-btn {
  padding: 10px 16px;
  font-size: 0.8rem;
  border-radius: 10px;
}

.creatives-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

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

@media (max-width: 560px) {
  .creatives-grid {
    grid-template-columns: 1fr;
  }
}

.creative-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  transition: transform 0.28s cubic-bezier(0.2, 0.7, 0.3, 1), border-color 0.28s, background-color 0.28s;
}

.creative-card:hover {
  transform: translateY(-6px);
  border-color: rgba(249, 115, 22, 0.45);
  background: var(--surface-hover);
}

.creative-card.is-hidden,
.creative-card.is-collapsed {
  display: none;
}

.creative-thumb-btn {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: #060d18;
  cursor: pointer;
  overflow: hidden;
  text-align: left;
}

.creative-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.creative-card:hover .creative-thumb-btn img {
  transform: scale(1.04);
}

.creative-metric-pill {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.6rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
}

.creative-zoom-hint {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 3;
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 0.58rem;
  color: var(--white);
  background: rgba(8, 17, 31, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.16);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.creative-card:hover .creative-zoom-hint,
.creative-thumb-btn:focus-visible .creative-zoom-hint {
  opacity: 1;
  transform: translateY(0);
}

.creative-body {
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.creative-body .card-desc {
  margin-bottom: 0;
}

/* Lightbox Dialog */
.creative-lightbox {
  max-width: min(92vw, 760px);
  max-height: 92vh;
  width: 100%;
  margin: auto;
  padding: 0;
  border: 1px solid rgba(249, 115, 22, 0.38);
  border-radius: var(--radius-md);
  background: #091322;
  color: var(--white);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.82);
}

.creative-lightbox::backdrop {
  background-color: rgba(4, 9, 18, 0.84);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.lightbox-inner {
  display: flex;
  flex-direction: column;
  max-height: 90vh;
}

.lightbox-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 15, 28, 0.95);
}

.lightbox-close {
  padding: 8px 14px;
  font-size: 0.78rem;
  border-radius: 8px;
}

.lightbox-media {
  padding: 16px;
  display: grid;
  place-items: center;
  overflow: auto;
  background: #050b14;
}

.lightbox-media img {
  max-width: 100%;
  max-height: calc(88vh - 86px);
  width: auto;
  height: auto;
  border-radius: 8px;
  display: block;
}

/* ================= CTA SECTION (Idêntica à Home com foto do Raul ao fundo) ================= */
.cta-section {
  padding: 120px 0;
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line);
  background-image: url('cta-desktop.jpg');
  background-image: image-set(url('cta-desktop.webp') type('image/webp'), url('cta-desktop.jpg') type('image/jpeg'));
  background-size: cover;
  background-position: center;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(8, 17, 31, 0.92) 0%,
    rgba(8, 17, 31, 0.78) 42%,
    rgba(8, 17, 31, 0.22) 64%,
    transparent 100%
  );
  pointer-events: none;
}

.cta-section__content {
  position: relative;
  z-index: 2;
  max-width: 620px;
  text-align: left;
}

.cta-heading {
  font-size: clamp(1.85rem, 3.2vw, 2.85rem);
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1.12;
  margin: 12px 0 18px;
  text-wrap: balance;
}

.cta-sub {
  max-width: 520px;
  margin: 0 0 32px;
  color: var(--silver);
  line-height: 1.7;
}

.cta-actions {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 18px;
}

.btn-lg {
  padding: 18px 34px;
  font-size: 0.98rem;
}

.cta-note {
  color: var(--muted);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
}

@media (max-width: 768px) {
  .cta-section {
    background-image: url('cta-mobile.jpg');
    background-image: image-set(url('cta-mobile.webp') type('image/webp'), url('cta-mobile.jpg') type('image/jpeg'));
    background-position: top center;
    padding: 340px 0 72px;
  }

  .cta-section::before {
    background: linear-gradient(
      to bottom,
      rgba(8, 17, 31, 0.35) 0%,
      rgba(8, 17, 31, 0.05) 18%,
      rgba(8, 17, 31, 0.45) 40%,
      rgba(8, 17, 31, 0.88) 62%,
      rgba(8, 17, 31, 0.98) 85%,
      var(--bg-navy) 100%
    );
  }

  .cta-section__content {
    max-width: none;
  }
}

/* ================= FOOTER ================= */
.footer {
  border-top: 1px solid var(--line);
  padding: 34px 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

/* ================= MOBILE STICKY CTA ================= */
.mobile-sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(8, 17, 31, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line-strong);
  display: none;
}

.btn-mobile-full {
  width: 100%;
  padding: 14px 18px;
  font-size: 0.9rem;
}

@media (max-width: 640px) {
  .mobile-sticky-cta {
    display: block;
  }
  body {
    padding-bottom: 78px;
  }
  .btn-lg {
    width: 100%;
    padding: 16px 20px;
    font-size: 0.9rem;
  }
}
