/* ========================================
   AND Studio de Marcas — Stylesheet
   ======================================== */

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

:root {
  /* Design system — AND Studio de Marcas */
  --black: #161A26;          /* Dark Navy */
  --dark: #1c2030;
  --dark-2: #212538;
  --gray-dark: #2e3347;
  --gray: #888888;            /* Muted */
  --gray-light: #9498a6;
  --cream: #EEEEEE;           /* Light Gray */
  --cream-light: #F7FBFC;     /* Very Light Neutral */
  --white: #FFFFFF;
  --accent: #EA3D3D;          /* Danger / Accent vermelho do hero */
  --accent-light: #ff5e5e;
  --brand: #0000EE;           /* Brand Blue */

  --font-serif: 'Times New Roman', 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'motiva-sans', 'Mulish', 'Inter', -apple-system, 'Segoe UI', sans-serif;

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

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

body {
  font-family: var(--font-sans);
  background: var(--black);
  color: var(--cream);
  overflow-x: hidden;
  cursor: none;
}

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

img {
  display: block;
  max-width: 100%;
  height: auto; /* sem isso, width/height no HTML esticam a imagem quando ela encolhe */
}

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

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

/* --- Loader --- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s var(--ease-out-expo), visibility 0.6s;
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-inner {
  text-align: center;
}

.loader-text {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 300;
  letter-spacing: 0.3em;
  color: var(--cream);
  display: block;
  margin-bottom: 2rem;
  animation: loaderPulse 1.5s ease-in-out infinite;
}

.loader-logo {
  width: 120px;
  height: auto;
  display: block;
  margin: 0 auto 2rem;
  animation: loaderPulse 1.5s ease-in-out infinite;
}

.loader-line {
  width: 60px;
  height: 1px;
  background: var(--gray-dark);
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.loader-line::after {
  content: '';
  position: absolute;
  left: -100%;
  top: 0;
  width: 100%;
  height: 100%;
  background: var(--accent);
  animation: loaderSlide 1s ease-in-out infinite;
}

@keyframes loaderPulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

@keyframes loaderSlide {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* --- Custom Cursor --- */
.cursor {
  position: fixed;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform 0.15s var(--ease-out-expo), opacity 0.3s;
  mix-blend-mode: difference;
}

.cursor-follower {
  position: fixed;
  width: 36px;
  height: 36px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9997;
  transform: translate(-50%, -50%);
  transition: transform 0.4s var(--ease-out-expo), width 0.3s, height 0.3s, opacity 0.3s;
  opacity: 0.5;
}

.cursor.hovering {
  transform: translate(-50%, -50%) scale(2);
}

.cursor-follower.hovering {
  width: 60px;
  height: 60px;
  opacity: 0.3;
}

/* --- Navigation --- */
/* Centered, stacked header — logo on top, nav row below (like andmore.com.br) */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1.75rem 2rem 1.1rem;
  background: transparent;
  transition: padding 0.4s var(--ease-out-expo), background 0.4s var(--ease-out-expo), backdrop-filter 0.4s;
}

/* On scroll, pick up a background — transparent + moving text underneath is hard to read */
.nav.scrolled {
  padding-top: 1rem;
  padding-bottom: 0.9rem;
  background: rgba(22, 26, 38, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(238, 238, 238, 0.06);
}

.nav-logo {
  display: flex;
  align-items: center;
  transition: opacity 0.3s;
}

.nav-logo:hover { opacity: 0.7; }

.nav-logo-img {
  height: 26px;
  width: auto;
}

.nav-logo-dot {
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 300;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--gray);
  transition: color 0.3s;
}

.nav-link:hover,
.nav-link.active {
  color: var(--cream);
}

/* Language toggle: plain red text link in the same row */
.nav-link-lang {
  color: var(--accent);
}

.nav-link-lang:hover {
  color: var(--accent-light);
}

.nav-menu-btn {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  z-index: 110;
}

.nav-menu-btn span {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--cream);
  transition: all 0.4s var(--ease-out-expo);
}

.nav-menu-btn.active span:first-child {
  transform: rotate(45deg) translate(2.5px, 2.5px);
}

.nav-menu-btn.active span:last-child {
  transform: rotate(-45deg) translate(2.5px, -2.5px);
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 105;
  background: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s var(--ease-out-expo);
}

