/* ============================================================
   ebook.tex — Sistema de Design
   "Tipografia como produto: a prensa encontra o código"
   Editorial · serifa de alto contraste · grid · mono · fios
   ============================================================ */

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

:root {
  /* ---- Cor: tinta & papel ---- */
  --ink:          #181611;   /* preto-quente */
  --ink-2:        #2A271F;
  --ink-soft:     #524C3F;   /* corpo sobre papel */
  --ink-faint:    #8C8472;   /* legendas / metadados */

  --paper:        #ECE5D7;   /* papel base, quente */
  --paper-2:      #F4EEE2;   /* superfície mais clara */
  --paper-3:      #E2D9C7;   /* papel alternativo / fundo */
  --line:         #D5CAB4;   /* fio de cabelo no papel */
  --line-2:       #C4B79C;   /* fio mais forte */

  /* ---- Verde-pinheiro (marca / bandas escuras) ---- */
  --pine:         #14201A;   /* fundo escuro profundo */
  --pine-2:       #1B2C22;
  --pine-3:       #25382B;
  --moss:         #5E6E4F;   /* verde médio (acento vivo) */
  --moss-2:       #76895F;
  --paper-dim:    rgba(236, 229, 215, 0.62);  /* texto secundário sobre escuro */
  --line-dark:    rgba(236, 229, 215, 0.14);  /* fio sobre escuro */

  /* ---- Ember: a faísca (uso pontual) ---- */
  --ember:        #C2552C;
  --ember-2:      #D9693B;

  /* ---- Tema escuro global (re-skin premium) ---- */
  --night:        #080c0a;   /* fundo base de todas as seções */
  --night-2:      #050806;   /* footer, mais profundo */
  --cream:        #e8e4d8;   /* texto principal sobre escuro */
  --cream-dim:    rgba(232, 228, 216, 0.55);  /* texto secundário */
  --cream-faint:  rgba(232, 228, 216, 0.3);   /* metadados / números */
  --accent:       #c4602a;   /* acento terracota */
  --moss-soft:    #6b8c6e;   /* verde suave p/ tags */
  --hair:         rgba(255, 255, 255, 0.07);  /* fio sobre escuro */
  --glass:        rgba(255, 255, 255, 0.04);  /* superfície glass */
  --glass-line:   rgba(255, 255, 255, 0.09);  /* borda glass */
  --glass-sh:     0 8px 32px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.06);

  /* ---- Tipografia ---- */
  --font-serif: 'Fraunces', 'Georgia', 'Times New Roman', serif;
  --font-deco:  'Gloock', 'Fraunces', 'Georgia', serif;
  --font-sans:  'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  /* títulos das seções: sans moderna, elegante e de alta legibilidade
     (Fraunces fica reservada exclusivamente ao título da Hero) */
  --font-display: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono:  ui-monospace, 'SF Mono', 'Cascadia Mono', 'Segoe UI Mono', 'Roboto Mono', Menlo, Consolas, monospace;

  /* ---- Layout ---- */
  --maxw:       1240px;
  --maxw-text:  1140px;
  --pad:        clamp(1.25rem, 4vw, 2.5rem);
  --section-py: clamp(5.5rem, 11vw, 9.5rem);

  /* ---- Raio (editorial: cantos quase retos) ---- */
  --r-xs: 3px;
  --r:    6px;
  --r-lg: 14px;

  /* ---- Sombra: difusa, baixa, quente ---- */
  --sh-1: 0 1px 2px rgba(24,22,17,0.05);
  --sh-2: 0 6px 18px -8px rgba(24,22,17,0.16);
  --sh-3: 0 18px 48px -16px rgba(24,22,17,0.24);
  --sh-dark: 0 40px 80px -30px rgba(0,0,0,0.7);

  /* ---- Movimento ---- */
  --e-out:    cubic-bezier(0.22, 1, 0.36, 1);
  --e-inout:  cubic-bezier(0.65, 0, 0.35, 1);
  --e-spring: cubic-bezier(0.34, 1.4, 0.64, 1);
  --t-xs: 0.18s;
  --t:    0.34s;
  --t-lg: 0.6s;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  counter-reset: sec;
}

