/* ==========================================================================
   Base & Resets
   ========================================================================== */
:root {
    --color-bg: #0A0A0A;
    --color-surface: #111111;
    --color-bordeaux: #6B1A2A;
    --color-bordeaux-light: #8B2A3A;
    --color-gold: #C9A84C;
    --color-text-primary: #F0EDE8;
    --color-text-muted: #8A8480;
    --color-line: #1E1E1E;
    --color-surface-light: #F5F2ED;
    --color-text-dark: #0A0A0A;
    --color-text-dark-muted: #5A5550;
    --font-hero: 'Playfair Display', serif;
    --font-body: 'DM Sans', sans-serif;
    --font-label: 'DM Mono', monospace;
    --font-display: 'Playfair Display', serif;
    
    --container-padding: 24px;
}

@media (min-width: 768px) {
    :root { --container-padding: 48px; }
}

@media (min-width: 1024px) {
    :root { --container-padding: 80px; }
}

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

p, h1, h2, h3, h4, li {
    text-wrap: balance;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text-primary);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

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

/* ==========================================================================
   Typography
   ========================================================================== */
h1 {
    font-family: 'Caudex', serif;
    font-weight: 700;
}

h2, h3, h4, .font-playfair {
    font-family: var(--font-hero);
    font-weight: 400;
}

h1 {
    font-size: clamp(36px, 4vw, 58px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.01em;
    color: #FFFFFF;
}

@media (min-width: 1024px) {
    h1 { letter-spacing: -0.04em; }
}

h2 {
    font-size: clamp(32px, 4vw, 56px);
    line-height: 1.2;
    margin-bottom: 24px;
}

.eyebrow, .label, .tag {
    font-family: var(--font-label);
    font-weight: 400;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-text-muted);
}

.hero-subtitle {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: clamp(14px, 1.2vw, 18px);
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0.02em;
    color: #FFFFFF;
    line-height: 1.6;
    margin-bottom: 40px;
}

.text-bordeaux { color: var(--color-bordeaux); }
.text-gold { color: var(--color-gold); }

/* Hero keyword highlights */
.hero-keyword {
    font-family: 'Caudex', serif;
    font-style: italic;
    color: #F0EDE8;
    font-weight: 700;
}

.hero-sub-highlight {
    color: #FFFFFF;
    font-family: 'Caudex', serif;
    font-style: italic;
    font-size: inherit;
    font-weight: 400;
    letter-spacing: 0.02em;
    text-transform: none;
}

/* ==========================================================================
   Components
   ========================================================================== */
.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-outline {
    border: 1px solid var(--color-bordeaux);
    color: var(--color-text-primary);
    background: transparent;
}

.btn-outline:hover {
    background: var(--color-bordeaux);
}

.btn-solid {
    background: var(--color-bordeaux);
    color: var(--color-text-primary);
    border: 1px solid var(--color-bordeaux);
}

.btn-solid:hover {
    background: var(--color-bordeaux-light);
    border-color: var(--color-bordeaux-light);
}

.btn-ghost {
    background: transparent;
    border: 1px solid transparent;
    color: var(--color-text-primary);
}

.btn-ghost:hover {
    color: var(--color-text-muted);
}

.btn-hero {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 36px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    background: var(--color-bordeaux);
    color: var(--color-text-primary);
    position: relative;
    overflow: hidden;
    transition: background 0.35s ease, color 0.35s ease, transform 0.3s ease, box-shadow 0.35s ease;
    opacity: 0;
    transform: translateY(16px);
}

.btn-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(201,168,76,0.15) 100%);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.btn-hero:hover {
    background: #1A0A10;
    color: var(--color-gold);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(107, 26, 42, 0.45);
}

.btn-hero:hover::before {
    opacity: 1;
}

.btn-hero.is-visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease 0.55s, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.55s,
                background 0.35s ease, color 0.35s ease, box-shadow 0.35s ease;
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(10, 10, 10, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-line);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.nav-logo {
    font-family: var(--font-hero);
    font-weight: 700;
    font-size: 20px;
    letter-spacing: -0.02em;
}

