/* ==========================================================================
   PORTFOLIO DESIGN SYSTEM (WCAG ACCESSIBILITY COMPLIANT)
   Palette: Urban Mist Optimized (#060606, #48484D, #5E5E63, #1C19C8, #F4F4F3)
   Typography: 100% Manrope (500 Medium, 600 SemiBold, 700 Bold, 800 ExtraBold)
   WCAG Legibility Standards:
     • Minimum font weight: 500 (No weights below 500 anywhere on the site)
     • WCAG 1.4.3 & 1.4.6 Contrast: All body & secondary text exceeds 4.5:1 (AA) and 7:1 (AAA)
     • WCAG 1.4.11 Non-text Contrast: UI controls & interactive outlines exceed 3:1
     • WCAG 2.4.7 Focus Visible: Distinct keyboard focus outlines on interactive items
     • Softly rounded buttons (8px), NEVER pill (999px)
     • Zero emojis across the site
     • Flat design, avoiding cards within cards
     • Subtle 40px squares grid background texture behind hero & navbar
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600;700;800&display=swap');

:root {
  /* WCAG AAA & AA Compliant Color Tokens */
  --bg-page: #FFFFFF;
  --bg-surface: #FFFFFF;
  --bg-subtle: #F4F4F3;
  --bg-accent: #060606;
  
  --ink-primary: #060606;     /* 20.26:1 on White (WCAG AAA) */
  --ink-secondary: #48484D;   /* 9.09:1 on White, 8.26:1 on Subtle (WCAG AAA) */
  --ink-tertiary: #5E5E63;    /* 6.45:1 on White, 5.86:1 on Subtle (WCAG AA) */
  --ink-inverse: #FFFFFF;
  --ink-accent: #1C19C8;      /* 10.38:1 on White, 9.16:1 on Blue BG (WCAG AAA) */
  
  --border-light: #D4D4D8;    /* Subtle card borders */
  --border-subtle: #E4E4E7;   /* Subtle inner dividers */
  --border-ui: #767676;       /* 4.54:1 on White - UI controls (WCAG 1.4.11) */
  --border-focus: #060606;

  --arrow-bg: #EEEEEE;
  --arrow-ink: #0F0F0F;

  --badge-green-bg: #EEF0FD;
  --badge-green-ink: var(--ink-accent);
  --badge-blue-bg: #EEF0FD;
  --badge-blue-ink: #1C19C8;  /* 9.16:1 on Blue BG (WCAG AAA) */

  /* Typography (100% Manrope - Minimum Weight 500) */
  --font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-meta: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Spacing & Radii (Softly rounded 8px buttons, NEVER pill) */
  --radius-card: 24px;
  --radius-btn: 8px;     /* Suavemente arredondado, nunca pílula */
  --radius-badge: 6px;   /* Tags e badges com cantos suaves */
  --max-width: 1200px;
  --max-width-text: 740px;
  --header-height: 76px;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg-page);
  color: var(--ink-primary);
  font-family: var(--font-body);
  font-size: 1.125rem; /* 18px */
  font-weight: 300;    /* Peso 400 para o corpo do texto e parágrafos */
  line-height: 1.6;
  min-height: 100vh;
}

p {
  font-weight: 300;
}

/* WCAG 2.4.7 Focus Visible Indicator */
:focus-visible {
  outline: 2px solid var(--ink-accent);
  outline-offset: 3px;
}

/* WCAG 2.2.2 & 2.3.3 Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s ease, color 0.2s ease;
}

/* WCAG 2.4.1 Skip to Content Link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 20px;
  background: var(--ink-primary);
  color: #FFFFFF !important;
  padding: 10px 18px;
  border-radius: var(--radius-btn);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  z-index: 1000;
  transition: top 0.2s ease;
  text-decoration: underline;
}

.skip-link:focus {
  top: 15px;
  outline: 2px solid var(--ink-accent);
}

/* Layout Container */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   HERO WRAPPER WITH SUBTLE GRAPH SQUARES GRID TEXTURE
   ========================================================================== */