body {
  font-family: var(--font-sans);
  background: var(--night);
  color: var(--cream);
  font-size: clamp(0.97rem, 0.92rem + 0.2vw, 1.05rem);
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
::selection { background: var(--ember); color: var(--paper-2); }

/* ----- FONT-FACE ----- */
@font-face {
  font-family: 'Fraunces';
  src: url('../fonts/Fraunces/Fraunces-VariableFont_SOFT,WONK,opsz,wght.ttf') format('truetype');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'Fraunces';
  src: url('../fonts/Fraunces/Fraunces-Italic-VariableFont_SOFT,WONK,opsz,wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Manrope';
  src: url('../fonts/Manrope/Manrope-VariableFont_wght.ttf') format('truetype');
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: 'Gloock';
  src: url('../fonts/Gloock/Gloock-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}

/* ----- UTILITÁRIOS ----- */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* Rótulo monoespaçado — assinatura do sistema */
.eyebrow,
.section__tag,
.hero__badge,
.footer__title,
.hero__scroll-text {
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 10001;
  transform: translateZ(0);
  padding: 1.5rem 0;
  transition: padding var(--t) var(--e-inout), background var(--t) var(--e-inout),
              box-shadow var(--t) var(--e-inout), border-color var(--t) var(--e-inout);
  border-bottom: 1px solid transparent;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* sobre o hero escuro */
.header:not(.header--scrolled) { color: var(--paper-2); }
.header:not(.header--scrolled) .nav__link:not(.nav__link--cta) { color: var(--paper-dim); }
.header:not(.header--scrolled) .nav__link:not(.nav__link--cta):hover { color: var(--paper-2); }
.header:not(.header--scrolled) .nav__toggle-bar { background: var(--paper-2); }
.header:not(.header--scrolled) .nav__link--cta {
  border-color: var(--line-dark);
  color: var(--paper-2);
}
.header:not(.header--scrolled) .nav__link--cta:hover {
  background: var(--paper-2);
  color: var(--ink);
  border-color: var(--paper-2);
}

.header--scrolled {
  padding: 0.85rem 0;
  background: rgba(8, 12, 10, 0.85);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-bottom-color: rgba(255, 255, 255, 0.06);
  color: var(--cream);
}

/* Logo — wordmark editorial */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.32rem;
  letter-spacing: -0.01em;
  color: currentColor;
  transition: opacity var(--t-xs);
}
.logo:hover { opacity: 0.7; }
.logo__mark {
  display: inline-flex;
  line-height: 0;
  color: var(--ember);
}
.logo__text { font-feature-settings: 'ss01'; }
.logo__dot { color: var(--ember); }

/* Nav */
.nav__list { display: flex; align-items: center; gap: 2.2rem; }

.nav__link {
  position: relative;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cream-dim);
  padding: 0.4rem 0;
  transition: color var(--t-xs);
}
/* indicador ativo: ponto laranja abaixo do texto */
.nav__link:not(.nav__link--cta)::after {
  content: '';
  position: absolute;
  left: 50%; bottom: -4px;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateX(-50%) scale(0);
  transition: transform var(--t) var(--e-spring);
}
.nav__link:not(.nav__link--cta):hover { color: var(--cream); }
.nav__link:not(.nav__link--cta):hover::after,
.nav__link--active:not(.nav__link--cta)::after { transform: translateX(-50%) scale(1); }
.nav__link--active:not(.nav__link--cta) { color: var(--cream); }

.nav__link--cta {
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--cream);
  background: transparent;
  padding: 0.55rem 1.15rem;
  border-radius: var(--r);
  transition: background var(--t-xs), color var(--t-xs), border-color var(--t-xs);
}
.nav__link--cta:hover { background: var(--cream); color: var(--night); border-color: var(--cream); }

/* Toggle mobile */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.4rem;
  z-index: 1001;
}
.nav__toggle-bar {
  width: 24px; height: 1.5px;
  background: var(--cream);
  transition: transform var(--t), opacity var(--t), background var(--t);
}
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ============================================================
   HERO — Reconstrução premium
   ============================================================ */
.hero {
  --hero-bg: #080c0a;
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding: 9rem 0 2.5rem;
  overflow: hidden;
  background:
    radial-gradient(80% 60% at 78% 32%, rgba(58,74,62,0.34) 0%, transparent 60%),
    radial-gradient(60% 50% at 12% 78%, rgba(36,48,40,0.5) 0%, transparent 65%),
    var(--hero-bg);
  color: #e8e4d8;
  isolation: isolate;
}

/* ---- Anéis decorativos concêntricos ---- */
.hero__rings {
  position: absolute;
  top: 50%;
  right: -8%;
  width: 60vw;
  height: 60vw;
  max-width: 920px;
  max-height: 920px;
  transform: translateY(-50%);
  background:
    repeating-radial-gradient(circle at center,
      transparent 0,
      transparent 58px,
      rgba(232,228,216,0.045) 58px,
      rgba(232,228,216,0.045) 59px);
  pointer-events: none;
  z-index: 0;
  animation: ringDrift 30s ease-in-out infinite alternate;
}

/* ---- Esferas glossy flutuantes ---- */
.hero__spheres {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.sphere {
  position: absolute;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%,
      rgba(232,228,216,0.55) 0%,
      rgba(118,137,95,0.35) 22%,
      rgba(36,48,40,0.95) 60%,
      #0a0f0c 100%);
  box-shadow:
    inset 0 1px 3px rgba(255,255,255,0.25),
    0 14px 34px rgba(0,0,0,0.55);
  will-change: transform;
}
.sphere--1 { width: 22px; height: 22px; top: 24%; left: 50%;  animation: sphereFloat 11s ease-in-out infinite; }
.sphere--2 { width: 13px; height: 13px; top: 68%; left: 60%;  animation: sphereFloat 14s ease-in-out 1.5s infinite reverse; }
.sphere--3 { width: 34px; height: 34px; top: 78%; left: 84%;  animation: sphereFloat 16s ease-in-out 0.6s infinite; }
.sphere--4 { width: 9px;  height: 9px;  top: 16%; left: 88%;  animation: sphereFloat 9s  ease-in-out 0.9s infinite; }
.sphere--5 { width: 17px; height: 17px; top: 44%; left: 70%;  animation: sphereFloat 13s ease-in-out 2.2s infinite reverse; }

/* Layout 2 colunas */
.hero__inner {
  display: grid;
  grid-template-columns: 44fr 56fr;
  align-items: center;
  gap: clamp(2.5rem, 5vw, 5rem);
  position: relative;
  z-index: 2;
  flex: 1;
}

/* ---- Lado do conteúdo ---- */
.hero__content {
  display: flex;
  flex-direction: column;
  max-width: 34rem;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--moss-2);
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: rise 0.9s var(--e-out) 0.1s forwards;
}
.hero__badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--moss-2);
  box-shadow: 0 0 0 0 rgba(118,137,95,0.7);
  animation: pulse 2.6s ease-in-out infinite;
}

.hero__title {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(3.4rem, 7vw, 5.8rem);
  line-height: 0.94;
  letter-spacing: -0.03em;
  color: #f2eee2;
  margin-bottom: 2rem;
  font-variation-settings: 'opsz' 144, 'SOFT' 0, 'WONK' 0;
  opacity: 0;
  animation: rise 0.9s var(--e-out) 0.2s forwards;
}
.hero__title-accent {
  font-style: italic;
  font-weight: 340;
  color: #f2eee2;
  position: relative;
  display: inline-block;
}
.hero__title-accent::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0.06em;
  height: 0.055em;
  background: var(--ember);
  transform: scaleX(0);
  transform-origin: left;
  animation: drawLine 0.7s var(--e-out) 1.1s forwards;
}

.hero__subtitle {
  font-size: 1rem;
  line-height: 1.78;
  color: var(--paper-dim);
  max-width: 30rem;
  margin-bottom: 2.8rem;
  opacity: 0;
  animation: rise 0.9s var(--e-out) 0.32s forwards;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  opacity: 0;
  animation: rise 0.9s var(--e-out) 0.44s forwards;
}

/* ---- Lado visual: tablets em perspectiva 3D ---- */
.hero__showcase {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1600px;
  min-height: 460px;
  opacity: 0;
  animation: heroVisualIn 1.2s var(--e-out) 0.5s forwards;
}