.nav-links {
    display: none;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 400;
    color: var(--color-text-muted);
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--color-text-primary);
}

.nav-cta {
    background: var(--color-bordeaux);
    color: var(--color-text-primary);
    padding: 8px 20px;
    border-radius: 4px;
    font-size: 13px;
    transition: background 0.3s ease;
}

.nav-cta:hover {
    background: var(--color-bordeaux-light);
    color: var(--color-text-primary) !important;
}

@media (min-width: 1024px) {
    .nav-links { display: flex; }
}

/* ==========================================================================
   Hero Sequence (Apple Style)
   ========================================================================== */
#hero-sequence {
    height: 600vh;
    background: #0A0A0A;
    position: relative;
}

.hero-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    background: #0A0A0A;
}

.hero-sticky::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 35vh;
    background: linear-gradient(to bottom, transparent, #0A0A0A);
    pointer-events: none;
    z-index: 3;
}

#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    z-index: 0;
}

.hero-dark-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.40);
    pointer-events: none;
    z-index: 1;
    transition: background 0.1s linear;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    text-align: center;
    padding-bottom: 18vh;
    z-index: 2;
    pointer-events: none;
    transition: opacity 0.1s linear;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    pointer-events: auto;
}

.hero-overlay h1 {
    margin-bottom: 24px;
}

.hero-subtitle {
    margin-bottom: 40px;
}

.hero-loading {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    background: var(--color-bordeaux);
    width: 0%;
    z-index: 20;
    transition: width 0.1s linear;
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about {
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

.about .eyebrow {
    display: block;
    margin-bottom: 48px;
}

.about-watermark {
    position: absolute;
    top: 50%;
    left: -20px;
    transform: translateY(-50%);
    font-family: var(--font-hero);
    font-size: 200px;
    font-weight: 700;
    color: var(--color-bordeaux);
    opacity: 0.04;
    pointer-events: none;
    z-index: 0;
    line-height: 1;
}

@media (min-width: 1024px) {
    .about-watermark { font-size: 340px; left: 0; }
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    position: relative;
    z-index: 1;
}

@media (min-width: 1024px) {
    .about-grid {
        grid-template-columns: 320px 1fr;
        gap: 80px;
        align-items: start;
    }
}

/* ── FOTO ── */
.about-photo-col {
    position: relative;
}

.about-photo-wrap {
    position: relative;
    width: 100%;
    max-width: 320px;
}

@media (max-width: 1023px) {
    .about-photo-wrap {
        max-width: 240px;
        margin: 0 auto;
    }
}

.about-photo {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    object-position: center top;
    display: block;
    border-radius: 4px;
    filter: grayscale(15%) contrast(1.05);
}

.about-photo-tag {
    position: absolute;
    bottom: -16px;
    right: -16px;
    background: var(--color-bordeaux);
    padding: 14px 18px;
    border-radius: 3px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    box-shadow: 0 8px 24px rgba(107,26,42,0.35);
}

.about-photo-tag-label {
    font-family: var(--font-label);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: #F0EDE8;
    font-weight: 400;
}

.about-photo-tag-sub {
    font-family: var(--font-hero);
    font-size: 13px;
    font-style: italic;
    color: rgba(240,237,232,0.75);
}

/* ── DIREITA ── */
.about-right {
    display: flex;
    flex-direction: column;
    gap: 48px;
    padding-top: 8px;
}

.about-text p {
    font-size: 18px;
    font-weight: 300;
    color: var(--color-text-muted);
    line-height: 1.75;
    max-width: 52ch;
    text-wrap: balance;
}

.about-capabilities {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px 48px;
}

@media (max-width: 640px) {
    .about-capabilities {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}

.capability-item h3 {
    font-family: var(--font-hero);
    font-size: 22px;
    margin-bottom: 8px;
    color: var(--color-bordeaux-light);
}

.capability-item p {
    font-size: 14px;
    color: var(--color-text-muted);
    font-weight: 300;
    max-width: 28ch;
    text-wrap: balance;
}

/* ==========================================================================
   Process Section
   ========================================================================== */
.process {
    padding: 120px 0;
    background: var(--color-surface-light);
    position: relative;
    overflow: hidden;
}

.process::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 10% 20%, rgba(107,26,42,0.06) 0%, transparent 60%),
        radial-gradient(ellipse 60% 80% at 90% 80%, rgba(201,168,76,0.05) 0%, transparent 60%),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 79px,
            rgba(0,0,0,0.03) 80px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 79px,
            rgba(0,0,0,0.03) 80px
        );
    pointer-events: none;
    z-index: 0;
}