.mobile-menu.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  text-align: center;
}

.mobile-link {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 300;
  letter-spacing: 0.05em;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.5s var(--ease-out-expo), color 0.3s;
}

.mobile-menu.active .mobile-link {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu.active .mobile-link:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.active .mobile-link:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu.active .mobile-link:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu.active .mobile-link:nth-child(4) { transition-delay: 0.25s; }

.mobile-link:hover { color: var(--accent); }

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url('Imagens/header.jpg') center center / cover no-repeat;
}

.hero-grain {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px;
  z-index: 1;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  /* darker behind the (now left-aligned) text, fading out so the painting reads clearly on the right */
  background:
    linear-gradient(100deg, rgba(22, 26, 38, 0.86) 0%, rgba(22, 26, 38, 0.58) 32%, rgba(22, 26, 38, 0.2) 62%, rgba(22, 26, 38, 0.05) 85%),
    linear-gradient(to bottom, rgba(22, 26, 38, 0.05) 0%, rgba(22, 26, 38, 0.1) 55%, rgba(22, 26, 38, 0.4) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: left;
  padding: 0 2rem 0 clamp(2rem, 7vw, 7rem);
  max-width: 800px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.hero-tag-line {
  width: 40px;
  height: 1px;
  background: var(--accent);
}

.hero-tag-text {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gray-light);
}

.hero-title {
  font-family: var(--font-sans);
  font-size: clamp(2.4rem, 5.6vw, 4.8rem);
  font-weight: 900;
  line-height: 1.16;
  letter-spacing: -0.015em;
  color: var(--cream-light);
}

.hero-line {
  display: block;
  overflow: hidden;
  /* room for descenders / italic overshoot without shifting layout */
  padding-bottom: 0.16em;
  margin-bottom: -0.16em;
}

.hero-line span {
  display: inline-block;
}

/* Hidden state must clear the mask + its bottom padding, so no sliver peeks */
.hero-title .hero-line.reveal-up > span {
  transform: translateY(130%);
}

.hero-title .hero-line.reveal-up.visible > span {
  transform: translateY(0);
}

.hero-line em {
  font-style: normal;
  color: inherit;
}

.hero-line-and {
  margin-top: 0.15em;
}

.hero-line-and span {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
  letter-spacing: 0;
}

.dot-pulse {
  color: var(--accent);
  animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.hero-scroll {
  position: absolute;
  bottom: 4rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray);
  z-index: 3;
}

/* Short viewports: hide the scroll cue so it never collides with the centered title */
@media (max-height: 700px) {
  .hero-scroll { display: none; }
}

.scroll-indicator {
  width: 20px;
  height: 32px;
  border: 1px solid var(--gray-dark);
  border-radius: 10px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}

.scroll-dot {
  width: 3px;
  height: 6px;
  background: var(--accent);
  border-radius: 2px;
  animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(10px); opacity: 0.3; }
}

/* Hero Marquee */
.hero-marquee {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  overflow: hidden;
  border-top: 1px solid var(--gray-dark);
  padding: 0.8rem 0;
  z-index: 2;
}

.marquee-track {
  display: flex;
  white-space: nowrap;
  animation: marquee 30s linear infinite;
}

.marquee-track span {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray);
  flex-shrink: 0;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-25%); }
}

/* --- Sections --- */
.section {
  padding: 8rem 0;
  position: relative;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 3rem;
}

.section-label {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray);
  display: block;
  margin-bottom: 2rem;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 300;
  line-height: 1.2;
  color: var(--cream-light);
}

.section-title em {
  font-style: italic;
  color: var(--accent);
}

.section-title .highlight {
  color: var(--accent);
  font-weight: 400;
}

.section-title-center {
  text-align: center;
  margin-bottom: 5rem;
}

/* --- About --- */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.about-text p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--gray-light);
  margin-bottom: 1.5rem;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 1px solid var(--gray-dark);
}

.stat-number {
  font-family: var(--font-serif);
  font-size: 2.8rem;
  font-weight: 300;
  color: var(--accent);
  display: inline;
}

.stat-plus {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--accent);
}

.stat-label {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: var(--gray);
}