.hero-wrapper {
  position: relative;
  background-color: var(--bg-page);
  overflow: hidden;
}

/* Subtle Squares Grid Pattern */
.hero-grid-pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: 40px 40px;
  background-image:
    linear-gradient(to right, rgba(0, 0, 0, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.045) 1px, transparent 1px);
  mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 70%, rgba(0,0,0,0) 100%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 70%, rgba(0,0,0,0) 100%);
  pointer-events: none;
  z-index: 0;
}

/* ==========================================================================
   FLOATING GLASS NAVIGATION HEADER (Decoupled & Framed Glass Style)
   ========================================================================== */
.site-header {
  position: fixed;
  top: 18px;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 24px;
  pointer-events: none;
  transition: transform 0.25s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.site-header .header-container {
  pointer-events: auto;
  max-width: var(--max-width);
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(228, 228, 231, 0.85);
  border-radius: 16px;
  box-shadow: 
    0 8px 30px -4px rgba(0, 0, 0, 0.05),
    0 2px 6px -1px rgba(0, 0, 0, 0.02);
  transition: background-color 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  overflow: hidden;
}

.site-header.is-scrolled .header-container {
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 
    0 12px 36px -4px rgba(0, 0, 0, 0.08),
    0 3px 8px -1px rgba(0, 0, 0, 0.03);
  border-color: rgba(212, 212, 216, 0.95);
}

.header-bar {
  height: 64px;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--ink-primary);
  letter-spacing: -0.02em;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-brand .brand-icon {
  width: 28px;
  height: 28px;
  display: block;
  object-fit: contain;
  flex-shrink: 0;
}

/* Desktop Navigation */
.nav-desktop {
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-secondary);
  text-decoration: none;
  transition: color 0.15s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--ink-primary);
}

/* Nav CTA Button */
.btn-nav-cta {
  background: var(--ink-accent);
  color: #FFFFFF !important;
  padding: 9px 18px;
  border-radius: var(--radius-btn);
  font-family: var(--font-body);
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 0.15s ease, transform 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.btn-nav-cta:hover {
  background-color: #1412A3;
  transform: translateY(-1px);
}

/* Minimalist Language Switcher */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: transparent;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-btn);
  padding: 6px 10px;
  font-family: var(--font-meta);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ink-secondary);
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
  user-select: none;
}

.lang-toggle:hover {
  border-color: var(--ink-secondary);
  color: var(--ink-primary);
  background-color: var(--bg-subtle);
}

.lang-toggle .lang-opt {
  color: var(--ink-tertiary);
  transition: color 0.15s ease, font-weight 0.15s ease;
}

.lang-toggle .lang-opt.active-lang {
  color: var(--ink-primary);
  font-weight: 700;
}

.lang-toggle .lang-divider {
  color: var(--border-light);
  font-size: 0.75rem;
  margin: 0 1px;
}

/* Mobile Menu Toggle Button (Minimalist, bare icon without bg or border) */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  color: var(--ink-primary);
  line-height: 1;
  -webkit-tap-highlight-color: transparent;
  outline: none;
  box-shadow: none;
  transition: opacity 0.15s ease;
}

.nav-toggle:hover {
  opacity: 0.75;
}

.nav-toggle .hamburger-icon-svg {
  width: 24px;
  height: 24px;
  display: block;
  color: var(--ink-primary);
  flex-shrink: 0;
}

.nav-toggle .icon-close {
  display: none;
}

.site-header.is-open .nav-toggle .icon-open {
  display: none;
}

.site-header.is-open .nav-toggle .icon-close {
  display: block;
}

/* Mobile Navigation Container (Hidden on desktop) */
.nav-mobile {
  display: none;
}