.hero__tablets {
  position: relative;
  width: 100%;
  max-width: 540px;
  height: 460px;
  transform-style: preserve-3d;
  transition: transform 0.5s var(--e-out);
  will-change: transform;
}

/* Cada tablet */
.tablet {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 224px;
  aspect-ratio: 3 / 4;
  border-radius: 18px;
  padding: 10px;
  background: linear-gradient(150deg, #2a322c 0%, #161c18 100%);
  box-shadow:
    inset 0 0 0 1px rgba(232,228,216,0.08),
    0 30px 60px rgba(0,0,0,0.55);
  overflow: hidden;
  transition: transform 0.6s var(--e-out), box-shadow 0.6s var(--e-out);
  will-change: transform;
}
.tablet img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  border-radius: 9px;
  display: block;
}
/* tablet de trás à esquerda */
.tablet--left {
  transform: translate(-50%, -50%) translateX(-128px) rotateY(20deg) rotateZ(-5deg) scale(0.86);
  z-index: 1;
  filter: brightness(0.72);
}
/* tablet de trás à direita */
.tablet--right {
  transform: translate(-50%, -50%) translateX(128px) rotateY(-20deg) rotateZ(5deg) scale(0.86);
  z-index: 1;
  filter: brightness(0.72);
}
/* tablet central em destaque */
.tablet--center {
  transform: translate(-50%, -50%) scale(0.92);
  z-index: 3;
  width: 236px;
  box-shadow:
    inset 0 0 0 1px rgba(232,228,216,0.12),
    0 40px 80px rgba(0,0,0,0.6);
}

/* Labels flutuantes com linha pontilhada */
.hero__label {
  position: absolute;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.56rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(232,228,216,0.78);
  background: rgba(12,18,14,0.62);
  border: 1px solid rgba(232,228,216,0.1);
  border-radius: 999px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  white-space: nowrap;
  animation: labelPulse 4s ease-in-out infinite;
}
.hero__label-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--moss-2);
  flex-shrink: 0;
}
/* linha pontilhada conectando ao centro */
.hero__label::after {
  content: '';
  position: absolute;
  width: 46px;
  border-top: 1px dashed rgba(232,228,216,0.22);
}
.hero__label--tl { top: 8%;  left: -2%;  }
.hero__label--tl::after { right: -42px; top: 50%; }
.hero__label--tr { top: 8%;  right: -2%; animation-delay: 1s; }
.hero__label--tr::after { left: -42px; top: 50%; }
.hero__label--bl { bottom: 10%; left: 0; animation-delay: 1.6s; }
.hero__label--bl::after { right: -42px; top: 50%; }
.hero__label--br { bottom: 10%; right: 0; animation-delay: 0.6s; }
.hero__label--br::after { left: -42px; top: 50%; }

/* ---- Barra de features ---- */
.hero__features {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
.feature {
  padding: 1.6rem 1.5rem;
  background: rgba(232,228,216,0.03);
  border: 1px solid rgba(232,228,216,0.08);
  border-radius: var(--r-lg);
  transition: transform var(--t) var(--e-out), border-color var(--t), background var(--t);
}
.feature:hover {
  transform: translateY(-4px);
  border-color: rgba(118,137,95,0.4);
  background: rgba(232,228,216,0.05);
}
.feature__icon {
  display: inline-flex;
  width: 38px; height: 38px;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
  border-radius: 10px;
  background: rgba(118,137,95,0.12);
  color: var(--moss-2);
}
.feature__icon svg { width: 20px; height: 20px; }
.feature__title {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #e8e4d8;
  margin-bottom: 0.55rem;
}
.feature__text {
  font-size: 0.86rem;
  line-height: 1.6;
  color: var(--paper-dim);
}

/* ---- Indicador de scroll ---- */
.hero__scroll {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  align-self: center;
  margin-top: clamp(2rem, 4vw, 3rem);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--paper-dim);
  transition: color var(--t);
  opacity: 0;
  animation: fade 1.2s 1.9s forwards;
}
.hero__scroll:hover { color: #e8e4d8; }
.hero__scroll-icon {
  display: inline-flex;
  color: var(--moss-2);
  animation: scrollBob 2.2s ease-in-out infinite;
}
.hero__scroll-icon svg { width: 22px; height: 22px; }

/* ============================================================
   SEÇÕES
   ============================================================ */
.section {
  position: relative;
  padding: clamp(5rem, 10vw, 100px) 0;
  counter-increment: sec;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 60% 50%, rgba(40,60,35,0.25) 0%, transparent 70%),
    var(--night);
  color: var(--cream);
}
.section--alt,
.section--dark { background:
    radial-gradient(ellipse at 60% 50%, rgba(40,60,35,0.25) 0%, transparent 70%),
    var(--night); }

/* a CTA mantém glow próprio (definido abaixo) */
.cta { background: var(--night); color: var(--cream); }

/* conteúdo acima das esferas decorativas */
.section > .container { position: relative; z-index: 1; }

/* fio separador sutil entre seções */
.section + .section::before {
  content: '';
  position: absolute;
  top: 0; left: var(--pad); right: var(--pad);
  height: 1px;
  background: var(--hair);
  z-index: 1;
}

/* Masthead editorial: índice + título à esquerda, descrição embaixo à direita */
.section__header {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: end;
  column-gap: clamp(2rem, 5vw, 5rem);
  row-gap: 1.4rem;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}
.section__tag {
  grid-column: 1;
  align-self: start;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.7rem;
  color: var(--accent);
}
.section__tag::before {
  content: counter(sec, decimal-leading-zero);
  font-family: var(--font-mono);
  color: var(--cream-faint);
  letter-spacing: 0.05em;
}
#portfolio .section__tag,
.cta .section__tag { color: var(--moss-soft); }
#portfolio .section__tag::before { color: var(--cream-faint); }

.section__title {
  grid-column: 1;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4.6vw, 3.3rem);
  line-height: 1.06;
  letter-spacing: -0.035em;
  color: #f4f0e6;
  text-wrap: balance;
}
#portfolio .section__title { color: #f4f0e6; }

.section__desc {
  grid-column: 2;
  align-self: end;
  max-width: 30rem;
  font-size: 1.02rem;
  line-height: 1.75;
  color: var(--cream-dim);
}
.section__desc strong { color: var(--cream); font-weight: 600; }
#portfolio .section__desc { color: var(--cream-dim); }

