/* ==========================================================================
   AG CODE & DESIGN — DESIGN SYSTEM & STYLESHEET PRINCIPAL
   Estúdio de Desenvolvimento Web & Presença Digital de Alto Padrão
   ========================================================================== */

/* ==========================================================================
   1. FONTES OFICIAIS AG CODE & DESIGN
   ========================================================================== */
@font-face {
  font-family: 'Bahnschrift';
  src: url('../assets/Bahnschrift.ttf') format('truetype');
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: 'Neue';
  src: url('../assets/Neues-Bauen.ttf') format('truetype');
  font-display: swap;
}

@font-face {
  font-family: 'Recursive';
  src: url('../assets/RecursiveSans-Casual-Regular.ttf') format('truetype');
  font-display: swap;
}

/* ==========================================================================
   2. DESIGN TOKENS & RESET (Apple Polish & Emil Kowalski Principles)
   ========================================================================== */
:root {
  --paper: #f8f0e1;
  --wine: #08090a;
  --muted: #77746e;
  --accent: #fd5202;
  --accent-hover: #ff681e;
  --ink: #08090a;
  --ease-apple: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
}

/* Granulação analógica sutil (Zero bloqueio, 100% offline) */
.grain-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.026;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 32px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--wine);
  font-family: 'Bahnschrift', Arial, sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

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

figure {
  margin: 0;
}

a:focus-visible, button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 6px;
}

/* Utilitário de container fluido em tela inteira */
.container {
  width: 100%;
  max-width: 1520px;
  margin: 0 auto;
  padding-inline: clamp(24px, 5vw, 64px);
}

/* ==========================================================================
   3. HERO SECTION (100% Full-Bleed / Tela Inteira)
   ========================================================================== */
.hero {
  position: relative;
  width: 100%;
  min-height: 100svh;
  background: #08090a;
  color: var(--paper);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.hero-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 85% center;
  z-index: 0;
  will-change: transform, opacity;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  mix-blend-mode: screen;
  will-change: transform, opacity;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8, 9, 10, 0.94) 0%, rgba(8, 9, 10, 0.65) 38%, rgba(8, 9, 10, 0.15) 70%, transparent 100%),
              linear-gradient(180deg, rgba(8, 9, 10, 0.5) 0%, transparent 25%, rgba(8, 9, 10, 0.7) 100%);
  pointer-events: none;
  z-index: 2;
}

.header {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 32px clamp(24px, 5vw, 64px);
  width: 100%;
  max-width: 1520px;
  margin: 0 auto;
}

.brand {
  width: 132px;
  flex-shrink: 0;
  transition: opacity 0.2s ease;
}

.brand:hover {
  opacity: 0.85;
}

.header nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.5vw, 32px);
  font-size: 13px;
  letter-spacing: 0.04em;
}

.header nav a {
  min-height: 44px;
  display: flex;
  align-items: center;
  color: rgba(248, 240, 225, 0.85);
  transition: color 0.2s ease;
}

.header nav a:hover {
  color: #FFFFFF;
}

.header nav a.nav-cta {
  border: 1px solid #8a8883;
  border-radius: 30px;
  padding: 0 24px;
  color: #FFFFFF;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.header nav a.nav-cta:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #FFFFFF;
}

.header nav a.nav-cta:active {
  transform: scale(0.97);
}

.hero-container {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 1520px;
  margin: 0 auto;
  padding: clamp(30px, 6vh, 70px) clamp(24px, 5vw, 64px);
  flex-grow: 1;
  display: flex;
  align-items: center;
}

.hero-content {
  max-width: 720px;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #aaa499;
  margin-bottom: 24px;
  font-weight: 600;
}

.hero-content h1 {
  font-size: clamp(38px, 4.8vw, 70px);
  font-weight: 350;
  line-height: 1.05;
  letter-spacing: -0.04em;
  text-transform: none;
  color: #FFFFFF;
  margin: 0;
}

.hero-sub {
  font: 16px/1.6 'Recursive', Arial, sans-serif;
  color: #dcd4c6;
  max-width: 500px;
  margin: 24px 0 36px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.hero-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--accent);
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 600;
  padding: 15px 30px;
  border-radius: 40px;
  box-shadow: 0 6px 28px rgba(253, 82, 2, 0.45);
  transition: background 0.2s ease, transform 0.16s var(--ease-out), box-shadow 0.2s ease;
}

.hero-btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 36px rgba(253, 82, 2, 0.6);
}