.process .eyebrow {
    color: var(--color-text-dark-muted);
    position: relative;
    z-index: 1;
}

.process-header {
    margin-bottom: 64px;
    position: relative;
    z-index: 1;
}

.process-card {
    background: rgba(255,255,255,0.7);
    border: 1px solid rgba(0,0,0,0.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.process-card:hover {
    background: rgba(255,255,255,0.95);
}

.process-card:hover::before {
    background: var(--color-bordeaux);
}

.process-number {
    color: var(--color-text-dark-muted);
}

.process-card h3 {
    color: var(--color-text-dark);
}

.process-card p {
    color: var(--color-text-dark-muted);
}

.process-header {
    margin-bottom: 64px;
}

.process-cards {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 24px;
    padding-bottom: 24px;
    scrollbar-width: none;
    position: relative;
    z-index: 1;
}

.process-cards::-webkit-scrollbar {
    display: none;
}

@media (min-width: 1024px) {
    .process-cards {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        overflow-x: visible;
        padding-bottom: 0;
    }
}

.process-card {
    min-width: 280px;
    scroll-snap-align: start;
    background: rgba(255,255,255,0.82);
    padding: 32px;
    border: 1px solid rgba(0,0,0,0.07);
    border-top: 2px solid transparent;
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.process-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: transparent;
    transition: background 0.3s ease;
}

.process-card:hover {
    background: rgba(255,255,255,0.98);
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}

.process-card:hover::before {
    background: var(--color-bordeaux);
}

.process-number {
    font-family: var(--font-label);
    font-size: 14px;
    color: var(--color-bordeaux);
    margin-bottom: 24px;
    display: block;
    opacity: 0.7;
}

.process-card h3 {
    font-family: var(--font-hero);
    font-size: 24px;
    margin-bottom: 12px;
    color: var(--color-text-dark);
}

.process-card p {
    font-size: 14px;
    color: var(--color-text-dark-muted);
    line-height: 1.65;
    text-wrap: balance;
}

/* ==========================================================================
   Cases Section (Netflix Style)
   ========================================================================== */
/* ── SECTION WRAPPER ── */
#cases {
  padding: 6rem 0 5rem;
  background: var(--color-bg);
}

.section-eyebrow {
  font-family: var(--font-label);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-text-muted);
  padding: 0 5vw;
  margin-bottom: 0.5rem;
}

.section-headline {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 400;
  color: var(--color-text-primary);
  padding: 0 5vw;
  margin-bottom: 3rem;
  letter-spacing: -0.02em;
}

.section-headline em {
  font-style: italic;
  color: var(--color-bordeaux-light);
}

/* ── FEATURED CASE ── */
.featured-case {
  position: relative;
  width: 100%;
  height: 62vh;
  min-height: 400px;
  overflow: hidden;
  margin-bottom: 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.featured-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  transition: opacity 0.5s ease;
}

.featured-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(10,10,10,0.97) 0%,
    rgba(10,10,10,0.72) 42%,
    rgba(10,10,10,0.18) 72%,
    transparent 100%
  );
  z-index: 1;
}

.featured-gradient-bottom {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 40%;
  background: linear-gradient(to top, rgba(10,10,10,0.7), transparent);
  z-index: 1;
}

.featured-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 5vw 3rem;
  max-width: 560px;
}

.featured-tag {
  font-family: var(--font-label);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--color-gold);
  margin-bottom: 0.75rem;
}