.section__action {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: clamp(3rem, 6vw, 4.5rem);
}

/* ============================================================
   NOSSA PROPOSTA
   ============================================================ */
.proposta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 7vw, 7rem);
  align-items: start;
}

.proposta__body {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.proposta__lead {
  font-size: 1.08rem;
  line-height: 1.8;
  color: var(--cream);
  font-weight: 500;
  letter-spacing: -0.01em;
}

.proposta__body p {
  font-size: 0.97rem;
  line-height: 1.82;
  color: var(--cream-dim);
}

.proposta__closing {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.12rem !important;
  font-weight: 340;
  line-height: 1.65 !important;
  color: var(--cream) !important;
  letter-spacing: -0.015em;
  font-variation-settings: 'opsz' 72, 'SOFT' 20, 'WONK' 0;
  border-top: 1px solid var(--hair);
  padding-top: 1.6rem;
  margin-top: 0.4rem;
}

.proposta__visual {
  position: sticky;
  top: 8rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.proposta__image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--r-lg);
  border: 1px solid var(--glass-line);
  box-shadow:
    0 8px 32px rgba(0,0,0,0.35),
    0 30px 70px rgba(0,0,0,0.45);
}

.proposta__caption {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream-faint);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  align-self: flex-end;
}
.proposta__caption::before {
  content: '';
  width: 20px;
  height: 1px;
  background: var(--hair);
}

/* ============================================================
   CARDS (Sobre) — células editoriais numeradas
   ============================================================ */
.grid { display: grid; gap: 0; counter-reset: card; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

.card {
  position: relative;
  counter-increment: card;
  padding: 2.6rem 2rem 2.4rem;
  border-top: 1px solid var(--line-2);
  border-left: 1px solid var(--line);
  transition: background var(--t) var(--e-out);
}
.grid--3 .card:last-child { border-right: 1px solid var(--line); }
.card::before {
  content: counter(card, decimal-leading-zero);
  position: absolute;
  top: 2.6rem; right: 2rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
}
/* fio-acento que cresce do topo no hover */
.card::after {
  content: '';
  position: absolute;
  top: -1px; left: -1px;
  height: 2px; width: 0;
  background: var(--ember);
  transition: width var(--t-lg) var(--e-out);
}
.card:hover { background: var(--paper-2); }
.section--alt .card:hover { background: var(--paper); }
.card:hover::after { width: calc(100% + 2px); }

.card__icon {
  width: 38px; height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--moss);
  margin-bottom: 5.5rem;
  transition: transform var(--t) var(--e-spring), color var(--t-xs);
}
.card__icon svg { width: 30px; height: 30px; stroke-width: 1.4; }
.card:hover .card__icon { color: var(--ember); transform: translateY(-2px); }

.card__title {
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 1.28rem;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: 0.7rem;
}
.card__text {
  font-size: 0.95rem;
  line-height: 1.72;
  color: var(--ink-soft);
  max-width: 26rem;
}

/* ============================================================
   PROJETOS (Entregáveis) — 2 colunas + cards glass
   ============================================================ */
.projetos {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}

/* ---- Coluna esquerda: intro + mockup ---- */
.projetos__tag {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cream-dim);
}
.projetos__tag::before {
  content: '•';
  color: var(--accent);
  margin-right: 0.6rem;
  font-size: 1.1em;
}

.projetos__headline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4.6vw, 3.3rem);
  line-height: 1.06;
  letter-spacing: -0.035em;
  color: #f4f0e6;
  margin: 1.1rem 0 0;
  text-wrap: balance;
}

/* ---- Mockup 3D de livro com anel e esferas ---- */
.mockup {
  position: relative;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1200px;
}
.mockup__ring {
  position: absolute;
  top: 50%; left: 50%;
  width: 300px; height: 300px;
  transform: translate(-50%, -50%) rotateX(74deg);
  border: 1px solid rgba(196,96,42,0.3);
  border-radius: 50%;
  box-shadow: 0 0 40px rgba(196,96,42,0.12);
}
.mockup__tablet {
  position: relative;
  max-width: 270px;
  padding: 8px;
  border-radius: 16px;
  background: linear-gradient(150deg, #2a322c 0%, #141915 100%);
  /* scaleX estreita só um pouco a largura, preservando a altura (desktop + mobile) */
  transform: rotateY(-16deg) rotateX(6deg) scaleX(0.94);
  box-shadow:
    -12px 20px 44px rgba(0,0,0,0.55),
    0 34px 70px rgba(0,0,0,0.42),
    inset 0 0 0 1px rgba(255,255,255,0.08);
  animation: float 8s ease-in-out infinite;
}
/* câmera frontal */
.mockup__tablet::before {
  content: '';
  position: absolute;
  top: 3px; left: 50%;
  transform: translateX(-50%);
  width: 3px; height: 3px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
}
.mockup__tablet img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
}

/* ---- Coluna direita: grid de cards glass ---- */
.projetos__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.gcard {
  position: relative;
  padding: 1.6rem 1.5rem 1.5rem;
  background: var(--glass);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-line);
  border-radius: 16px;
  box-shadow: var(--glass-sh);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.gcard:hover {
  transform: translateY(-5px);
  border-color: rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.055);
}

.gcard__top {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.1rem;
}
.gcard__icon {
  flex-shrink: 0;
  width: 52px; height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50%;
  color: var(--moss-soft);
  transition: color 0.25s ease, border-color 0.25s ease;
}
.gcard__icon svg { width: 21px; height: 21px; }
.gcard:hover .gcard__icon { color: var(--accent); border-color: rgba(196,96,42,0.4); }
.gcard__num {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--cream-faint);
}
.gcard__title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--cream);
  margin-bottom: 0.5rem;
}
.gcard__text {
  font-size: 13px;
  line-height: 1.65;
  color: var(--cream-dim);
}
.gcard__line {
  display: block;
  width: 32px; height: 1px;
  background: rgba(255,255,255,0.15);
  margin-top: 1.2rem;
}

/* ---- Card destaque full-width ---- */
.gcard--feature {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 1rem;
  padding: 1.8rem 2rem;
}
.gcard__icon--lg {
  width: 60px; height: 60px;
  border-radius: 16px;
}
.gcard__icon--lg svg { width: 26px; height: 26px; }
.gcard--feature .gcard__title { margin-bottom: 0.3rem; }
.gcard__feature-body { min-width: 0; }