/* Header Spacing Helper */
.page-hero-header {
  position: relative;
  z-index: 1;
  padding-top: 125px !important;
}

@media (max-width: 768px) {
  .site-header {
    top: 14px;
    padding: 0 16px;
  }

  .site-header .header-container {
    border-radius: 16px;
  }

  .site-header.is-open .header-container {
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 
      0 14px 40px -4px rgba(0, 0, 0, 0.10),
      0 4px 12px -1px rgba(0, 0, 0, 0.04);
  }

  .header-bar {
    height: 58px;
    padding: 0 20px;
  }

  .nav-desktop {
    display: none !important;
  }

  .nav-toggle {
    display: flex;
  }

  /* Smooth accordion expansion & contraction matching UXfolio's exact cubic-bezier curve */
  .nav-mobile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-height: 0;
    opacity: 0;
    padding: 0 20px;
    pointer-events: none;
    overflow: hidden;
    transform: translateY(-8px);
    transition: max-height 0.25s cubic-bezier(0.22, 0.61, 0.36, 1),
                opacity 0.2s cubic-bezier(0.22, 0.61, 0.36, 1),
                transform 0.25s cubic-bezier(0.22, 0.61, 0.36, 1),
                padding 0.25s cubic-bezier(0.22, 0.61, 0.36, 1);
  }

  .site-header.is-open .nav-mobile {
    max-height: 320px;
    opacity: 1;
    padding: 8px 20px 24px;
    pointer-events: all;
    transform: translateY(0);
  }

  .mobile-nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    width: 100%;
  }

  .mobile-nav-links li {
    width: 100%;
    text-align: center;
  }

  /* All mobile menu links share the exact same typographic weight and styling */
  .mobile-nav-link {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 1.05rem; /* ~16.8px like UXfolio */
    font-weight: 400;
    line-height: 1.45;
    color: var(--ink-secondary);
    text-decoration: none;
    padding: 6px 14px;
    border-radius: 8px;
    transition: color 0.15s ease, background-color 0.15s ease;
    user-select: none;
  }

  .mobile-nav-link:hover,
  .mobile-nav-link.active {
    color: var(--ink-primary);
    background-color: var(--bg-subtle);
  }

  .mobile-nav-lang {
    margin-top: 6px;
    padding-top: 14px;
    border-top: 1px solid rgba(228, 228, 231, 0.6);
    display: flex;
    justify-content: center;
    width: 100%;
  }

  .hero-section {
    padding: 95px 0 50px !important;
  }

  .page-hero-header {
    padding-top: 95px !important;
  }
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  position: relative;
  z-index: 1;
  padding: 125px 0 65px;
}

.hero-eyebrow {
  font-family: var(--font-meta);
  font-size: 0.95rem; /* 15px */
  font-weight: 600;
  color: var(--ink-secondary);
  letter-spacing: -0.01em;
  margin-bottom: 24px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.6vw, 3.85rem);
  font-weight: 500; /* Mínimo 500 para legibilidade WCAG */
  line-height: 1.16;
  letter-spacing: -0.03em;
  color: var(--ink-primary);
  max-width: 920px;
  margin-bottom: 0;
}

.hero-accent {
  color: var(--ink-accent);
}

/* ==========================================================================
   SELECTED PROJECTS SECTION (Flat 2-Column Grid)
   ========================================================================== */
.projects-section {
  padding: 30px 0 90px;
  position: relative;
  z-index: 1;
}

.section-header {
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-light);
}

.section-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink-primary);
}

.section-subtitle {
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--ink-secondary);
  margin-top: 6px;
  max-width: none;
}

/* 2-Column Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

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

/* Flat Project Card (24px radius, flat design, no nested cards) */
.project-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.project-card:hover {
  /*border-color: #B8B8BD;*/
  transform: translateY(-2px);
}

.card-media-wrap {
  display: block;
  text-decoration: none;
}

.card-media {
  background-color: var(--bg-subtle);
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  padding: 0;
  overflow: hidden;
  position: relative;
}