.featured-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.8vw, 48px);
  font-weight: 700;
  color: var(--color-text-primary);
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin-bottom: 0.75rem;
}

.featured-desc {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 300;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  max-width: 380px;
}

.featured-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-primary {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-primary);
  background: var(--color-bordeaux);
  border: 1px solid var(--color-bordeaux);
  padding: 10px 22px;
  border-radius: 3px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.25s ease, border-color 0.25s ease;
  display: inline-block;
}

.btn-primary:hover {
  background: var(--color-bordeaux-light);
  border-color: var(--color-bordeaux-light);
}

.btn-outline {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  color: var(--color-text-primary);
  background: transparent;
  border: 1px solid rgba(240,237,232,0.3);
  padding: 10px 22px;
  border-radius: 3px;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.25s ease, color 0.25s ease;
  display: inline-block;
}

.btn-outline:hover {
  border-color: var(--color-text-primary);
}

/* ── CAROUSEL DOTS ── */
.carousel-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 14px 0 0;
  margin-bottom: 2.5rem;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(240, 237, 232, 0.2);
  transition: all 0.35s ease;
  cursor: pointer;
  position: relative;
}

.dot[data-label]:hover::after {
  content: attr(data-label);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(10,10,10,0.9);
  border: 1px solid var(--color-line);
  color: var(--color-text-muted);
  font-family: var(--font-label);
  font-size: 9px;
  letter-spacing: 0.1em;
  white-space: nowrap;
  padding: 4px 8px;
  border-radius: 3px;
  pointer-events: none;
}

.dot.active {
  width: 20px;
  border-radius: 3px;
  background: var(--color-bordeaux-light);
}

.dot:hover:not(.active) {
  background: rgba(240, 237, 232, 0.45);
}

/* ── CATEGORY ROWS ── */
.category-block {
  margin-bottom: 2.5rem;
}

.category-label {
  font-family: var(--font-label);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-text-muted);
  padding: 0 5vw;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 14px;
}

.category-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, var(--color-line), transparent);
  max-width: 120px;
}

.cards-track {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: flex-start;
  min-height: 170px;
  gap: 10px;
  padding: 4px 5vw 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.cards-track::-webkit-scrollbar { display: none; }

/* ── CASE CARD ── */
.case-card {
  flex: 0 0 260px;
  width: 260px;
  min-width: 260px;
  height: 162px;
  min-height: 162px;
  display: block;
  border-radius: 5px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  scroll-snap-align: start;
  transition: transform 0.32s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.32s ease,
              border-color 0.32s ease;
  background: #111111;
  border: 1px solid var(--color-line);
  text-decoration: none;
}

.case-card:hover {
  transform: scale(1.05) translateY(-4px);
  box-shadow: 0 16px 40px rgba(107,26,42,0.32);
  z-index: 10;
  border-color: rgba(107,26,42,0.5);
}

.card-bg {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  transition: transform 0.4s ease;
}

.case-card:hover .card-bg {
  transform: scale(1.04);
}

.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10,10,10,0.95) 0%,
    rgba(10,10,10,0.4) 50%,
    rgba(10,10,10,0.1) 100%
  );
  opacity: 0.7;
  transition: opacity 0.28s ease;
}

.case-card:hover .card-overlay {
  opacity: 1;
}

.card-content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 10px 12px;
  transform: translateY(4px);
  transition: transform 0.28s ease;
}

.case-card:hover .card-content {
  transform: translateY(0);
}

.card-tag {
  font-family: var(--font-label);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-gold);
  margin-bottom: 4px;
  opacity: 0;
  transition: opacity 0.28s ease;
  text-wrap: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.case-card:hover .card-tag {
  opacity: 1;
}

.card-name {
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--color-text-primary);
  line-height: 1.3;
}

/* ── BEHANCE CTA ── */
.behance-cta {
  text-align: center;
  padding: 2.5rem 0 1rem;
  border-top: 1px solid var(--color-line);
  margin: 2rem 5vw 0;
}

