@font-face {
  font-family: "Onest";
  src: url("assets/fonts/Onest-Variable-Latin.woff2") format("woff2");
  font-weight: 300 400;
  font-style: normal;
  font-display: swap;
}

/* Reset & Fonts */
:root {
  --gray: #696969;
  --nav-gray: #767676;
  --divider: #D9D9D9;
  --black: #000000;
  --white: #FFFFFF;
}

*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, p, figure, blockquote, dl, dd, ul, ol { margin: 0; padding: 0; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid #CBF86C;
  outline-offset: 2px;
}

body {
  font-family: 'Onest', system-ui, sans-serif;
  color: var(--black);
  background-color: var(--white);
  line-height: 1.2;
}

@font-face {
  font-family: 'Geist Pixel Local';
  src: url('assets/fonts/GeistPixel-Regular-VariableFont_ELSH.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Typography Scale */
.hero-name {
  font-family: 'Geist Pixel Local', monospace;
  font-variation-settings: 'ELSH' 20;
}

@keyframes name-glitch {
  0%, 100% { font-variation-settings: 'ELSH' 20; }
  20% { font-variation-settings: 'ELSH' 40; }
  40% { font-variation-settings: 'ELSH' 60; }
  60% { font-variation-settings: 'ELSH' 80; }
  80% { font-variation-settings: 'ELSH' 1; }
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .hero-name:hover {
    animation: name-glitch 2.5s steps(1, end) infinite;
  }
}

/* ponytail: approximate Geist Pixel via mono until imported or mapped locally */
.pixel-mono {
  font-family: 'Geist Pixel Local', ui-monospace, monospace;
  font-variation-settings: 'ELSH' 20;
  text-transform: uppercase;
}

.t-lead { font-size: clamp(20px, calc(17px + 0.75vw), 28px); font-weight: 400; letter-spacing: -0.02em; line-height: 1.2; color: var(--gray); }
.hero p.t-lead { text-wrap: balance; }
.t-h1 { font-size: clamp(28px, calc(22px + 1vw), 40px); font-weight: 300; letter-spacing: -0.02em; line-height: 1.2; }
.t-h2 { font-size: clamp(18px, calc(16px + 0.3vw), 20px); font-weight: 300; letter-spacing: -0.02em; line-height: 1.2; }
.t-card-title { font-size: clamp(16px, calc(13px + 0.45vw), 20px); font-weight: 400; letter-spacing: -0.02em; line-height: 1.2; }
.t-body { font-size: 16px; font-weight: 300; letter-spacing: -0.02em; line-height: 1.64; }
.t-nav { font-size: 12px; letter-spacing: -0.02em; color: var(--nav-gray); }
.t-metadata { font-size: 12px; font-weight: 400; letter-spacing: -0.02em; text-transform: uppercase; }

/* Layout */
.container {
  width: min(1064px, calc(100% - 48px));
  margin: 0 auto;
}

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  height: 52px;
  background-color: var(--white);
}
header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 100vw;
  height: 100%;
  transform: translateX(-50%);
  background-color: var(--white);
  z-index: -1;
}
main {
  padding-top: 80px;
}
#logo-text {
  justify-self: start;
  font-size: 16px;
}
.header-links {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 24px;
}
.header-social {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 32px;
}
.dot {
  width: 3px;
  height: 3px;
  background-color: var(--divider);
}

/* Hero Section */
.hero {
  margin-bottom: 80px;
}
.hero p {
  max-width: 522px;
  margin-bottom: 32px;
}
.hero strong {
  font-weight: normal;
  color: var(--black);
}
.current-role {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  color: var(--gray);
  margin-left: auto;
  width: fit-content;
}
@media (min-width: 768px) {
  .hero {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    gap: 40px;
  }
  .hero p { margin-bottom: 0; }
}