/* --- Parallax Divider --- */
.parallax-divider {
  padding: 4rem 0;
  overflow: hidden;
  border-top: 1px solid var(--gray-dark);
  border-bottom: 1px solid var(--gray-dark);
  background: var(--dark);
}

.parallax-text {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 2vw, 2.5rem);
  flex-wrap: nowrap;
  padding: 0 clamp(1rem, 3vw, 3rem);
  white-space: nowrap;
  overflow: visible;
}

.parallax-text::-webkit-scrollbar {
  display: none;
}

.parallax-word {
  font-family: var(--font-serif);
  font-size: clamp(0.95rem, 2.2vw, 2.2rem);
  font-weight: 300;
  color: var(--cream);
  transition: transform 0.1s linear;
  flex-shrink: 0;
}

.parallax-word-accent {
  color: var(--accent);
  font-style: italic;
  font-weight: 400;
}

.parallax-sep {
  color: var(--gray);
  font-size: 1rem;
  flex-shrink: 0;
}

/* --- Method --- */
.section-method {
  background: var(--dark);
}

.method-timeline {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
}

.method-line {
  position: absolute;
  left: 28px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--gray-dark);
}

.method-line-fill {
  width: 100%;
  height: 0%;
  background: linear-gradient(to bottom, var(--accent), transparent);
  transition: height 0.05s linear;
}

.method-step {
  display: flex;
  gap: 2.5rem;
  padding: 2.5rem 0;
  position: relative;
}

.method-step-number {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--gray);
  min-width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gray-dark);
  border-radius: 50%;
  background: var(--dark);
  position: relative;
  z-index: 2;
  transition: all 0.5s var(--ease-out-expo);
}

.method-step.visible .method-step-number {
  border-color: var(--accent);
  color: var(--accent);
}

.method-step-accent .method-step-number {
  font-size: 1.6rem;
  font-weight: 600;
}

.method-step-content h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 0.75rem;
  color: var(--cream-light);
}

.method-step-content p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--gray-light);
}

.method-step-accent .method-step-content h3 {
  color: var(--accent);
  font-style: italic;
}

/* --- Cases --- */
.section-cases {
  background: var(--black);
}

.cases-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 3rem;
  margin-bottom: 4rem;
}

.cases-subtitle {
  max-width: 380px;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--gray-light);
}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  padding: 0 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.case-card {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  display: block;
  cursor: none;
}

.case-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
}

.case-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out-expo);
}

.case-card:hover .case-img img {
  transform: scale(1.05);
}

.case-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 10, 10, 0.9) 0%, rgba(10, 10, 10, 0.2) 50%, transparent 100%);
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.4s;
}

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

.case-view {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
}

.case-info {
  padding: 1.2rem 0.25rem;
}

.case-info h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--cream-light);
  margin-bottom: 0.3rem;
}

.case-tag {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray);
}

/* --- CTA --- */
.section-cta {
  position: relative;
  padding: 10rem 0;
  text-align: center;
  overflow: hidden;
}

.cta-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% 50%, rgba(201, 169, 110, 0.06) 0%, transparent 70%);
}

.cta-grain {
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px;
}

.cta-content {
  position: relative;
  z-index: 2;
}

.cta-title {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 300;
  line-height: 1.2;
  color: var(--cream-light);
  margin-bottom: 3rem;
}

.cta-title em {
  font-style: italic;
  color: var(--accent);
}

.cta-title .highlight {
  color: var(--accent);
  font-weight: 400;
}

/* --- Button --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 2.5rem;
  border: 1px solid var(--accent);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: all 0.4s var(--ease-out-expo);
  cursor: none;
}

.btn-primary {
  background: transparent;
  color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent);
  color: var(--black);
}

.btn-arrow {
  transition: transform 0.3s var(--ease-out-expo);
}

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

/* --- Contact --- */
.section-contact {
  background: var(--dark);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
}

.contact-info {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-link {
  display: block;
  padding: 1rem 0;
  border-bottom: 1px solid var(--gray-dark);
  transition: border-color 0.3s;
}

.contact-link:hover {
  border-color: var(--accent);
}

.contact-link-label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 0.4rem;
}

.contact-link-value {
  font-size: 1rem;
  color: var(--cream);
  transition: color 0.3s;
}

.contact-link:hover .contact-link-value {
  color: var(--accent);
}

/* Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.form-group {
  position: relative;
}

.form-group label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 0.75rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--gray-dark);
  padding: 0.5rem 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--cream);
  outline: none;
  transition: border-color 0.3s;
  cursor: none;
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
}

.form-line {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.4s var(--ease-out-expo);
}

.form-group input:focus ~ .form-line,
.form-group textarea:focus ~ .form-line {
  width: 100%;
}

.form-success {
  display: none;
  text-align: center;
  padding: 3rem 0;
}

.form-success.visible {
  display: block;
  animation: fadeInUp 0.6s var(--ease-out-expo);
}

.success-icon {
  display: inline-flex;
  width: 56px;
  height: 56px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
}

.form-success p {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--cream);
  font-style: italic;
}

/* --- Footer --- */
.footer {
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--gray-dark);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 4rem;
  align-items: start;
  padding-bottom: 3rem;
}

.footer-logo {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 500;
  letter-spacing: 0.15em;
}

.footer-logo-img {
  height: 24px;
  width: auto;
}

.footer-desc {
  font-size: 0.8rem;
  color: var(--gray);
  margin-top: 0.5rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  font-size: 0.8rem;
  color: var(--gray-light);
  letter-spacing: 0.05em;
  transition: color 0.3s;
}

.footer-links a:hover { color: var(--accent); }

.footer-social {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-social a {
  font-size: 0.8rem;
  color: var(--gray-light);
  letter-spacing: 0.05em;
  transition: color 0.3s;
}

.footer-social a:hover { color: var(--accent); }

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--gray-dark);
  font-size: 0.7rem;
  color: var(--gray);
  letter-spacing: 0.05em;
}

/* --- Reveal Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s var(--ease-out-expo) var(--delay, 0s),
              transform 0.8s var(--ease-out-expo) var(--delay, 0s);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-up .hero-line span,
.reveal-up span {
  display: inline-block;
}

.reveal-up {
  overflow: hidden;
}

.reveal-up span {
  transform: translateY(105%);
  transition: transform 0.9s var(--ease-out-expo) var(--delay, 0s);
}

.reveal-up.visible span {
  transform: translateY(0);
}

.reveal-card {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out-expo) var(--delay, 0s),
              transform 0.8s var(--ease-out-expo) var(--delay, 0s);
}

.reveal-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-step {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo);
}

.reveal-step.visible {
  opacity: 1;
  transform: translateX(0);
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .cases-header {
    flex-direction: column;
    align-items: start;
  }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-menu-btn { display: flex; }

  .nav {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 0;
    padding: 1.2rem 1.5rem;
  }

  .nav.scrolled { padding-top: 1.2rem; }

  .container {
    padding: 0 1.5rem;
  }

  .section {
    padding: 5rem 0;
  }

  .hero-content {
    padding: 0 1.5rem;
  }

  .hero-scroll {
    bottom: 5rem;
  }

  .cases-grid {
    grid-template-columns: 1fr;
    padding: 0 1.5rem;
  }

  .about-stats {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .section-cta {
    padding: 6rem 0;
  }

  .parallax-text {
    gap: 1rem;
  }

  .parallax-word {
    font-size: 1.2rem;
  }

  .method-step {
    gap: 1.5rem;
  }

  /* Hide custom cursor on touch devices */
  .cursor, .cursor-follower {
    display: none;
  }

  body {
    cursor: auto;
  }

  .case-card, .btn, .form-group input, .form-group textarea {
    cursor: auto;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .cta-title {
    font-size: 1.8rem;
  }

  .stat-number {
    font-size: 2.2rem;
  }
}

/* ========================================
   Case Study Page
   ======================================== */

.case-page {
  background: var(--black);
}

/* --- Case Hero --- */
.case-hero {
  position: relative;
  padding: 12rem 0 4.5rem;
  background: var(--black);
}

.case-hero-inner {
  position: relative;
  width: 100%;
}

/* ========================================
   Case — image grid system
   Reusable, mix-and-match media blocks.
   Every block is a sibling of <section>; drop it
   anywhere in a case and delete what you don't use.
   ======================================== */
:root {
  --case-max: 1200px; /* contained media width */
  --case-gap: 4px;    /* space between images — 2px reads as each image's own edge */
}