.hero-btn-primary:active {
  transform: scale(0.97);
}

.hero-arrow {
  font-size: 16px;
  transition: transform 0.2s var(--ease-out);
}

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

.hero-link-secondary {
  display: inline-flex;
  align-items: center;
  color: rgba(248, 240, 225, 0.85);
  font-size: 14px;
  font-weight: 500;
  padding: 10px 0;
  border-bottom: 1px solid rgba(248, 240, 225, 0.35);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.hero-link-secondary:hover {
  color: #FFFFFF;
  border-color: #FFFFFF;
}

.hero-bottom-bar {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 1520px;
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 64px) 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: #aaa69e;
}

.hero-scroll-indicator {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #aaa69e;
}

.hero-scroll-line {
  display: block;
  width: 1px;
  height: 28px;
  background: rgba(248, 240, 225, 0.35);
}

.hero-location-tag {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #aaa69e;
}

/* ==========================================================================
   4. SECTION 2: EDITORIAL & PROJETOS SELECIONADOS
   ========================================================================== */
section.light {
  width: 100%;
  padding: clamp(80px, 8vw, 130px) 0 0;
  background: var(--paper);
}

.editorial {
  display: grid;
  grid-template-columns: 14% 1fr;
  gap: 0;
}

.mark {
  font-size: clamp(54px, 6vw, 84px);
  color: var(--accent);
  line-height: 0.9;
}

.statement {
  font-size: clamp(40px, 5.5vw, 84px);
  font-weight: 350;
  line-height: 1;
  letter-spacing: -0.055em;
  text-transform: uppercase;
}

.statement .indent {
  display: block;
  margin-left: 17%;
}

.soft {
  color: var(--muted);
}

.intro-text {
  font: 15px/1.6 'Recursive', Arial, sans-serif;
  max-width: 440px;
  margin: 32px 0 48px 17%;
  color: #605c54;
}

.projects {
  display: grid;
  grid-template-columns: 14% 1fr;
  align-items: end;
  margin-top: 16px;
}

.section-link {
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 4px;
  padding-bottom: 40px;
}

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

.project {
  min-width: 0;
  position: relative;
  perspective: 1000px;
}

.project button {
  display: block;
  padding: 0;
  border: 0;
  background: #08090a;
  width: 100%;
  cursor: pointer;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  transform-style: preserve-3d;
  will-change: transform;
}

.card-glare {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  border-radius: inherit;
  z-index: 4;
  transition: opacity 0.3s ease;
  mix-blend-mode: overlay;
}

.project button:active {
  transform: scale(0.97);
}

.project img {
  height: 280px;
  object-fit: cover;
  object-position: top;
  transition: filter 0.3s ease;
  will-change: transform;
}

.project-view-badge {
  position: absolute;
  bottom: 14px;
  right: 14px;
  background: rgba(8, 9, 10, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #f8f0e1;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.22s var(--ease-out), transform 0.22s var(--ease-out);
  border: 1px solid rgba(248, 240, 225, 0.25);
  pointer-events: none;
}

.project button:hover .project-view-badge {
  opacity: 1;
  transform: translateY(0);
}

.project-meta-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: 18px;
}

.project h3 {
  font: 26px/1.2 'Neue', Arial, sans-serif;
  margin: 0;
  letter-spacing: -0.02em;
}