/* ============================================================
   PROCESSO — linha do tempo horizontal com cards alternados
   ============================================================ */
.proc {
  position: relative;
  margin-top: clamp(1.5rem, 4vw, 3rem);
}

/* linha conectora central */
.proc__line {
  position: absolute;
  top: 50%; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.12), transparent);
}

.proc__track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  list-style: none;
}

/* cada etapa: 3 linhas (card acima | nó | card abaixo) */
.proc__step {
  position: relative;
  display: grid;
  grid-template-rows: 1fr auto 1fr;
  align-items: center;
  justify-items: center;
  min-height: 340px;
}

/* círculo numerado sobre a linha */
.proc__node {
  grid-row: 2;
  position: relative;
  z-index: 2;
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(8,12,10,0.9);
  border: 1px solid rgba(255,255,255,0.12);
  transition: border-color 0.25s ease;
}
.proc__num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--cream);
}
.proc__step:hover .proc__node { border-color: rgba(196,96,42,0.5); }

/* ponto de conexão laranja — na borda do nó, voltado ao card */
.proc__dot {
  position: absolute;
  left: 50%;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(196,96,42,0.7);
  z-index: 3;
}
.proc__step:nth-child(odd)  .proc__dot { top: calc(50% + 22px); transform: translate(-50%, -50%); }
.proc__step:nth-child(even) .proc__dot { top: calc(50% - 22px); transform: translate(-50%, -50%); }

/* card glass: ímpares abaixo, pares acima */
.proc__card {
  position: relative;
  width: 100%;
  padding: 1.4rem 1.3rem;
  background: var(--glass);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-line);
  border-radius: 16px;
  box-shadow: var(--glass-sh);
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.proc__step:hover .proc__card { transform: translateY(-4px); border-color: rgba(255,255,255,0.16); }

.proc__step:nth-child(odd)  .proc__card { grid-row: 3; margin-top: 1.4rem; }
.proc__step:nth-child(even) .proc__card { grid-row: 1; margin-bottom: 1.4rem; }

/* haste conectando card ao nó */
.proc__card::after {
  content: '';
  position: absolute;
  left: 50%;
  width: 1px;
  height: 1.4rem;
  background: rgba(255,255,255,0.14);
}
.proc__step:nth-child(odd)  .proc__card::after { top: -1.4rem; }
.proc__step:nth-child(even) .proc__card::after { bottom: -1.4rem; }

.proc__title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: -0.02em;
  color: var(--cream);
  margin-bottom: 0.5rem;
}
.proc__icon { display: inline-flex; color: var(--moss-soft); flex-shrink: 0; }
.proc__icon svg { width: 17px; height: 17px; }
.proc__text {
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--cream-dim);
}

/* ============================================================
   PORTFÓLIO — pilha horizontal de capas
   ============================================================ */

/* Constantes usadas pelo JS:
   COVER_W = 260 | PEEK = 78 | SHIFT = 182
   Cada card usa CSS vars --tx, --ty, --sc, --zi definidas por JS */

.stack-wrap {
  overflow: hidden;
  padding: 3rem 0 4.5rem;
  /* evita reflow lateral quando cards se expandem */
  mask-image: linear-gradient(to right, transparent 0%, black 4%, black 96%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 4%, black 96%, transparent 100%);
}

.stack-portfolio {
  position: relative;
  /* largura calculada para acomodar toda a pilha sem scroll */
  /* 3 cards × PEEK(78) + COVER_W(260) = 494 — centralizado */
  height: 390px;                /* altura do livro + info */
  max-width: 600px;
  margin: 0 auto;
}

/* ---- cada card ---- */
.stack-card {
  position: absolute;
  top: 0;
  left: 50%;
  width: 260px;
  height: 360px;
  cursor: pointer;
  /* posição e escala vêm do JS via CSS vars */
  transform: translate3d(calc(var(--tx, 0px) - 50%), var(--ty, 0px), 0) scale(var(--sc, 1));
  z-index: var(--zi, 1);
  will-change: transform;
  backface-visibility: hidden;
  transition:
    transform 580ms cubic-bezier(0.16, 1, 0.3, 1),
    z-index   0ms linear 580ms;   /* z-index só muda após a animação */
}

/* ---- livro (face + lombada + brilho) ---- */
.stack-card__book {
  position: relative;
  width: 100%;
  height: 100%;
  background: var(--cover-color, var(--pine-2));
  border-radius: 3px 8px 8px 3px;
  box-shadow:
    0 2px 6px rgba(0,0,0,.30),
    0 16px 48px rgba(0,0,0,.50),
    0 40px 80px rgba(0,0,0,.30);
  transition: box-shadow 580ms cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

/* imagem de capa */
.stack-card__cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  z-index: 1;
  display: block;
}

/* lombada escura na esquerda */
.stack-card__spine {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 18px;
  background: linear-gradient(90deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.18) 55%, rgba(0,0,0,0) 100%);
  border-right: 1px solid rgba(0,0,0,0.25);
  z-index: 2;
  pointer-events: none;
}

/* reflexo de luz na capa */
.stack-card__shine {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      145deg,
      rgba(255,255,255,0.14) 0%,
      rgba(255,255,255,0.03) 35%,
      transparent 60%,
      rgba(0,0,0,0.12) 100%
    );
  z-index: 3;
  pointer-events: none;
  transition: opacity 400ms ease;
}

/* ícone centralizado */
.stack-card__icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 4;
  color: rgba(255,255,255,0.55);
  width: 52px; height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 300ms ease, transform 580ms cubic-bezier(0.16, 1, 0.3, 1);
}
.stack-card__icon svg { width: 52px; height: 52px; }

/* info visível apenas no card ativo */
.stack-card__info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 1.4rem 1.2rem 1.4rem 1.6rem;
  background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, transparent 100%);
  z-index: 5;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 380ms ease, transform 500ms cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}
.stack-card__genre {
  display: block;
  font-family: var(--font-body);
  font-size: 0.62rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 0.35rem;
}
.stack-card__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: rgba(255,255,255,0.95);
  line-height: 1.25;
  text-transform: uppercase;
}