.card-media img {
  border-radius: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover .card-media img {
  transform: scale(1.04);
}

.card-body {
  padding: 32px;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
}

.card-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--ink-secondary);
  margin-bottom: 12px;
}

.card-meta-tag {
  font-weight: 500;
  color: var(--ink-secondary);
}

.card-meta-dot {
  color: var(--border-light);
}

.card-meta-year {
  color: var(--ink-tertiary);
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  color: var(--ink-primary);
}

.card-title a {
  color: inherit;
}

.card-title a:hover {
  color: var(--ink-accent);
}

.card-desc {
  font-size: 0.975rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--ink-secondary);
  margin-bottom: 20px;
}

/* Flat Metrics Row (Clean inline typography, NO nested card) */
.card-outcome-flat {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  padding: 12px 0;
  border-top: 1px solid var(--border-subtle);
  margin-bottom: 20px;
}

.card-outcome-flat .outcome-val {
  font-weight: 600;
  color: var(--ink-primary);
}

.card-outcome-flat .outcome-sep {
  color: var(--ink-tertiary);
}

.card-outcome-flat .outcome-sub {
  color: var(--ink-secondary);
}

.card-action {
  display: flex;
  align-items: center;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-primary);
  padding: 8px 14px;
  background: var(--bg-subtle);
  border-radius: var(--radius-btn);
  transition: background-color 0.15s ease, color 0.15s ease;
}

.card-link:hover {
  background-color: var(--ink-primary);
  color: #FFFFFF;
}

/* ==========================================================================
   TESTIMONIALS / COLLABORATOR QUOTES (Flat Cards)
   ========================================================================== */
.quotes-section {
  padding: 30px 0 80px;
}

.quotes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 30px;
}

.quote-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.quote-text {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink-primary);
  font-weight: 400;
  margin-bottom: 24px;
}

.quote-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--bg-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-meta);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-secondary);
  border: 1px solid var(--border-light);
}

.author-name {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  font-style: normal;
  display: block;
}

.author-role {
  font-size: 0.8rem;
  color: var(--ink-secondary);
}

/* ==========================================================================
   ABOUT PREVIEW SECTION (Flat Layout)
   ========================================================================== */
.about-section {
  padding: 50px 0 90px;
  border-top: 1px solid var(--border-light);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 60px;
  align-items: start;
}

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

.about-content .hero-eyebrow {
  margin-bottom: 12px;
}

.about-text {
  color: var(--ink-secondary);
  font-size: 1.05rem;
  font-weight: 400;
  margin-bottom: 20px;
  line-height: 1.65;
}

.about-sidebar {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 32px;
}

.sidebar-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
}

.timeline-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.timeline-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.95rem;
}

.timeline-item .role {
  font-weight: 600;
  color: var(--ink-primary);
  display: block;
}

.timeline-item .company {
  color: var(--ink-secondary);
  font-size: 0.875rem;
}

.timeline-item .year {
  font-family: var(--font-meta);
  font-size: 0.8rem;
  color: var(--ink-tertiary);
}

/* ==========================================================================
   BUTTONS (Softly Rounded 8px, NEVER Pill)
   ========================================================================== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-accent);
  color: var(--ink-inverse);
  padding: 12px 24px;
  border-radius: var(--radius-btn);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.btn-primary:hover {
  background-color: #262423;
  transform: translateY(-1px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface);
  color: var(--ink-primary);
  border: 1px solid var(--border-ui);
  padding: 12px 22px;
  border-radius: var(--radius-btn);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.btn-secondary:hover {
  background-color: var(--bg-subtle);
  border-color: var(--border-focus);
}

/* ==========================================================================
   FOOTER (Clean & Minimalist)
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--border-light);
  background: var(--bg-surface);
  padding: 50px 0 35px;
}

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

.footer-brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
}

.footer-socials {
  display: flex;
  gap: 20px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-secondary);
}

.footer-socials a:hover {
  color: var(--ink-primary);
}

/* ==========================================================================
   CASE STUDY PAGE SPECIFICS
   ========================================================================== */