.project-year {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.project p {
  font-size: 12px;
  color: #605c54;
  margin-top: 4px;
}

/* ==========================================================================
   5. SECTION 3: SERVIÇOS & GALERIA HORIZONTAL INTERATIVA (RAIL)
   ========================================================================== */
section.services {
  padding: clamp(100px, 10vw, 160px) 0 0 !important;
  text-align: left;
}

.services-heading {
  display: grid;
  grid-template-columns: 1fr 4fr 1fr;
  align-items: start;
}

.services-heading .eyebrow {
  max-width: 120px;
  margin-top: 10px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #605c54;
}

.services-heading h2 {
  font-size: clamp(40px, 5vw, 76px);
  font-weight: 350;
  line-height: 1.01;
  letter-spacing: -0.055em;
  text-transform: uppercase;
  margin: 0;
  max-width: 1100px;
}

.services-heading h2 span {
  display: block;
}

.services-heading h2 .offset {
  margin-left: 15%;
}

.services-heading .mark {
  text-align: right;
  font-size: 54px;
}

.services-intro {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin: 32px 0 48px 24%;
  gap: 40px;
}

.services-intro p {
  font: 14px/1.6 'Recursive', Arial, sans-serif;
  color: #605c54;
  max-width: 380px;
}

.rail-controls {
  display: flex;
  gap: 10px;
}

.rail-controls button {
  width: 50px;
  height: 50px;
  border: 1px solid #c8bdae;
  border-radius: 50%;
  background: transparent;
  color: #08090a;
  font-size: 26px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.rail-controls button:active {
  transform: scale(0.95);
}

.rail-controls button:disabled {
  opacity: 0.3;
  cursor: default;
}

.rail-controls button:not(:disabled):hover {
  background: #08090a;
  color: #f8f0e1;
}

/* Rail Container */
.service-grid {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  overflow-y: hidden;
  align-items: center;
  padding: 48px clamp(24px, 5vw, 64px) 36px;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: clamp(24px, 5vw, 64px);
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scrollbar-color: #b5a797 transparent;
  touch-action: pan-x pan-y;
  cursor: grab;
}

.service-grid:active {
  cursor: grabbing;
}

.service-grid:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -3px;
}

.service {
  flex: 0 0 32%;
  height: 500px;
  min-height: 0;
  margin: 0;
  scroll-snap-align: center;
  position: relative;
  background: #08090a;
  isolation: isolate;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(8, 9, 10, 0.2);
  transition: height 0.45s var(--ease-apple), transform 0.45s var(--ease-apple), box-shadow 0.45s var(--ease-apple), opacity 0.4s var(--ease-apple), border-color 0.4s ease;
  opacity: 0.82;
  border: 1px solid rgba(248, 240, 225, 0.08);
  user-select: none;
}

.service:hover {
  opacity: 0.95;
  transform: translateY(-4px);
}

.service.is-featured {
  height: 560px;
  opacity: 1;
  transform: translateY(-16px);
  box-shadow: 0 28px 60px rgba(253, 82, 2, 0.35);
  border-color: rgba(253, 82, 2, 0.45);
  z-index: 2;
}

.service.is-featured .service-type {
  background: rgba(253, 82, 2, 0.9);
  border-color: var(--accent);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(253, 82, 2, 0.4);
}

.service img, .service:nth-child(2) img {
  position: absolute;
  inset: 0;
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: 50% 34%;
  z-index: -2;
  transition: transform 0.6s var(--ease-apple);
}

.service:hover img {
  transform: scale(1.04);
}

.service::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8,9,10,0.1) 0%, rgba(8,9,10,0) 35%, rgba(8,9,10,0.7) 68%, #08090a 100%);
  z-index: -1;
}

.service-type {
  position: absolute;
  top: 24px;
  left: 24px;
  padding: 8px 14px;
  border: 1px solid rgba(248, 240, 225, 0.45);
  border-radius: 20px;
  background: rgba(8, 9, 10, 0.8);
  backdrop-filter: blur(8px);
  color: #f8f0e1;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.service-text {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 32px 26px;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 16px;
  align-items: end;
  color: #f8f0e1;
}

.service h3 {
  font-size: clamp(28px, 2.6vw, 42px);
  font-weight: 350;
  line-height: 0.99;
  letter-spacing: -0.035em;
}

.service:nth-child(3) .service-text {
  grid-template-columns: 1fr;
}

.service:nth-child(3) h3 {
  white-space: nowrap;
}

.service .eyebrow {
  font: 12px/1.4 'Recursive', Arial, sans-serif;
  letter-spacing: 0;
  text-transform: none;
  margin: 0;
  color: #eee3cf;
}

.rail-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 24px;
  color: #605c54;
  font-size: 12px;
  letter-spacing: 0.04em;
}

/* ==========================================================================
   6. SECTION 4: ABOUT & CLOSING GRID (Qual é a próxima ideia?)
   ========================================================================== */
.about {
  padding-top: clamp(100px, 10vw, 160px) !important;
  padding-bottom: 120px !important;
}

.about .statement {
  max-width: 1200px;
  margin: auto;
  text-align: center;
}

.about .statement .indent {
  margin-left: 0;
}

.closing-grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr 1fr;
  gap: 28px;
  max-width: 1280px;
  margin: 70px auto 0;
  align-items: start;
}

.closing-portrait {
  height: 360px;
  border-radius: 18px;
  overflow: hidden;
  background: #08090a;
}

.closing-portrait img {
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.6s var(--ease-apple);
}

.closing-portrait:hover img {
  transform: scale(1.03);
}