/* 1 — FULL-BLEED, natural height (best for pre-composed boards) */
.case-full {
  max-width: var(--case-max);
  margin: 0 auto;
  background: var(--dark);
  overflow: hidden;
}
.case-full img { display: block; width: 100%; height: auto; }

/* 1b — full-bleed but cropped to a fixed band */
.case-full--crop img { height: 78vh; object-fit: cover; }
.case-full--band img { height: 42vh; object-fit: cover; }

/* 2 — CONTAINED single image — solo, so no horizontal margin to share with a neighbor */
.case-single {
  max-width: var(--case-max);
  margin: 0 auto;
}
.case-single img { display: block; width: 100%; height: auto; }

/* 3 — ROW: 2 or 3 equal columns (contained). Add a shape helper. */
.case-row {
  max-width: var(--case-max);
  margin: 0 auto;
  display: grid;
  gap: var(--case-gap);
}
.case-row--2 { grid-template-columns: repeat(2, 1fr); }
.case-row--3 { grid-template-columns: repeat(3, 1fr); }
.case-row figure { margin: 0; overflow: hidden; }
.case-row img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* shape of each cell — omit for natural height */
.case-row--landscape figure { aspect-ratio: 4 / 3; }
.case-row--square    figure { aspect-ratio: 1 / 1; }
.case-row--portrait  figure { aspect-ratio: 3 / 4; }
.case-row--tall      figure { aspect-ratio: 2 / 3; }

/* 4 — TILES: 1×1 squares that wrap (2 / 3 / 4 per row) */
.case-tiles {
  max-width: var(--case-max);
  margin: 0 auto;
  display: grid;
  gap: var(--case-gap);
}
.case-tiles--2 { grid-template-columns: repeat(2, 1fr); }
.case-tiles--3 { grid-template-columns: repeat(3, 1fr); }
.case-tiles--4 { grid-template-columns: repeat(4, 1fr); }
.case-tiles figure { margin: 0; aspect-ratio: 1 / 1; overflow: hidden; }
.case-tiles img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* 5 — DUO: edge-to-edge pair, no gap (great for vertical/portrait shots) */
.case-duo {
  max-width: var(--case-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--case-gap);
}
.case-duo figure { margin: 0; aspect-ratio: 3 / 4; overflow: hidden; }
.case-duo--landscape figure { aspect-ratio: 16 / 10; }
.case-duo img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* 6 — SPLIT: one tall image + two stacked beside it */
.case-split {
  max-width: var(--case-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: var(--case-gap);
  align-items: stretch;
}
.case-split figure { margin: 0; overflow: hidden; }
.case-split img { display: block; width: 100%; height: 100%; object-fit: cover; }
.case-split-main { aspect-ratio: 3 / 4; }
.case-split-side { display: grid; grid-template-rows: 1fr 1fr; gap: var(--case-gap); }
.case-split--mirror { grid-template-columns: 1fr 1.5fr; }
.case-split--mirror .case-split-side { order: -1; }

/* 7 — FIT: 1–4 images side by side, sharing a max-height — never cropped.
   Unlike the blocks above (which crop to a fixed aspect-ratio), each image
   here keeps its own ratio and simply scales down to fit; portraits,
   squares and landscapes can sit in the same row and still show in full. */
.case-fit {
  max-width: var(--case-max);
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: var(--case-gap);
}

.case-fit figure {
  margin: 0;
  height: var(--fit-h, 50vh);
  max-width: 100%;
}

.case-fit img {
  display: block;
  width: auto;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
}

/* One preset per image count — taller when alone, shorter as more join the row.
   Capped in px too (min() against vh) so tall viewports don't blow the row
   wider than the container. flex-wrap is still the safety net: if the images
   on hand are too wide to share one line, the row wraps instead of cropping
   or squeezing — still no crop, still a bounded height per line. */
.case-fit--1 { --fit-h: min(72vh, 640px); padding-left: 0; padding-right: 0; } /* solo image — no horizontal margin */
.case-fit--2 { --fit-h: min(54vh, 440px); }
.case-fit--3 { --fit-h: min(32vh, 270px); }
.case-fit--4 { --fit-h: min(28vh, 240px); }

/* vertical rhythm when media blocks are stacked back-to-back */
.case-stack > * + * { margin-top: var(--case-gap); }
/* breathing room when a media block sits between two text sections */
.case-gap { padding: 0; }
.case-gap--sm { padding: 0; }

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 2rem;
}