.case-hero {
  padding: 60px 0 40px;
}

.case-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-secondary);
  padding: 6px 12px;
  background: var(--bg-subtle);
  border-radius: var(--radius-btn);
  margin-bottom: 24px;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.case-back-link:hover {
  color: var(--ink-primary);
  background-color: var(--border-light);
}

.case-headline {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 500; /* Leve e editorial */
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-bottom: 20px;
  max-width: 960px;
  color: var(--ink-primary);
}

.case-lead {
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1.55;
  color: var(--ink-secondary);
  max-width: 860px;
  margin-bottom: 40px;
}

/* Executive Summary Overview (Flat 4-Column Box) */
.exec-summary-grid {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 28px 32px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 45px;
}

@media (max-width: 768px) {
  .exec-summary-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 20px;
  }
}

.exec-item {
  display: flex;
  flex-direction: column;
}

.exec-label {
  font-family: var(--font-meta);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.exec-val {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink-primary);
  line-height: 1.35;
}

.exec-val.highlight {
  color: var(--ink-accent);
}

/* Narrative Body Sections */
.case-article {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

.case-section {
  margin-bottom: 55px;
}

.case-section h2 {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  color: var(--ink-primary);
}

.case-section p {
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--ink-secondary);
  margin-bottom: 20px;
}

.case-section strong {
  color: var(--ink-primary);
  font-weight: 600;
}

/* Decision & Trade-Off Card (Flat Border) */
.tradeoff-card {
  background: var(--bg-surface);
  border-left: 3px solid var(--ink-accent);
  border-radius: 0 12px 12px 0;
  padding: 22px 26px;
  margin: 28px 0;
  border-top: 1px solid var(--border-light);
  border-right: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.tradeoff-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--ink-primary);
}

.tradeoff-card p {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--ink-secondary);
  margin-bottom: 0;
  line-height: 1.55;
}

/* Figures & Captions */
.case-figure {
  margin: 36px 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-light);
  background: var(--bg-surface);
}

.case-figure picture,
.case-figure img {
  display: block;
  width: 100%;
}

.case-figure img,
.case-figure picture img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

@media (max-width: 768px) {
  .case-figure img,
  .case-figure picture img {
    aspect-ratio: 3 / 4;
  }
}

.case-caption {
  padding: 12px 18px;
  font-family: var(--font-meta);
  font-size: 0.85rem;
  color: var(--ink-secondary);
  background: var(--bg-subtle);
  border-top: 1px solid var(--border-light);
}

/* Impact Metrics Grid (Flat Softly Rounded Boxes) */
.metrics-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 32px 0;
}

@media (max-width: 680px) {
  .metrics-row {
    grid-template-columns: 1fr;
  }
}

.metric-pill {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: 12px; /* Suavemente arredondado, nunca pílula */
  padding: 24px;
  text-align: center;
}

.metric-num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--ink-accent);
  line-height: 1;
  margin-bottom: 8px;
}

.metric-label {
  font-family: var(--font-meta);
  font-size: 0.85rem;
  color: var(--ink-secondary);
  line-height: 1.35;
}

/* AI & Tools Disclosure Box */
.ai-disclosure-box {
  margin-top: 32px;
  background: var(--bg-subtle);
  border-radius: 12px;
  padding: 20px;
  font-size: 0.9rem;
  color: var(--ink-secondary);
  line-height: 1.55;
}

.ai-disclosure-box strong {
  color: var(--ink-primary);
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-meta);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

/* Next Project Navigation */
.case-next-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 60px;
  padding-top: 32px;
  border-top: 1px solid var(--border-light);
}

.next-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink-primary);
  margin-top: 4px;
}