.closing-note {
  font: 13px/1.55 'Recursive', Arial, sans-serif;
  color: #605c54;
  margin: 22px 0 0;
}

.contact-panel {
  min-height: 480px;
  padding: clamp(28px, 4vw, 40px);
  border-radius: 20px;
  background: #08090a;
  color: var(--paper);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}

.contact-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.contact-panel .brand {
  width: 120px;
}

.contact-location-tag {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #aaa69e;
  border: 1px solid rgba(248, 240, 225, 0.2);
  padding: 4px 10px;
  border-radius: 12px;
}

.contact-panel h2 {
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 350;
  line-height: 0.98;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  margin: 32px 0 16px;
}

.contact-panel p {
  font: 14px/1.55 'Recursive', Arial, sans-serif;
  color: #e8dfce;
  max-width: 360px;
  margin-bottom: 22px;
}

/* Briefing Express (Seletor Interativo de Escopo) */
.briefing-box {
  margin-bottom: 24px;
}

.briefing-label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #aaa69e;
  margin-bottom: 12px;
}

.briefing-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  padding: 7px 14px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(248, 240, 225, 0.85);
  background: rgba(248, 240, 225, 0.06);
  border: 1px solid rgba(248, 240, 225, 0.2);
  cursor: pointer;
  transition: all 0.2s var(--ease-out);
  user-select: none;
}

.chip:hover {
  background: rgba(248, 240, 225, 0.14);
  border-color: rgba(248, 240, 225, 0.4);
  color: #FFFFFF;
}

.chip:active {
  transform: scale(0.95);
}

.chip.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #FFFFFF;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(253, 82, 2, 0.35);
}

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

.contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 22px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.16s var(--ease-out), box-shadow 0.2s ease;
}

.contact-btn span:last-child {
  transition: transform 0.2s var(--ease-out);
}

.contact-btn:hover span:last-child {
  transform: translate(3px, -3px);
}

.contact-btn.primary {
  background: var(--accent);
  color: #FFFFFF;
  border: 1px solid var(--accent);
}

.contact-btn.primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(253, 82, 2, 0.35);
}

.contact-btn.secondary {
  background: transparent;
  border: 1px solid rgba(248, 240, 225, 0.3);
  color: var(--paper);
}

.contact-btn.secondary:hover {
  border-color: #FFFFFF;
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

.contact-btn:active {
  transform: scale(0.97);
}

/* ==========================================================================
   7. FOOTER
   ========================================================================== */
.footer {
  padding: 36px 0 48px;
  border-top: 1px solid #d8cebc;
  display: flex;
  justify-content: space-between;
  gap: 30px;
  font-size: 12px;
  color: #605c54;
  align-items: center;
}

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

/* ==========================================================================
   8. CASE SHEET MODAL DRAWER (Visualizador Editorial de Casos)
   ========================================================================== */
dialog#case-dialog {
  border: 0;
  padding: 0;
  background: #08090a;
  color: var(--paper);
  width: min(1080px, 94vw);
  max-height: 90svh;
  border-radius: 20px;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.85);
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(248, 240, 225, 0.15);
}

dialog#case-dialog::backdrop {
  background: rgba(8, 9, 10, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

dialog#case-dialog[open] {
  animation: dialogEntrance 0.28s var(--ease-drawer) forwards;
}

@keyframes dialogEntrance {
  from {
    opacity: 0;
    transform: translate(-50%, -47%) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

.case-sheet-container {
  display: flex;
  flex-direction: column;
  max-height: 90svh;
  overflow-y: auto;
}

.case-sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 32px;
  border-bottom: 1px solid rgba(248, 240, 225, 0.1);
  position: sticky;
  top: 0;
  background: rgba(8, 9, 10, 0.95);
  backdrop-filter: blur(10px);
  z-index: 10;
}

.case-header-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.case-badge {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  font-weight: 600;
}

.case-sheet-header h2 {
  font: 32px/1 'Neue', Arial, sans-serif;
  margin: 0;
  letter-spacing: -0.02em;
}

.case-close-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 20px;
  border: 1px solid rgba(248, 240, 225, 0.2);
  color: var(--paper);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s var(--ease-out);
}

.case-close-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #FFFFFF;
}

.case-close-btn:active {
  transform: scale(0.96);
}

.case-sheet-body {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 36px;
  padding: 32px;
  align-items: start;
}

.case-media-wrap {
  border-radius: 14px;
  overflow: hidden;
  background: #111315;
  border: 1px solid rgba(248, 240, 225, 0.08);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
}