/* ---- estado ativo (hover / foco) ---- */
.stack-card.is-active .stack-card__info {
  opacity: 1;
  transform: translateY(0);
}
.stack-card.is-active .stack-card__icon {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.85);
}
.stack-card.is-active .stack-card__book {
  box-shadow:
    0 4px 10px rgba(0,0,0,.28),
    0 28px 70px rgba(0,0,0,.55),
    0 60px 100px rgba(0,0,0,.30),
    0 0 0 1px rgba(255,255,255,0.07);
}

/* ---- responsive — scroll horizontal em smartphones ---- */
@media (max-width: 768px) {
  .stack-wrap {
    mask-image: none;
    -webkit-mask-image: none;
    padding: 1.5rem 0 3rem;
    overflow-x: auto;
    overflow-y: visible;
    /* scroll suave com snap */
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .stack-portfolio {
    /* deixa o flex cuidar do layout — anula o JS */
    display: flex;
    flex-direction: row;
    gap: 1rem;
    height: auto;
    width: max-content;
    padding: 0 1.5rem;
    margin: 0;
  }

  .stack-card {
    /* cancela o position absolute e os transforms do JS */
    position: relative !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    z-index: auto !important;
    flex-shrink: 0;
    width: 190px;
    height: 268px;
    scroll-snap-align: center;
    cursor: pointer;
  }

  /* info sempre visível no mobile (sem hover) */
  .stack-card__info {
    opacity: 1;
    transform: translateY(0);
  }
  .stack-card__icon { display: none; }
}

/* ============================================================
   DEPOIMENTOS
   ============================================================ */
.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line-2);
}
.testimonial {
  position: relative;
  padding: 2.6rem 2rem;
  border-bottom: 1px solid var(--line);
  transition: background var(--t) var(--e-out);
}
.testimonial:not(:last-child) { border-right: 1px solid var(--line); }
.testimonial::before {
  content: '\201C';
  position: absolute;
  top: 1.2rem; left: 1.8rem;
  font-family: var(--font-deco);
  font-size: 3.4rem;
  line-height: 1;
  color: var(--ember);
  opacity: 0.28;
}
.testimonial:hover { background: var(--paper-2); }
.section--alt .testimonial:hover { background: var(--paper); }

.testimonial__text {
  position: relative;
  font-family: var(--font-display);
  font-weight: 450;
  font-size: 1.02rem;
  line-height: 1.65;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 1.6rem 0 2rem;
}
.testimonial__author {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
}
.testimonial__avatar {
  width: 42px; height: 42px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: transparent !important;
  border: 1px solid var(--line-2);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--ink);
}
.testimonial__name {
  display: block;
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 650;
  font-size: 1.02rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.2;
}
.testimonial__role {
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
}

/* ============================================================
   FAQ
   ============================================================ */
.faq {
  max-width: 56rem;
  margin: 0 auto;
  counter-reset: faq;
}
.faq__item {
  counter-increment: faq;
  border-bottom: 1px solid var(--hair);
  border-radius: 8px;
  padding: 0 1rem;
  transition: background 0.25s ease;
}
.faq__item:has(.faq__question[aria-expanded="true"]) {
  background: rgba(255,255,255,0.03);
}
.faq__question {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.4rem;
  padding: 1.6rem 0;
  text-align: left;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  letter-spacing: -0.025em;
  color: var(--cream);
  transition: color var(--t-xs);
}
.faq__question::before {
  content: counter(faq, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--cream-faint);
  transition: color var(--t-xs);
}
.faq__question:hover { color: #fff; }
.faq__question:hover::before { color: var(--accent); }
.faq__question[aria-expanded="true"]::before { color: var(--accent); }

.faq__icon {
  display: inline-flex;
  color: var(--accent);
  transition: transform var(--t) var(--e-spring), color var(--t-xs);
}
.faq__question[aria-expanded="true"] .faq__icon { transform: rotate(135deg); color: var(--accent); }

.faq__answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height var(--t-lg) var(--e-out);
}
.faq__question[aria-expanded="true"] + .faq__answer { max-height: 24rem; }
.faq__answer p {
  padding: 0 0 1.6rem 3rem;
  max-width: 44rem;
  font-size: 0.98rem;
  line-height: 1.75;
  color: var(--cream-dim);
}

/* ============================================================
   CTA (banda escura)
   ============================================================ */
.cta { text-align: center; position: relative; overflow: hidden; }
.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 60% at 50% 0%, rgba(94,110,79,0.22) 0%, transparent 60%);
  pointer-events: none;
}
.cta__inner { position: relative; max-width: 44rem; margin: 0 auto; }
.cta__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
  line-height: 1.07;
  letter-spacing: -0.035em;
  color: var(--paper-2);
  margin-bottom: 1.5rem;
  text-wrap: balance;
}
.cta__text {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--paper-dim);
  max-width: 34rem;
  margin: 0 auto 2.6rem;
}

/* ============================================================
   BOTÕES
   ============================================================ */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.95rem 1.6rem;
  border-radius: var(--r);
  border: 1px solid transparent;
  white-space: nowrap;
  overflow: hidden;
  transition: transform var(--t) var(--e-spring), background var(--t-xs),
              color var(--t-xs), border-color var(--t-xs), box-shadow var(--t);
  will-change: transform;
}
.btn:active { transform: scale(0.98); }

/* primário: claro sobre o fundo escuro do site inteiro */
.btn--primary {
  color: var(--night);
  background: var(--cream);
  box-shadow: var(--sh-dark);
}
.btn--primary:hover {
  transform: translateY(-2px);
  opacity: 0.88;
}

/* secundário e outline: contorno claro translúcido */
.btn--secondary, .btn--outline {
  background: transparent;
  color: var(--cream);
  border-color: rgba(255, 255, 255, 0.2);
}
.btn--secondary:hover, .btn--outline:hover {
  border-color: var(--cream);
  background: rgba(232, 228, 216, 0.06);
  transform: translateY(-2px);
}

.btn--large { padding: 1.1rem 2rem; font-size: 0.78rem; }

.btn__arrow {
  position: relative;
  z-index: 1;
  width: 15px; height: 15px;
  transition: transform var(--t) var(--e-out);
}
.btn:hover .btn__arrow { transform: translateX(5px); }
.btn--whatsapp svg { position: relative; z-index: 1; flex-shrink: 0; }