.breadcrumb a {
  color: var(--gray);
  transition: color 0.3s;
}

.breadcrumb a:hover { color: var(--accent); }
.breadcrumb-sep { color: var(--accent); }
.breadcrumb-current { color: var(--cream); }

.case-title {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 8vw, 6rem);
  font-weight: 300;
  line-height: 1.1;
  color: var(--cream-light);
  margin-bottom: 1.5rem;
  padding-bottom: 0.08em;
}

.case-lead {
  max-width: 620px;
  font-size: clamp(1.05rem, 2vw, 1.4rem);
  font-weight: 300;
  line-height: 1.6;
  color: var(--gray-light);
}

.case-meta {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 2rem 3rem;
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--gray-dark);
}

.case-meta dt {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 0.5rem;
}

.case-meta dd {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--cream);
  max-width: 24ch;
}

/* --- Case content blocks --- */
.case-block-alt {
  background: var(--dark);
}

.case-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.case-two-col-body p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--gray-light);
  margin-bottom: 1.5rem;
}

.case-two-col-body p:last-child { margin-bottom: 0; }

.case-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 4rem;
}

.case-pillar {
  padding-top: 2.5rem;
  border-top: 1px solid var(--gray-dark);
}

.case-pillar-num {
  display: block;
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.case-pillar h3 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--cream-light);
  margin-bottom: 0.75rem;
}

.case-pillar p {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--gray-light);
}

/* --- Quote --- */
.case-quote-section {
  text-align: center;
  background: var(--dark);
}

.case-quote {
  max-width: 900px;
  margin: 0 auto;
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3.6vw, 2.8rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.35;
  color: var(--cream-light);
}

.case-quote span::before { content: '\201C'; }
.case-quote span::after { content: '\201D'; }

.case-quote-author {
  margin-top: 2rem;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray);
}

/* --- Next case --- */
.case-next {
  border-top: 1px solid var(--gray-dark);
}

.case-next-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.case-next-back {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray);
  transition: color 0.3s;
}

.case-next-back:hover { color: var(--accent); }

.case-next-link { text-align: right; }

.case-next-label {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 0.5rem;
}

.case-next-name {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 400;
  color: var(--cream-light);
  transition: color 0.3s;
}

.case-next-link:hover .case-next-name { color: var(--accent); }
.case-next-link:hover .btn-arrow { transform: translateX(4px); }

/* --- Case responsive --- */
@media (max-width: 900px) {
  .case-hero {
    min-height: 80vh;
    padding: 9rem 0 3.5rem;
  }

  .case-two-col {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .case-meta {
    grid-template-columns: 1fr 1fr;
  }

  .case-pillars {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .case-pillar {
    padding: 2rem 0;
  }

  .case-pillar:first-child { border-top: none; padding-top: 0; }

  /* grid system */
  .case-row--3 { grid-template-columns: repeat(2, 1fr); }
  .case-tiles--3,
  .case-tiles--4 { grid-template-columns: repeat(2, 1fr); }
  .case-split { grid-template-columns: 1fr; }
  .case-split--mirror .case-split-side { order: 0; }
  .case-split-side { grid-template-rows: auto auto; }
  .case-split-main { aspect-ratio: 4 / 3; }
  .case-gap { padding: 0; }

  .case-fit--1 { --fit-h: min(50vh, 420px); }
  .case-fit--2 { --fit-h: min(36vh, 300px); }
  .case-fit--3 { --fit-h: min(26vh, 220px); }
  .case-fit--4 { --fit-h: min(22vh, 190px); }
}

@media (max-width: 600px) {
  .case-row--2,
  .case-row--3,
  .case-tiles--2,
  .case-tiles--3,
  .case-tiles--4 { grid-template-columns: 1fr; }

  .case-duo { grid-template-columns: 1fr; }
  .case-full--crop img { height: 60vh; }

  /* stack: full width, height follows the image instead of fighting for row space */
  .case-fit { flex-direction: column; align-items: stretch; }
  .case-fit figure { width: 100%; height: auto; }
  .case-fit img { width: 100%; height: auto; max-height: 60vh; }
}

@media (max-width: 480px) {
  .case-meta {
    grid-template-columns: 1fr;
  }

  .case-next-inner {
    flex-direction: column-reverse;
    align-items: flex-start;
  }

  .case-next-link { text-align: left; }
}

/* ========================================
   Lightbox
   ======================================== */
.lb-zoomable {
  transition: filter 0.35s var(--ease-out-expo);
}

.lb-zoomable:hover {
  filter: brightness(1.08);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9990;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: rgba(22, 26, 38, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease-out-expo), visibility 0.4s;
}

.lightbox.open {
  opacity: 1;
  visibility: visible;
}

.lightbox-figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  max-width: 92vw;
  max-height: 86vh;
  transform: scale(0.94);
  transition: transform 0.5s var(--ease-out-expo);
}

.lightbox.open .lightbox-figure {
  transform: scale(1);
}

.lightbox-img {
  display: block;
  max-width: 92vw;
  max-height: 80vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
  opacity: 0;
  transition: opacity 0.4s var(--ease-out-expo);
}

.lightbox-caption {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray-light);
  text-align: center;
  max-width: 60ch;
}