.behance-cta a {
  font-family: var(--font-label);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-text-primary);
  text-decoration: none;
  border-bottom: 1px solid var(--color-bordeaux);
  padding-bottom: 3px;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.behance-cta a:hover {
  color: var(--color-gold);
  border-color: var(--color-gold);
}

/* ── LOADING STATE ── */
.card-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-loading-dot {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--color-text-muted);
  opacity: 0.4;
}

@media (max-width: 768px) {
  .featured-case { height: 50vh; min-height: 320px; }
  .case-card { flex: 0 0 200px; width: 200px; min-width: 200px; height: 125px; min-height: 125px; }
  .featured-title { font-size: 22px; }
}

/* ==========================================================================
   Stack Section
   ========================================================================== */
.stack {
    padding: 80px 0 120px;
    background: var(--color-bg);
    position: relative;
    overflow: hidden;
}

.stack::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 55% 40% at 15% 50%, rgba(107,26,42,0.07) 0%, transparent 60%),
        radial-gradient(ellipse 45% 55% at 85% 50%, rgba(201,168,76,0.04) 0%, transparent 55%),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 119px,
            rgba(255,255,255,0.012) 120px
        );
    pointer-events: none;
    z-index: 0;
}

.stack .container {
    position: relative;
    z-index: 1;
}

.stack-title {
    font-family: var(--font-hero);
    font-size: clamp(24px, 3vw, 40px);
    font-style: italic;
    color: var(--color-text-primary);
    margin: 16px 0 20px;
}

.stack-copy {
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 300;
    color: var(--color-text-muted);
    max-width: 560px;
    line-height: 1.7;
    margin-bottom: 56px;
}

/* ── GRID ── */
.stack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    position: relative;
    z-index: 1;
}

/* ── CARD ── */
.stack-card {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px 24px;
    border-radius: 12px;
    cursor: default;
    position: relative;
    overflow: hidden;

    /* Glass */
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px) saturate(160%);
    -webkit-backdrop-filter: blur(16px) saturate(160%);

    /* Sombra 3D sutil */
    box-shadow:
        0 1px 0 rgba(255,255,255,0.08) inset,
        0 -1px 0 rgba(0,0,0,0.2) inset,
        0 4px 16px rgba(0,0,0,0.25),
        0 1px 3px rgba(0,0,0,0.35);

    /* Float individual */
    animation: stack-float 4s ease-in-out infinite;
    animation-delay: var(--float-delay, 0s);

    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.35s ease,
                background 0.3s ease,
                border-color 0.3s ease;
}

/* Reflexo interno topo */
.stack-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 8%;
    right: 8%;
    height: 40%;
    border-radius: 12px 12px 50% 50%;
    background: linear-gradient(
        to bottom,
        rgba(255,255,255,0.07) 0%,
        transparent 100%
    );
    pointer-events: none;
}

.stack-card:hover {
    background: rgba(107, 26, 42, 0.16);
    border-color: rgba(107, 26, 42, 0.4);
    transform: translateY(-6px) scale(1.03);
    box-shadow:
        0 1px 0 rgba(255,255,255,0.12) inset,
        0 -1px 0 rgba(0,0,0,0.15) inset,
        0 14px 36px rgba(107,26,42,0.24),
        0 3px 10px rgba(0,0,0,0.3);
    animation-play-state: paused;
}

/* Nome */
.stack-card-name {
    font-family: var(--font-label);
    font-size: 10px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: rgba(240, 237, 232, 0.55);
    text-align: center;
    line-height: 1;
    white-space: nowrap;
    transition: color 0.3s ease, letter-spacing 0.3s ease;
}

.stack-card:hover .stack-card-name {
    color: var(--color-text-primary);
    letter-spacing: 0.22em;
}

/* ── FLOAT KEYFRAME ── */
@keyframes stack-float {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-6px); }
}