/* ============================================================
   FOOTER — colophon
   ============================================================ */
.footer {
  position: relative;
  background: var(--night-2);
  color: rgba(232, 228, 216, 0.35);
  padding: clamp(4rem, 8vw, 6.5rem) 0 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 2fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  padding-bottom: 3.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.footer__brand .logo {
  font-size: 2rem;
  color: var(--paper-2);
  margin-bottom: 1.1rem;
}
.footer__brand .logo__mark, .footer__brand .logo__dot { color: var(--ember); }
.footer__desc {
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 22rem;
  color: var(--paper-dim);
}
.footer__links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.footer__title {
  font-size: 0.64rem;
  color: var(--moss-2);
  margin-bottom: 1.3rem;
}
.footer__col ul { display: flex; flex-direction: column; gap: 0.7rem; }
.footer__col a {
  display: inline-flex;
  font-size: 0.88rem;
  color: var(--paper-dim);
  transition: color var(--t-xs);
}
.footer__col a:hover { color: var(--ember-2); }
.footer__col--icons a { align-items: center; gap: 0.55rem; }
.footer__icon { width: 15px; height: 15px; flex-shrink: 0; color: var(--moss-2); transition: color var(--t-xs); }
.footer__col--icons a:hover .footer__icon { color: var(--ember-2); }

.footer__bottom {
  padding-top: 1.8rem;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(232, 228, 216, 0.35);
  text-align: center;
}

/* ============================================================
   ANIMAÇÕES
   ============================================================ */
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes drawLine { to { transform: scaleX(1); } }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes floatShadow { 0%,100% { opacity: 0.6; transform: translateX(-50%) scaleX(1); } 50% { opacity: 0.34; transform: translateX(-50%) scaleX(0.85); } }
@keyframes breathe { 0%,100% { opacity: 0.85; } 50% { opacity: 1; } }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(118,137,95,0.5); }
  70% { box-shadow: 0 0 0 7px rgba(118,137,95,0); }
  100% { box-shadow: 0 0 0 0 rgba(118,137,95,0); }
}
@keyframes scrollPulse { 0%,100% { opacity: 0.25; transform: scaleY(0.5); } 50% { opacity: 0.8; transform: scaleY(1); } }
@keyframes heroVisualIn { from { opacity: 0; transform: translateX(36px); } to { opacity: 1; transform: translateX(0); } }
@keyframes sphereFloat { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-10px,-16px); } }
@keyframes labelPulse { 0%,100% { opacity: 0.6; } 50% { opacity: 1; } }
@keyframes ringDrift { from { transform: translateY(-50%) rotate(0deg); } to { transform: translateY(-50%) rotate(8deg); } }
@keyframes scrollBob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(4px); } }

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--e-out) var(--stagger-delay, 0ms),
              transform 0.7s var(--e-out) var(--stagger-delay, 0ms);
}
.reveal--visible { opacity: 1; transform: none; }

/* ============================================================
   ESFERAS DECORATIVAS METÁLICAS — espalhadas nas seções
   ============================================================ */
.section-orbs {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.orb {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #4a5a4e, #1a1f1b);
  box-shadow:
    inset -3px -3px 8px rgba(0,0,0,0.6),
    inset 2px 2px 5px rgba(255,255,255,0.07),
    0 12px 30px rgba(0,0,0,0.4);
  will-change: transform;
}
/* posições + durações variadas dentro de cada seção */
.orb--1 { width: 26px; height: 26px; top: 18%;  left: 8%;   animation: orbFloat 12s ease-in-out infinite; }
.orb--2 { width: 14px; height: 14px; top: 70%;  left: 16%;  animation: orbFloat 9s  ease-in-out 1.2s infinite reverse; }
.orb--3 { width: 40px; height: 40px; top: 60%;  right: 7%;  left: auto; animation: orbFloat 16s ease-in-out 0.6s infinite; }

/* esferas do mockup (coluna esquerda de Projetos) */
.orb--m1 { width: 18px; height: 18px; top: 12%; right: 14%; animation: orbFloat 10s ease-in-out infinite; }
.orb--m2 { width: 11px; height: 11px; bottom: 16%; left: 12%; animation: orbFloat 13s ease-in-out 0.8s infinite reverse; }

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0); }
  33%      { transform: translate(8px, -14px); }
  66%      { transform: translate(-6px, 10px); }
}

/* ============================================================
   RESPONSIVO
   ============================================================ */
@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; gap: 3rem; }
  .hero__content { max-width: 100%; }
  .hero__showcase { order: -1; min-height: 400px; }
  .hero__features { grid-template-columns: repeat(2, 1fr); }

  .section__header { grid-template-columns: 1fr; align-items: start; }
  .section__tag, .section__title, .section__desc { grid-column: 1; }
  .section__desc { align-self: start; max-width: 38rem; }

  .grid--3 { grid-template-columns: 1fr 1fr; }
  .grid--3 .card:nth-child(2) { border-right: 1px solid var(--line); }
  .grid--3 .card:last-child { grid-column: 1 / -1; }

  .proposta { grid-template-columns: 1fr; gap: 2.5rem; }
  .proposta__visual { position: static; }

  /* Projetos: empilha intro acima do grid */
  .projetos { grid-template-columns: 1fr; gap: 2.5rem; }
  .mockup { height: 260px; }

  /* Processo: linha do tempo vertical */
  .proc__line {
    top: 0; bottom: 0; left: 22px; right: auto;
    width: 1px; height: auto;
    background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.12) 12%, rgba(255,255,255,0.12) 88%, transparent);
  }
  .proc__track { grid-template-columns: 1fr; gap: 2rem; }
  .proc__step {
    grid-template-rows: none;
    grid-template-columns: 44px 1fr;
    align-items: start;
    justify-items: stretch;
    min-height: 0;
    gap: 1.3rem;
  }
  .proc__node { grid-row: 1; grid-column: 1; }
  .proc__card {
    grid-row: 1 !important;
    grid-column: 2;
    margin: 0 !important;
  }
  .proc__card::after { display: none; }
  .proc__dot { display: none; }
}