/* Projects Grid */
.projects {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 80px;
}
.projects > div,
.card,
.card-footer,
.card-footer h3 { min-width: 0; }
.projects > div {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
@media (min-width: 768px) {
  .projects {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    align-items: start;
  }
}

/* Project Card */
.card {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.card-img {
  position: relative;
  width: 100%;
  border-radius: 4px;
  overflow: hidden;
  background: #f5f5f5;
}
.card-img img {
  display: block;
  width: 100%;
  height: auto;
}
.card-img .card-preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}
.card-img.is-previewing .card-preview {
  opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
  .card-img .card-preview {
    display: none;
  }
}
@media (hover: none), (pointer: coarse) {
  .card-img .card-preview {
    display: none;
  }
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
}
.card-footer .t-metadata {
  flex-shrink: 0;
  text-align: right;
  white-space: nowrap;
}
.card-footer h3 { flex: 0 1 65%; }

.view-more {
  display: block;
  font-size: clamp(18px, calc(15px + 0.55vw), 24px);
  letter-spacing: -0.02em;
  text-decoration: underline;
  margin-bottom: 80px;
}

/* About Sections */
.about-section {
  padding: 160px 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.about-section h2 {
  flex-shrink: 0;
}
.about-section p {
  color: var(--gray);
  max-width: 522px;
}
.about-section p strong {
  color: var(--black);
  font-weight: 300;
}

.section-title {
  color: var(--gray);
  margin-bottom: 32px;
}

@media (min-width: 768px) {
  .section-title {
    margin-bottom: 40px;
  }
}







@media (min-width: 768px) {
  .about-section {
    flex-direction: row;
    justify-content: space-between;
    gap: 80px;
  }
}

/* Footer */
footer {
  position: relative;
  z-index: 2;
  background-color: var(--black);
  color: var(--white);
  padding: 80px 0;
}
.footer-top {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-cta p:first-child {
  font-size: clamp(20px, calc(17px + 0.75vw), 28px);
  color: var(--white);
  margin-bottom: 20px;
}
.footer-cta p:last-child {
  font-size: clamp(30px, calc(22px + 1.5vw), 44px);
  text-decoration: underline;
}
.back-to-top {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
footer hr {
  border: 0;
  border-top: 1px solid var(--white);
  margin: 0 0 40px 0;
}
.footer-bottom {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
}
.footer-email {
  font-size: 20px;
  text-transform: none;
  word-break: break-word;
}
@media (min-width: 768px) {
  .footer-top, .footer-bottom {
    flex-direction: row;
    align-items: flex-end;
  }
}





/* Remove huge padding-bottom from about-section since wrappers handle the spacing now */

/* Sobre Gallery */
@media (max-width: 767px) {
  .about-gallery {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}


/* Hamburger & Mobile Header */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 6px;
  padding: 0;
  z-index: 100;
  position: relative;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 1px;
  background-color: var(--black);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

@media (max-width: 767px) {
  header {
    grid-template-columns: auto 1fr auto !important;
    gap: 16px;
  }
  .header-links {
    display: none !important;
  }
  header .header-social {
    display: flex !important;
    justify-self: center !important;
  }
  .header-social .linkedin-link {
    display: none !important;
  }
  .header-social .cv-link {
    color: var(--nav-gray);
  }
  .hamburger {
    display: flex;
    justify-self: end;
  }
}


/* Mobile Menu Overlay */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: var(--white);
  z-index: 99;
  display: flex;
  flex-direction: column;
  padding: 100px 24px 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.menu-open {
  overflow: hidden;
}
.menu-open .mobile-menu-overlay {
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-overlay nav {
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: center;
  font-size: 24px;
}
.menu-open .hamburger span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-open .hamburger span:nth-child(2) {
  opacity: 0;
}
.menu-open .hamburger span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Outros Projetos Grid */
.other-projects-section {
  margin-bottom: 80px;
}
.other-projects-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.other-projects-grid .other-card { min-height: 320px; }
.other-projects-row {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
@media (min-width: 768px) {
  .other-projects-row {
    flex-direction: row;
  }
}

.other-card {
  position: relative;
  display: flex;
  border-radius: 4px;
  overflow: hidden;
  text-decoration: none;
  min-height: 320px;
}

.other-card.large {
  width: 100%;
}
.other-card.medium {
  width: 100%;
}
.other-card.small {
  width: 100%;
}

.other-card-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #ececec;
  z-index: 1;
}
.other-card-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-width: 768px) {
  .other-card.medium {
    width: calc(739px / 1064px * 100%);
  }

  .other-card.small {
    width: calc(305px / 1064px * 100%);
  }

  .other-card.medium .other-card-bg img {
    position: absolute;
    top: -59.49%;
    left: 0.07%;
    width: 127.13%;
    max-width: none;
    height: 195.76%;
    object-fit: fill;
  }
}
.other-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.38) 45%, rgba(0, 0, 0, 0) 80%);
  z-index: 2;
  pointer-events: none;
}

.other-card-content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 16px;
  padding: 32px;
  width: 100%;
}

.other-card-content h3 {
  color: var(--white) !important;
  font-size: 20px;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.other-card .tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.other-card .tag {
  background-color: #FFFFFF !important;
  color: #000000 !important;
  font-size: 12px;
  font-weight: 400;
  padding: 4px 12px;
  border-radius: 4px;
  letter-spacing: -0.01em;
}

/* Hamburger active state */
.hamburger.active span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu-overlay.active {
  display: flex !important;
  opacity: 1;
}


/* --- Project Case Pages --- */
.project-page {
  padding-bottom: 120px;
  overflow-x: hidden;
}
.project-top {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin: 120px 0 80px 0;
}
@media (min-width: 768px) {
  .project-top {
    flex-direction: row;
    gap: 120px;
    align-items: flex-start;
  }
}
.project-title {
  flex: 1;
  font-size: clamp(40px, 4vw, 64px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 300;
  color: var(--black);
}
.project-info {
  width: 100%;
  display: flex;
  flex-direction: column;
}
@media (min-width: 768px) {
  .project-info {
    width: 414px;
    flex-shrink: 0;
  }
}
.project-details {
  display: flex;
  flex-direction: column;
  margin-bottom: 32px;
}
.details-title {
  font-size: 10px;
  color: var(--nav-gray);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.details-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-size: 13px;
}
.details-label {
  color: var(--nav-gray);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.details-value {
  color: var(--black);
  text-align: right;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}
.project-lead {
  font-size: clamp(25px, 2.5vw, 28px);
  line-height: 1.2;
  color: var(--gray);
  margin-top: 16px;
  letter-spacing: -0.02em;
  font-weight: 400;
}
.hero-img {
  width: 100%;
  aspect-ratio: 16 / 7;
  background-color: #E8E8E8;
  border-radius: 4px;
  margin-bottom: 80px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--nav-gray);
  font-family: 'Geist Pixel Local', monospace;
}
.hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Sections */
.project-section {
  padding: 80px 0;
}
.bg-light {
  background-color: #F8F8F8;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  width: 100vw;
  padding-left: calc(50vw - 50%);
  padding-right: calc(50vw - 50%);
}

.project-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
@media (min-width: 768px) {
  .project-stats {
    grid-template-columns: repeat(3, 1fr);
  }
}
.stat-header {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 16px;
}
.stat-number {
  font-size: clamp(40px, 4vw, 64px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--black);
}
.stat-unit {
  font-size: 16px;
  font-weight: 400;
  color: var(--black);
}
.stat-desc {
  font-size: 16px;
  line-height: 1.64;
  color: var(--gray);
  font-weight: 300;
}

.content-section {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
@media (min-width: 768px) {
  .content-section {
    flex-direction: row;
    gap: 120px;
  }
}
.content-title {
  width: 100%;
  font-size: 25px;
  font-weight: 400;
  color: var(--black);
  letter-spacing: -0.02em;
}
@media (min-width: 768px) {
  .content-title {
    width: 300px;
    flex-shrink: 0;
  }
}
.content-items {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 60px;
}
.content-item {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
@media (min-width: 768px) {
  .content-item {
    flex-direction: row;
    gap: 40px;
    align-items: flex-start;
  }
}
.item-label {
  width: 100%;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--nav-gray);
  font-weight: 400;
}
@media (min-width: 768px) {
  .item-label {
    width: 140px;
    flex-shrink: 0;
    padding-top: 6px;
  }
}
.item-text {
  flex: 1;
  font-size: 16px;
  line-height: 1.64;
  color: var(--black);
  font-weight: 300;
}
.project-gallery {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-top: 80px;
}
.gallery-placeholder {
  width: 100%;
  height: 600px;
  background-color: #E8E8E8;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--nav-gray);
  font-family: 'Geist Pixel Local', monospace;
}


/* ==========================================================================
   Case Study Pages (Porsche, Lopez, Mercedes, Volvo, etc.)
   Exact match to Figma Canvas specifications
   ========================================================================== */

.case-main {
  padding-top: 80px;
}

.case-header {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-bottom: 33px;
}

@media (min-width: 768px) {
  .case-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
  }
}

.case-header-left {
  flex: 1;
  max-width: 522px;
}

.case-title {
  font-size: clamp(32px, calc(28px + 1.8vw), 64px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.04em;
  color: var(--black);
}

.case-header-right {
  width: 100%;
  display: flex;
  flex-direction: column;
}

@media (min-width: 768px) {
  .case-header-right {
    width: 414px;
    flex-shrink: 0;
  }
}

.case-details-heading {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.64;
  letter-spacing: -0.02em;
  color: var(--black);
  margin-bottom: 20px;
}

.case-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--black);
  padding: 10px 0;
  min-height: 40px;
}

.case-meta-label {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.64;
  letter-spacing: -0.02em;
  color: var(--gray);
}

.case-meta-value {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.64;
  letter-spacing: -0.02em;
  color: var(--gray);
  text-align: right;
}

.case-meta-logos {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.case-meta-logos img {
  height: 20px;
  width: auto;
  display: block;
}

.case-meta-logos img.logo-volvo {
  height: 12px;
}

.case-summary {
  border-top: 1px solid var(--black);
  padding-top: 20px;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.64;
  letter-spacing: -0.02em;
  color: var(--gray);
}

.case-hero-image {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background-color: #f5f5f5;
  margin-bottom: 40px;
}

.case-hero-image img,
.case-hero-image video {
  width: 100%;
  height: auto;
  display: block;
}

/* Full-width Case Content Blocks */
.case-body-wrapper {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-bottom: 80px;
}

.case-block {
  width: 100%;
  padding: 32px 0;
}

.case-block.bg-subtle {
  background-color: #FCFCFC;
  box-shadow: 0 0 0 100vmax #FCFCFC;
  clip-path: inset(0 -100vmax);
}

.case-block-inner {
  width: min(1064px, calc(100% - 48px));
  margin: 0 auto;
}

/* Destaques / Stats (Frame 8872) */
.case-stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 768px) {
  .case-stats-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 74px;
  }
}

.case-stat-item {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.case-stat-header {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.case-stat-number {
  font-size: 49px;
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--black);
}

.case-stat-unit {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--black);
}

.case-stat-text {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.64;
  letter-spacing: -0.02em;
  color: #737373;
}

/* Narrative Grid (Projeto, Construção, Priorização, Entrega) */
.case-narrative-grid {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

@media (min-width: 768px) {
  .case-narrative-grid {
    flex-direction: row;
    gap: 32px;
  }
}

.case-section-title {
  width: 100%;
  font-size: 25px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--black);
}

@media (min-width: 768px) {
  .case-section-title {
    width: 185px;
    flex-shrink: 0;
  }
}

.case-narrative-items {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.case-narrative-item {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@media (min-width: 768px) {
  .case-narrative-item {
    flex-direction: row;
    gap: 20px;
    align-items: flex-start;
  }
}

.case-item-label {
  font-size: 10px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--black);
  text-transform: uppercase;
  width: 100%;
}

@media (min-width: 768px) {
  .case-item-label {
    width: 88px;
    flex-shrink: 0;
    padding-top: 4px;
  }
}

.case-item-text {
  flex: 1;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.64;
  letter-spacing: -0.02em;
  color: var(--black);
}

/* Dual Preview Showcase (Group 1 - Desktop & Mobile Mockup) */
.case-dual-preview {
  position: relative;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background-color: transparent;
}

.case-preview-desktop {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
}

.case-preview-desktop img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
}

/* Gallery Block */
.case-gallery-block {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding: 0;
}

.case-gallery-banner {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
}

.case-gallery-banner img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
}