.case-media-wrap img {
  width: 100%;
  height: auto;
  max-height: 60svh;
  object-fit: cover;
  object-position: top;
  display: block;
}

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

.case-info-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.case-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #928e85;
}

.case-val {
  font-size: 15px;
  color: #FFFFFF;
  font-weight: 500;
}

.case-desc {
  font: 14px/1.6 'Recursive', Arial, sans-serif;
  color: #ded8cb;
}

.case-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.case-tag {
  font-size: 11px;
  padding: 5px 12px;
  border-radius: 16px;
  background: rgba(248, 240, 225, 0.06);
  border: 1px solid rgba(248, 240, 225, 0.15);
  color: #e8dfce;
}

.case-footer-action {
  margin-top: 12px;
  padding-top: 18px;
  border-top: 1px solid rgba(248, 240, 225, 0.1);
}

.case-footer-action .contact-btn {
  width: 100%;
}

/* ==========================================================================
   9. RESPONSIVIDADE (Tablets & Mobile)
   ========================================================================== */
@media (max-width: 990px) {
  .hero-content h1 { font-size: 50px; }
  .statement { font-size: 52px; }
  .services-heading {
    grid-template-columns: 1fr 5fr;
  }
  .services-heading .mark { display: none; }
  .services-heading h2 { font-size: 48px; }
  .services-intro { margin-left: 20%; }
  .service, .service:nth-child(2) { flex-basis: 46%; height: 460px; }
  .service.is-featured { height: 500px; }
  .service-text { grid-template-columns: 1fr; }
  .service h3 { font-size: 34px; }
  .closing-grid { gap: 18px; }
  .closing-portrait { height: 280px; }
}

@media (max-width: 820px) {
  .case-sheet-body {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 20px;
  }
  .case-sheet-header {
    padding: 18px 20px;
  }
  .case-media-wrap img {
    max-height: 42svh;
  }
}

@media (max-width: 700px) {
  .header { padding: 18px 20px; }
  .brand { width: 110px; }
  .header nav { gap: 14px; font-size: 12px; }
  .header nav a:nth-child(1),
  .header nav a:nth-child(3) { display: none; }
  .header nav a.nav-cta { padding: 0 14px; }

  .hero { min-height: 100svh; }
  .hero-art { height: 100%; object-position: 70% center; opacity: 0.45; }
  .hero-container {
    padding: 24px 20px 32px;
    align-items: flex-end;
  }
  .hero-content { max-width: none; width: 100%; }
  .hero-content h1 { font-size: 36px; line-height: 1.08; letter-spacing: -0.035em; }
  .hero-sub { font-size: 15px; margin: 16px 0 24px; line-height: 1.5; }
  .hero-actions { gap: 16px; }
  .hero-btn-primary { padding: 13px 22px; font-size: 13px; }
  .hero-bottom-bar { padding: 0 20px 20px; font-size: 10px; }
  .service.is-featured { height: 450px; transform: translateY(-8px); }

  section.light { padding: 64px 0 0; }
  .editorial { display: block; }
  .mark { font-size: 44px; margin-bottom: 24px; }
  .statement { font-size: 40px; line-height: 1.04; }
  .statement .indent { margin-left: 0; }
  .intro-text { font-size: 13px; margin: 24px 0 36px; }

  .projects { display: block; }
  .section-link { display: block; font-size: 14px; margin-bottom: 24px; padding: 0; }
  .project-grid { grid-template-columns: 1fr; gap: 32px; }
  .project img { height: 220px; }

  section.services { padding-top: 90px !important; }
  .services-heading { display: block; }
  .services-heading .eyebrow { margin-bottom: 16px; }
  .services-heading h2 { font-size: 40px; }
  .services-heading h2 .offset { margin-left: 0; }
  .services-intro { margin: 24px 0 18px; gap: 20px; flex-direction: column; align-items: flex-start; }
  .service, .service:nth-child(2) { flex: 0 0 86%; height: 430px; border-radius: 16px; }
  .service-text { padding: 22px; }

  .about { padding-top: 90px !important; padding-bottom: 60px !important; }
  .about .statement { text-align: left; }
  .closing-grid { grid-template-columns: 1fr; margin-top: 36px; gap: 24px; }
  .closing-portrait { height: 320px; }
  .closing-grid > div:last-child { display: none; }
  .contact-panel { min-height: 380px; padding: 26px; }

  .footer { flex-direction: column; align-items: flex-start; gap: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