@media (max-width: 720px) {
  .nav__toggle {
    display: flex;
    position: fixed;
    top: 1.1rem;
    right: clamp(1.25rem, 4vw, 2.5rem);
    z-index: 10002;
  }

  .nav__list {
    position: fixed;
    inset: 0;
    background: #080c0a;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 5.5rem 2rem 3rem;
    gap: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    opacity: 0;
    transform: translateY(-14px);
    pointer-events: none;
    transition: opacity 300ms var(--e-out), transform 300ms var(--e-out);
    z-index: 9999;
    counter-reset: nav-item;
  }

  .nav__list--open { opacity: 1; transform: translateY(0); pointer-events: all; }

  .nav__list li { width: 100%; }
  .nav__list li:not(:last-child) {
    border-bottom: 1px solid rgba(232,228,216,0.07);
    counter-increment: nav-item;
  }

  .nav__link:not(.nav__link--cta) {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    width: 100%;
    padding: 1.2rem 0;
    color: var(--cream) !important;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-align: left;
  }

  .nav__link:not(.nav__link--cta)::before {
    content: counter(nav-item, decimal-leading-zero);
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.06em;
    color: var(--ember);
    flex-shrink: 0;
    margin-top: 0.2em;
  }

  /* remove sublinhado decorativo do desktop */
  .nav__link:not(.nav__link--cta)::after { display: none; }

  .nav__list li:last-child {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(232,228,216,0.07);
    display: flex;
    justify-content: center;
  }

  .nav__link--cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 1rem 2rem;
    background: var(--cream) !important;
    color: var(--night) !important;
    border-color: var(--cream) !important;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: var(--r);
    margin-top: 0;
  }

  .grid--3 { grid-template-columns: 1fr; }
  .grid--3 .card { border-right: 1px solid var(--line) !important; }
  .grid--3 .card:last-child { grid-column: 1; }
  .card__icon { margin-bottom: 3rem; }

  /* Projetos: cards em coluna única */
  .projetos__grid { grid-template-columns: 1fr; }
  .gcard--feature { flex-direction: column; align-items: flex-start; gap: 1rem; text-align: left; }

  .portfolio { grid-template-columns: 1fr; max-width: 22rem; margin: 0 auto; }

  /* Hero mobile: tablets menores, labels e features adaptados */
  .hero__features { grid-template-columns: 1fr; }
  /* no smartphone, os tablets vão para baixo do título/subtítulo/botões
     (anula o order:-1 definido no breakpoint de tablet ≤1024px) */
  .hero__showcase { order: 0; min-height: 360px; }
  .tablet { width: 180px; }
  .tablet--center { width: 190px; }
  .tablet--left  { transform: translate(-50%, -50%) translateX(-96px) rotateY(20deg) rotateZ(-5deg) scale(0.84); }
  .tablet--right { transform: translate(-50%, -50%) translateX(96px) rotateY(-20deg) rotateZ(5deg) scale(0.84); }
  .hero__label { font-size: 0.5rem; padding: 0.4rem 0.7rem; }
  .hero__label::after { display: none; }
  .hero__rings { display: none; }

  .footer__inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer__links { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   MOBILE — destaque dinâmico ao rolar ("spotlight")
   Apenas smartphones: o card centralizado na tela ganha ênfase
   em terracota, criando um ponto focal que se move com a rolagem
   e quebra a monotonia das caixas empilhadas. (classe .in-view via JS)
   ============================================================ */
@media (max-width: 720px) {
  .gcard, .proc__card, .feature, .faq__item {
    transition: transform 0.5s var(--e-out), border-color 0.5s var(--e-out),
                background 0.5s var(--e-out), box-shadow 0.5s var(--e-out);
  }

  /* card ativo: leve elevação, borda e barra de acento terracota */
  .gcard.in-view,
  .proc__card.in-view,
  .feature.in-view {
    transform: scale(1.03);
    border-color: rgba(196, 96, 42, 0.55);
    background: rgba(196, 96, 42, 0.05);
    box-shadow:
      inset 3px 0 0 0 var(--accent),
      0 16px 42px rgba(0, 0, 0, 0.5),
      0 0 30px rgba(196, 96, 42, 0.12);
  }

  /* ícones acompanham o realce em terracota */
  .gcard.in-view .gcard__icon {
    color: var(--accent);
    border-color: rgba(196, 96, 42, 0.45);
  }
  .feature.in-view .feature__icon {
    color: var(--accent);
    background: rgba(196, 96, 42, 0.16);
  }
  .proc__card.in-view .proc__icon { color: var(--accent); }

  /* FAQ é uma linha, não uma caixa: realce mais sóbrio */
  .faq__item.in-view {
    background: rgba(196, 96, 42, 0.06);
    box-shadow: inset 3px 0 0 0 var(--accent);
    border-radius: 8px;
  }
}

@media (max-width: 420px) {
  .footer__links { grid-template-columns: 1fr; }
  .hero { padding-top: 7.5rem; }
}

/* ============================================================
   MOVIMENTO REDUZIDO
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .hero__badge, .hero__title, .hero__subtitle, .hero__actions,
  .hero__showcase, .hero__scroll { opacity: 1 !important; }
  .hero__title-accent::after { transform: scaleX(1); }
  .reveal { opacity: 1 !important; transform: none !important; }
  .in-view { transform: none !important; }
}

/* ============================================================
   MODAL PDF VIEWER
   ============================================================ */
.pdf-modal {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pdf-modal[hidden] { display: none; }

.pdf-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 16, 13, 0.88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: modalFadeIn 280ms var(--e-out) both;
}

.pdf-modal__container {
  position: relative;
  z-index: 1;
  width: min(860px, 92vw);
  height: min(90vh, 1100px);
  background: var(--pine-2);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow:
    0 8px 30px rgba(0,0,0,.45),
    0 40px 100px rgba(0,0,0,.55),
    0 0 0 1px rgba(255,255,255,.06);
  animation: modalSlideUp 340ms var(--e-out) both;
}

.pdf-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(20, 32, 26, .7);
  color: var(--paper-2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--t) var(--e-out), border-color var(--t);
}
.pdf-modal__close:hover {
  background: rgba(160, 93, 66, .55);
  border-color: rgba(160, 93, 66, .6);
}

.pdf-modal__frame {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes modalSlideUp {
  from { opacity: 0; transform: translateY(24px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0)    scale(1);    }
}