.case-gallery-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 768px) {
  .case-gallery-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

.case-gallery-card {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background-color: #FCFCFC;
}

.case-gallery-card img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
}

/* Mobile Trio */
.case-mobile-trio {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  padding: 16px 0;
}

@media (min-width: 768px) {
  .case-mobile-trio {
    flex-direction: row;
    justify-content: space-between;
    gap: 20px;
    padding: 32px 0;
  }
}

.case-mobile-card {
  width: 232px;
  border-radius: 41px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.case-mobile-card img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 41px;
}

/* Navegação entre Cases */
.case-navigation {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-top: 80px;
  margin-bottom: 120px;
  padding-top: 48px;
  border-top: 1px solid var(--divider);
}

.case-nav-link {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s ease;
  max-width: 48%;
}

.case-nav-link:hover {
  opacity: 0.65;
}

.case-nav-link.prev {
  text-align: left;
  align-items: flex-start;
}

.case-nav-link.next {
  text-align: right;
  align-items: flex-end;
}

.case-nav-direction {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--nav-gray);
  line-height: 1.2;
}

.case-nav-title {
  font-size: clamp(16px, calc(14px + 0.4vw), 22px);
  font-weight: 400;
  color: var(--black);
  letter-spacing: -0.02em;
  line-height: 1.25;
}