/* ── MOBILE ── */
@media (max-width: 767px) {
    .stack {
        padding: 60px 0 80px;
    }

    .stack .container {
        padding: 0 20px;
    }

    .stack-title {
        font-size: clamp(22px, 6vw, 32px);
    }

    .stack-copy {
        font-size: 14px;
        margin-bottom: 36px;
        max-width: 100%;
    }

    .stack-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 10px;
    }

    .stack-card {
        padding: 14px 12px;
    }

    .stack-card-name {
        font-size: 9px;
        letter-spacing: 0.14em;
    }

    @keyframes stack-float {
        0%, 100% { transform: translateY(0px); }
        50%       { transform: translateY(-3px); }
    }
}

@media (max-width: 374px) {
    .stack-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: #1A0A10;
    padding: 140px 0 100px;
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 55% at 50% 0%, rgba(107,26,42,0.38) 0%, transparent 62%),
        radial-gradient(ellipse 60% 50% at 50% 100%, rgba(107,26,42,0.28) 0%, transparent 58%),
        radial-gradient(ellipse 40% 35% at 15% 50%, rgba(107,26,42,0.12) 0%, transparent 55%),
        radial-gradient(ellipse 40% 35% at 85% 50%, rgba(107,26,42,0.12) 0%, transparent 55%);
    pointer-events: none;
    z-index: 0;
}

.contact-flare {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.contact-flare-1 {
    width: 700px;
    height: 700px;
    bottom: -200px;
    left: 50%;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(107,26,42,0.45) 0%, rgba(107,26,42,0.12) 45%, transparent 70%);
    animation: flare-pulse 3s ease-in-out infinite;
}

.contact-flare-2 {
    width: 380px;
    height: 380px;
    bottom: -80px;
    left: 50%;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(139,42,58,0.65) 0%, rgba(107,26,42,0.25) 40%, transparent 68%);
    animation: flare-pulse 3s ease-in-out infinite 0.8s;
}

.contact-flare-3 {
    width: 320px;
    height: 320px;
    top: 10%;
    left: -80px;
    background: radial-gradient(circle, rgba(107,26,42,0.2) 0%, transparent 65%);
    animation: flare-pulse-side 5s ease-in-out infinite 2s;
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

@keyframes flare-pulse {
    0%   { opacity: 0.35; transform: translateX(-50%) scale(0.92); }
    50%  { opacity: 1;    transform: translateX(-50%) scale(1.22); }
    100% { opacity: 0.35; transform: translateX(-50%) scale(0.92); }
}

/* Flare lateral não tem translateX(-50%) */
@keyframes flare-pulse-side {
    0%   { opacity: 0.2; transform: scale(0.9); }
    50%  { opacity: 0.7; transform: scale(1.18); }
    100% { opacity: 0.2; transform: scale(0.9); }
}

.contact .container {
    position: relative;
    z-index: 1;
}

.contact-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.contact h2 {
    font-size: clamp(48px, 6vw, 80px);
    font-weight: 700;
    margin-bottom: 24px;
}

.contact p {
    font-size: 18px;
    color: rgba(240, 237, 232, 0.7);
    margin-bottom: 48px;
    max-width: 600px;
    margin-inline: auto;
}

.contact-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 8px;
}

.contact-actions .btn {
    padding: 14px 32px;
    font-size: 14px;
}

.contact-actions .btn-outline {
    border-color: rgba(240,237,232,0.4);
    min-width: 200px;
}

.contact-actions .btn-outline:hover {
    background: var(--color-text-primary);
    color: var(--color-bg);
    border-color: var(--color-text-primary);
}

.footer {
    position: absolute;
    bottom: 40px;
    width: 100%;
    left: 0;
    padding: 0 var(--container-padding);
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 24px;
}

@media (min-width: 768px) {
    .footer-content {
        flex-direction: row;
    }
}

.footer p {
    font-size: 12px;
    margin: 0;
    color: var(--color-text-muted);
}

.social-links {
    display: flex;
    gap: 24px;
}

.social-links a {
    font-family: var(--font-label);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-text-primary);
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--color-bordeaux);
}

/* ==========================================================================
   MOBILE OPTIMIZATIONS
   ========================================================================== */