.lightbox-close,
.lightbox-nav {
  position: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--cream);
  border: 1px solid var(--gray-dark);
  border-radius: 50%;
  background: rgba(22, 26, 38, 0.6);
  transition: color 0.3s, border-color 0.3s, background 0.3s;
}

.lightbox-close:hover,
.lightbox-nav:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.lightbox-close {
  top: 1.75rem;
  right: 1.75rem;
}

.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-prev { left: 1.75rem; }
.lightbox-next { right: 1.75rem; }

.lightbox-count {
  position: fixed;
  bottom: 1.75rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--gray);
}

@media (max-width: 600px) {
  .lightbox { padding: 1rem; }
  .lightbox-close { top: 1rem; right: 1rem; }
  .lightbox-prev { left: 0.75rem; }
  .lightbox-next { right: 0.75rem; }
  .lightbox-close,
  .lightbox-nav {
    width: 42px;
    height: 42px;
    cursor: pointer;
  }
}

/* ========================================
   Grade de mídia dos cases — sistema único
   Todo bloco de imagem ocupa a largura do container
   (1200px, sem margem lateral) e respira 4px do vizinho.
   Serve tanto para as classes .case-* antigas quanto
   para o sistema .fc-* (linhas de proporção livre).
   ======================================== */
.fc-media,
.fc-one,
.fc-row,
.fc-video {
  --fc-gap: var(--case-gap);
}

/* qualquer bloco de mídia: largura do container, sem padding lateral */
.fc-media {
  max-width: var(--case-max);
  margin: 0 auto;
  padding: 0;
}

/* bloco único — altura natural da imagem */
.fc-one {
  overflow: hidden;
  background: var(--dark);
}
.fc-one img { display: block; width: 100%; height: auto; }

/* linha de N colunas — proporção das colunas em --cols, altura da faixa em --ar */
.fc-row {
  display: grid;
  grid-template-columns: var(--cols, 1fr 1fr);
  gap: var(--case-gap);
  aspect-ratio: var(--ar, 16 / 9);
}
.fc-row figure {
  margin: 0;
  overflow: hidden;
  background: var(--dark);
}
.fc-row img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* célula que não pode ser cortada (marca, animação) */
.fc-row figure.fit img,
.fc-one.fit img { object-fit: contain; }

/* vídeo — mesma caixa dos blocos de imagem */
.fc-video {
  aspect-ratio: var(--ar, 16 / 9);
  overflow: hidden;
  background: var(--dark);
}
.fc-video iframe,
.fc-video video {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}

/* ritmo vertical: 4px entre dois blocos de mídia quaisquer,
   independente de qual classe cada um usa */
:is(.case-full, .case-single, .case-row, .case-tiles, .case-duo,
    .case-split, .case-fit, .case-gap, .fc-media)
+ :is(.case-full, .case-single, .case-row, .case-tiles, .case-duo,
      .case-split, .case-fit, .case-gap, .fc-media) {
  margin-top: var(--case-gap);
}

@media (max-width: 768px) {
  /* empilha sem cortar: cada imagem volta à própria proporção */
  .fc-row {
    grid-template-columns: 1fr;
    aspect-ratio: auto;
  }
  .fc-row img { height: auto; }
}