@media (max-width: 600px) {
  .case-navigation {
    margin-top: 60px;
    margin-bottom: 80px;
    padding-top: 32px;
    gap: 16px;
  }
  .case-nav-direction {
    font-size: 10px;
  }
  .case-nav-title {
    font-size: 15px;
  }
}


/* Lightbox das imagens de conteudo dos cases */
.lightbox-trigger {
  cursor: zoom-in;
}
.lightbox-trigger:focus-visible {
  outline: 2px solid #111;
  outline-offset: 3px;
}

body.lightbox-open {
  overflow: hidden;
}

.lightbox[hidden] {
  display: none;
}
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
}
.lightbox-backdrop {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4vh 4vw;
  background: rgba(0, 0, 0, 0.8);
  cursor: zoom-out;
}
.lightbox-image {
  max-width: 92vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
  cursor: default;
  transition: opacity 160ms ease;
}
.lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  line-height: 1;
  color: #fff;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  cursor: pointer;
}
.lightbox-close:hover {
  background: rgba(0, 0, 0, 0.8);
}
.lightbox-close:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

@media (max-width: 768px) {
  .lightbox-backdrop {
    padding: 2vh 2vw;
  }
  .lightbox-image {
    max-width: 96vw;
    max-height: 84vh;
  }
  .lightbox-close {
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lightbox-image {
    transition: none;
  }
}

.mercedes-campaign-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px 20px;
}

.mercedes-campaign-grid img {
  width: 100%;
}

@media (max-width: 600px) {
  .mercedes-campaign-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
}