/* ── REGRAS GLOBAIS MOBILE ── */
@media (max-width: 767px) {
    .section-eyebrow,
    .section-headline {
        padding-left: 20px;
        padding-right: 20px;
    }

    /* Evita overflow horizontal global */
    body {
        overflow-x: hidden;
    }

    /* Touch targets mínimos */
    a, button {
        min-height: 44px;
    }

    html {
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
    }

    /* Imagens não estouram container */
    img {
        max-width: 100%;
        height: auto;
    }
}

@media (hover: none) {
  .case-card:hover { transform: none; box-shadow: none; }
  .btn-solid:hover { background: var(--color-bordeaux); border-color: var(--color-bordeaux); }
  .btn-primary:hover { background: var(--color-bordeaux); border-color: var(--color-bordeaux); }
}

/* Tablet: 768–1023px */
@media (min-width: 768px) and (max-width: 1023px) {
  .case-card  { flex: 0 0 220px; width: 220px; min-width: 220px; height: 138px; min-height: 138px; }
  .featured-case { height: 48vh; }
  .featured-title { font-size: 28px; }
  .section-eyebrow,
  .section-headline,
  .cards-track,
  .category-label { padding-left: 32px; padding-right: 32px; }
}

/* ── NAV — MOBILE ── */
@media (max-width: 767px) {
  .nav-links { display: none; }
  .nav-cta   { display: none; }

  .nav-hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    background: none;
    border: none;
    color: var(--color-text-primary);
  }

  .nav-hamburger span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: currentColor;
    transition: all 0.3s ease;
  }

  .nav-mobile-menu {
    position: fixed;
    inset: 0;
    background: rgba(10,10,10,0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }

  .nav-mobile-menu.open {
    opacity: 1;
    pointer-events: all;
  }

  .nav-mobile-menu a {
    font-family: var(--font-hero);
    font-size: clamp(28px, 8vw, 48px);
    font-weight: 400;
    color: var(--color-text-primary);
    text-decoration: none;
    letter-spacing: -0.02em;
    transition: color 0.2s ease;
  }

  .nav-mobile-menu a:hover { color: var(--color-bordeaux-light); }

  .nav-mobile-close {
    position: absolute;
    top: 24px; right: 24px;
    font-size: 24px;
    color: var(--color-text-muted);
    cursor: pointer;
    font-family: var(--font-label);
    background: none;
    border: none;
  }
}

/* ── HERO — MOBILE ── */
@media (max-width: 767px) {
  .hero-content h1 {
    font-size: clamp(32px, 9vw, 52px);
    line-height: 1.1;
  }
  .hero-subtitle {
    font-size: 10px;
    letter-spacing: 0.1em;
  }
  .hero-content .btn {
    text-align: center;
    padding: 14px 20px;
  }
  .hero-overlay {
    padding: 0 20px;
    justify-content: center;
    align-items: center;
    text-align: center;
  }
  .hero-content .btn-hero {
    width: auto;
    min-width: 220px;
  }
}

/* ── ABOUT — MOBILE ── */
@media (max-width: 767px) {
  .about {
    padding: 4rem 20px;
  }
  .about-watermark {
    font-size: 120px;
    opacity: 0.04;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .about-photo-wrap {
    max-width: 200px;
  }
  .about-photo-tag {
    bottom: -12px;
    right: -8px;
    padding: 10px 14px;
  }
  .about-photo-tag-label { font-size: 9px; }
  .about-photo-tag-sub   { font-size: 11px; }
  .about-text p {
    font-size: 16px;
    max-width: 100%;
  }
  .about-capabilities {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .capability-item h3 { font-size: 20px; }
  .capability-item p  { max-width: 100%; }
}

/* ── PROCESS — MOBILE ── */
@media (max-width: 767px) {
  .process-cards {
    flex-direction: column;
    overflow-x: visible;
    padding: 0 20px;
    gap: 1rem;
  }
  .process-card {
    flex: none;
    width: 100%;
  }
}



/* ── CASES — MOBILE ── */
@media (max-width: 767px) {
  .featured-case {
    height: 52vw;
    min-height: 260px;
  }
  .featured-gradient {
    background: linear-gradient(
      to top,
      rgba(10,10,10,1) 0%,
      rgba(10,10,10,0.7) 40%,
      rgba(10,10,10,0.15) 100%
    );
  }
  .featured-content {
    justify-content: flex-end;
    padding: 0 20px 20px;
    max-width: 100%;
  }
  .featured-title { font-size: 20px; }
  .featured-desc  { display: none; }
  .featured-tag   { font-size: 9px; }
  .featured-btns { gap: 8px; }
  .btn-primary, .btn-outline {
    font-size: 12px;
    padding: 8px 16px;
  }
  .carousel-dots { gap: 5px; padding: 10px 0; }
  .dot           { width: 5px; height: 5px; }
  .dot.active    { width: 16px; }

  .category-label {
    font-size: 9px;
    padding: 0 20px;
  }
  .cards-track {
    padding: 4px 20px 16px;
    gap: 10px;
    scroll-padding-left: 20px;
  }
  
  .case-card {
    flex: 0 0 80vw;
    width: 80vw;
    min-width: 80vw;
    height: calc(80vw * 0.625);
    min-height: calc(80vw * 0.625);
    border-radius: 6px;
  }

  .card-overlay {
    opacity: 1;
    background: linear-gradient(
      to top,
      rgba(10,10,10,0.95) 0%,
      rgba(10,10,10,0.35) 55%,
      transparent 100%
    );
  }
  .card-content  { transform: none; }
  .card-tag      { opacity: 1; font-size: 8px; }
  .card-name     { font-size: 12px; }

  .behance-cta { margin: 1rem 20px 0; }
}

/* ── CONTACT — MOBILE FLARES ── */
@media (max-width: 767px) {
    .contact {
        padding: 5rem 20px 8rem;
        min-height: auto;
    }

    .contact-flare-1 {
        width: 340px;
        height: 340px;
        bottom: -100px;
    }

    .contact-flare-2 {
        width: 220px;
        height: 220px;
        bottom: -50px;
    }

    .contact-flare-3 {
        width: 180px;
        height: 180px;
        left: -60px;
        top: 5%;
    }

    .contact-content h2 {
        font-size: clamp(28px, 8vw, 44px);
    }

    .contact p {
        font-size: 15px;
    }

    .contact-actions {
        flex-direction: column;
        gap: 12px;
    }

    .contact-actions a {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .footer {
        position: relative;
        bottom: auto;
        margin-top: 60px;
        padding: 0 20px;
    }

    .footer-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .social-links {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 1rem;
    }

    .footer p {
        font-size: 11px;
        color: var(--color-text-muted);
    }
}

/* ==========================================================================
   Contact CTAs — LinkedIn & WhatsApp
   ========================================================================== */

.btn-linkedin {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    min-width: 200px;
    border: 1px solid rgba(240,237,232,0.4);
    color: var(--color-text-primary);
    background: transparent;
    transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.btn-linkedin:hover {
    background: #0A66C2;
    border-color: #0A66C2;
    color: #ffffff;
    box-shadow: 0 6px 24px rgba(10, 102, 194, 0.4);
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    min-width: 200px;
    border: 1px solid transparent;
    color: var(--color-text-primary);
    background: transparent;
    transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.btn-whatsapp:hover {
    background: #25D366;
    border-color: #25D366;
    color: #ffffff;
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.35);
}

/* Footer — e-mail link */
.social-links a[href^="mailto"] {
    font-family: var(--font-label);
    font-size: 11px;
    text-transform: none;      /* e-mail não vai em uppercase */
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
    transition: color 0.3s ease;
}

.social-links a[href^="mailto"]:hover {
    color: var(--color-text-primary);
}

/* Mobile: CTAs do contact em coluna */
@media (max-width: 767px) {
    .btn-linkedin,
    .btn-whatsapp {
        width: 100%;
        min-width: unset;
    }
}
