/* ==========================================================================
   VÉRTICE PRIVATE CONCIERGE · DESIGN SYSTEM (v3)
   Obsidiana + platina, com seções que se invertem para marfim.
   Display: Cinzel · Itálico editorial: Cormorant Garamond · Texto: Plus Jakarta Sans
   ========================================================================== */

:root {
  /* Obsidiana */
  --bg-obsidian: #060709;
  --bg-surface: #0B0C10;
  --bg-card: #0F1116;
  --bg-card-raised: #14171E;

  /* Platina */
  --silver-bright: #FFFFFF;
  --silver-platina: #F0F2F6;
  --silver-foil: #D8DAE0;
  --silver-dim: #9A9DA7;
  --silver-muted: #82858F;

  /* Marfim (seções invertidas e papel da carta) */
  --ivory: #F2EFE8;
  --paper: #F7F4EC;
  --ink: #121316;
  --ink-soft: #4F4C46;
  --ink-faint: #67635B;
  --ink-line: rgba(18, 19, 22, 0.14);

  /* Madeira / calor */
  --wood-border: rgba(185, 135, 90, 0.25);
  --wood-ivory: #E9D8C8;
  --wood-text: #CABDB1;

  --wa-emerald: #25D366;

  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-card: rgba(255, 255, 255, 0.12);

  --font-serif: 'Cinzel', 'Trajan Pro', Georgia, serif;
  --font-italic: 'Cormorant Garamond', 'Cormorant', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -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);
  --transition-smooth: all 0.4s var(--ease-out-expo);
}

/* Cores por seção: registradas para poderem transicionar */
@property --s-bg { syntax: '<color>'; inherits: true; initial-value: #060709; }
@property --s-fg { syntax: '<color>'; inherits: true; initial-value: #FFFFFF; }
@property --s-muted { syntax: '<color>'; inherits: true; initial-value: #9A9DA7; }
@property --s-line { syntax: '<color>'; inherits: true; initial-value: rgba(255, 255, 255, 0.1); }

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

html {
  background-color: var(--bg-obsidian);
  color: var(--silver-platina);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  scroll-behavior: smooth;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scrollbar-color: #2A2D35 var(--bg-obsidian);
}

body {
  min-height: 100vh;
  position: relative;
  background-color: var(--bg-obsidian);
  color: var(--silver-platina);
  overflow-x: hidden;
}

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

::selection { background: #E8E3D8; color: var(--ink); }
.theme-light ::selection, .letter ::selection { background: var(--ink); color: var(--paper); }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-obsidian); }
::-webkit-scrollbar-thumb { background: #2A2D35; border-radius: 10px; border: 2px solid var(--bg-obsidian); }
::-webkit-scrollbar-thumb:hover { background: #3A3E48; }

:focus-visible {
  outline: 1.5px solid var(--silver-foil);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Ícones e emblemas em traço */
.icon,
.brand-logo-svg,
.manifesto-emblem,
.letter-emblem,
.envelope-seal-svg,
.footer-emblem {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon { width: 18px; height: 18px; stroke-width: 1.5; flex-shrink: 0; }

.cursor-spotlight {
  position: fixed;
  top: 0;
  left: 0;
  width: 650px;
  height: 650px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.03) 0%, rgba(200, 160, 120, 0.012) 40%, transparent 70%);
  transform: translate(-50%, -50%);
  z-index: 999;
  will-change: transform;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}

@media (max-width: 768px) {
  .container { padding: 0 20px; }
}

/* ==========================================================================
   MOTION: revelações de entrada
   ========================================================================== */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  filter: blur(6px);
  transition:
    opacity 0.9s var(--ease-out-expo),
    transform 1.1s var(--ease-out-expo),
    filter 0.9s var(--ease-out-expo);
  transition-delay: var(--d, 0ms);
}
.js .reveal.is-in { opacity: 1; transform: none; filter: none; }

.js .reveal-media {
  clip-path: inset(7% 5% 7% 5% round 28px);
  transition: clip-path 1.4s var(--ease-out-expo);
}
.js .reveal-media > img,
.js .reveal-media > .wood-banner-bg {
  transform: scale(1.12);
  transition: transform 1.8s var(--ease-out-expo);
}
.js .reveal-media.is-in { clip-path: inset(0 0 0 0 round 28px); }
.js .reveal-media.is-in > img,
.js .reveal-media.is-in > .wood-banner-bg { transform: scale(1); }

/* ==========================================================================
   PRELOADER
   ========================================================================== */
.preloader {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at center, #12141A 0%, #060709 70%, #030304 100%);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.9s var(--ease-out-expo), visibility 0.9s ease;
}
.preloader.is-loaded { opacity: 0; visibility: hidden; pointer-events: none; }

.preloader-emblem-wrap { width: 150px; height: 150px; }
.preloader-svg { width: 100%; height: 100%; filter: drop-shadow(0 0 16px rgba(255, 255, 255, 0.2)); }

.draw-path {
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
  animation: drawStroke 2s var(--ease-out-expo) forwards;
}
.draw-path.delay-1 { animation-delay: 0.25s; }
.draw-path.delay-2 { animation-delay: 0.5s; }

.pulse-point {
  opacity: 0;
  transform-origin: 512px 692px;
  animation: pulseGlow 1.6s var(--ease-out-expo) 0.8s forwards;
}

@keyframes drawStroke { to { stroke-dashoffset: 0; } }
@keyframes pulseGlow {
  0% { opacity: 0; transform: scale(0.4); }
  50% { opacity: 1; transform: scale(1.2); }
  100% { opacity: 1; transform: scale(1); }
}

.preloader-brand {
  margin-top: 32px;
  text-align: center;
  opacity: 0;
  transform: translateY(12px);
  animation: preloaderBrandFade 1.2s var(--ease-out-expo) 0.9s forwards;
}
.preloader-title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.42em;
  padding-left: 0.42em;
  color: var(--silver-bright);
}
.preloader-subtitle {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.28em;
  color: var(--silver-dim);
  text-transform: uppercase;
  margin-top: 8px;
}
.preloader-progress-bar {
  width: 120px;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 24px auto 0;
  overflow: hidden;
  position: relative;
}
.preloader-progress-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  background: linear-gradient(90deg, transparent, #FFFFFF, transparent);
  animation: progressFill 1.8s var(--ease-out-expo) forwards;
}
@keyframes preloaderBrandFade { to { opacity: 1; transform: translateY(0); } }
@keyframes progressFill { to { width: 100%; } }

/* ==========================================================================
   NAVBAR
   ========================================================================== */
.navbar-wrap {
  position: fixed;
  top: 24px;
  left: 0;
  right: 0;
  z-index: 9990;
  display: flex;
  justify-content: center;
  padding: 0 16px;
  pointer-events: none;
}

.navbar {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  padding: 10px 12px 10px 24px;
  background: rgba(10, 11, 14, 0.78);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  border: 1px solid var(--border-card);
  border-radius: 999px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 1px 0 rgba(255, 255, 255, 0.08) inset;
  transition: background 0.5s ease, box-shadow 0.5s ease, border-color 0.5s ease;
}
.navbar.scrolled {
  background: rgba(8, 9, 12, 0.92);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.55);
}

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--silver-bright); }
.brand-logo-svg { width: 26px; height: 26px; stroke-width: 5; }
.brand-text { display: flex; flex-direction: column; }
.brand-name {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.2em;
  line-height: 1.1;
}
.brand-sub {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--silver-dim);
  text-transform: uppercase;
}

.nav-menu { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav-link {
  position: relative;
  font-size: 13px;
  font-weight: 500;
  color: var(--silver-dim);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.3s ease;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease-out-expo);
}
.nav-link:hover { color: var(--silver-bright); }
.nav-link:hover::after { transform: scaleX(1); transform-origin: left; }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--silver-bright);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
  transition: var(--transition-smooth);
}
.nav-cta:hover { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.32); }

.dot-wa {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--wa-emerald);
  box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.16);
}

@media (max-width: 900px) {
  .nav-menu { display: none; }
  .navbar { gap: 16px; }
}
@media (max-width: 420px) {
  .brand-sub, .nav-cta-extra { display: none; }
  .nav-cta { padding: 8px 14px; font-size: 12px; }
}

/* ==========================================================================
   TIPOGRAFIA COMPARTILHADA
   ========================================================================== */
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(30px, 4.2vw, 48px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.01em;
  color: var(--s-fg, var(--silver-bright));
  text-wrap: balance;
  margin-bottom: 18px;
}

.hero-title em,
.section-title em,
.wood-banner-title em {
  font-family: var(--font-italic);
  font-style: italic;
  font-weight: 400;
  font-size: 1.12em;
  letter-spacing: 0;
}

.section-desc {
  font-size: 16px;
  line-height: 1.65;
  color: var(--s-muted, var(--silver-dim));
  text-wrap: pretty;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 64px;
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  padding: 168px 0 56px;
  display: flex;
  background: var(--bg-obsidian);
  overflow: hidden;
  isolation: isolate;
}

.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% 78%;
}
.js .hero-img {
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 1.8s ease, transform 3.2s var(--ease-out-expo);
}
.js body.is-ready .hero-img { opacity: 1; transform: scale(1); }

.hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 50% 32%, rgba(6, 7, 9, 0.72) 0%, rgba(6, 7, 9, 0.3) 70%, transparent 100%),
    linear-gradient(180deg, rgba(6, 7, 9, 0.9) 0%, rgba(6, 7, 9, 0.5) 42%, rgba(6, 7, 9, 0.18) 66%, rgba(6, 7, 9, 0.9) 92%, var(--bg-obsidian) 100%);
}

.hero-inner {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 64px;
}

.hero-editorial-wrap {
  text-align: center;
  max-width: 880px;
  margin: 0 auto;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(38px, 6vw, 70px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: 0;
  color: var(--silver-bright);
  text-wrap: balance;
  margin-bottom: 28px;
}
.hero-title em { color: var(--silver-foil); }

.hero-desc {
  font-size: clamp(16px, 1.6vw, 18.5px);
  line-height: 1.65;
  color: #B4B7C0;
  max-width: 620px;
  margin: 0 auto 40px;
  text-wrap: pretty;
}

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

.btn-primary-pill,
.btn-secondary-ghost,
.btn-send-letter {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
}
.btn-primary-pill .icon,
.btn-send-letter .icon { transition: transform 0.5s var(--ease-out-expo); }
.btn-primary-pill:hover .icon,
.btn-send-letter:hover .icon { transform: translateX(4px); }

.btn-primary-pill {
  padding: 16px 32px;
  background: #FFFFFF;
  color: #060709;
  font-size: 14.5px;
  box-shadow: 0 10px 30px -8px rgba(255, 255, 255, 0.28), 0 2px 4px rgba(0, 0, 0, 0.3);
  transition: transform 0.4s var(--ease-out-expo), box-shadow 0.4s ease, background 0.3s ease;
}
.btn-primary-pill:hover {
  transform: translateY(-2px);
  background: #F2F3F6;
  box-shadow: 0 18px 40px -10px rgba(255, 255, 255, 0.35), 0 4px 8px rgba(0, 0, 0, 0.4);
}

.btn-secondary-ghost {
  padding: 16px 28px;
  background: rgba(8, 9, 12, 0.35);
  color: var(--silver-platina);
  font-size: 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: var(--transition-smooth);
}
.btn-secondary-ghost:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.36); }
.btn-secondary-ghost .icon { width: 15px; height: 15px; transition: transform 0.5s var(--ease-out-expo); }
.btn-secondary-ghost:hover .icon { transform: translateY(3px); }

.hero-pillars {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 920px;
  width: 100%;
  margin: 0 auto;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.pillar-item {
  padding: 24px 28px 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pillar-item + .pillar-item { border-left: 1px solid rgba(255, 255, 255, 0.1); }
.pillar-title {
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--silver-bright);
}
.pillar-sub { font-size: 13px; line-height: 1.55; color: #A3A6AF; }

@media (max-width: 768px) {
  .hero-section { padding: 136px 0 40px; }
  .hero-inner { gap: 48px; }
  .hero-pillars { grid-template-columns: 1fr; border-top: 0; }
  .pillar-item { padding: 18px 0; border-top: 1px solid rgba(255, 255, 255, 0.1); }
  .pillar-item + .pillar-item { border-left: 0; }
  .btn-primary-pill, .btn-secondary-ghost { width: 100%; justify-content: center; }
}

/* ==========================================================================
   SEÇÕES INVERTIDAS (obsidiana → marfim)
   Sem JS ficam marfim. Com JS começam escuras e acendem ao entrar em cena.
   ========================================================================== */
.theme-light {
  --s-bg: var(--ivory);
  --s-fg: var(--ink);
  --s-muted: var(--ink-soft);
  --s-line: var(--ink-line);
  background-color: var(--s-bg);
  color: var(--s-fg);
  transition: --s-bg 1.3s var(--ease-in-out), --s-fg 1.3s var(--ease-in-out), --s-muted 1.3s var(--ease-in-out), --s-line 1.3s var(--ease-in-out);
}
.js .theme-light:not(.is-lit) {
  --s-bg: var(--bg-obsidian);
  --s-fg: #FFFFFF;
  --s-muted: #9A9DA7;
  --s-line: rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   MANIFESTO
   ========================================================================== */
.manifesto-section { padding: 148px 0; }

.manifesto {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
.manifesto-emblem {
  width: 40px;
  height: 40px;
  margin: 0 auto 36px;
  display: block;
  stroke-width: 3.5;
  color: var(--s-fg);
}
.manifesto-quote p {
  font-family: var(--font-italic);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(26px, 3.4vw, 40px);
  line-height: 1.35;
  color: var(--s-fg);
  text-wrap: balance;
}
.manifesto-tagline {
  margin: 40px auto 0;
  padding-top: 28px;
  max-width: 520px;
  border-top: 1px solid var(--s-line);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.7;
  color: var(--s-muted);
}

@media (max-width: 768px) {
  .manifesto-section { padding: 104px 0; }
}

/* ==========================================================================
   INTERLÚDIO FOTOGRÁFICO
   ========================================================================== */
.interlude {
  background: var(--bg-obsidian);
  padding: 120px 32px 0;
}
.interlude-frame {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  height: min(78vh, 760px);
  border-radius: 28px;
  overflow: hidden;
}
.interlude-img {
  width: 100%;
  height: 118%;
  object-fit: cover;
  object-position: 50% 45%;
  position: absolute;
  top: -9%;
  left: 0;
  translate: 0 var(--parallax, 0px);
}
.interlude-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

@media (max-width: 768px) {
  .interlude { padding: 80px 12px 0; }
  .interlude-frame { height: 56vh; border-radius: 20px; }
  .interlude-img { object-position: 52% 40%; }
}

/* ==========================================================================
   SERVIÇOS (bento)
   ========================================================================== */
.bento-section {
  padding: 128px 0 120px;
  background-color: var(--bg-obsidian);
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.bento-card {
  position: relative;
  min-height: 260px;
  background: linear-gradient(180deg, var(--bg-card-raised) 0%, var(--bg-card) 100%);
  border: 1px solid var(--border-card);
  border-radius: 20px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  overflow: hidden;
  isolation: isolate;
  transition: border-color 0.5s ease, box-shadow 0.6s var(--ease-out-expo), transform 0.6s var(--ease-out-expo);
}
.bento-card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(420px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.07), transparent 60%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}
.bento-card:hover {
  border-color: rgba(255, 255, 255, 0.24);
  box-shadow: 0 24px 50px -20px rgba(0, 0, 0, 0.8);
}
.bento-card:hover::after { opacity: 1; }

/* Ícone dentro de um losango, eco do emblema */
.icon-mark {
  position: relative;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  color: var(--silver-foil);
}
.icon-mark::before {
  content: '';
  position: absolute;
  inset: 9px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transform: rotate(45deg);
  transition: transform 0.9s var(--ease-out-expo), border-color 0.5s ease;
}
.icon-mark .icon { width: 22px; height: 22px; stroke-width: 1.25; }
.bento-card:hover .icon-mark::before { transform: rotate(135deg); border-color: rgba(255, 255, 255, 0.45); }

.bento-content { position: relative; }
.bento-tag {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--silver-dim);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: 12px;
}
.bento-title {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--silver-bright);
  margin-bottom: 10px;
  line-height: 1.3;
}
.bento-desc { font-size: 14.5px; color: var(--silver-dim); line-height: 1.6; max-width: 46ch; }

.bento-card.tall { grid-row: span 2; min-height: 540px; border-color: var(--wood-border); }
.bento-card.tall .bento-title { font-size: 26px; }
.bento-card.tall .bento-desc { color: var(--wood-text); }
.bento-card.tall .bento-tag { color: #B9A897; }
.bento-photo {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(10, 8, 6, 0.55) 0%, rgba(10, 8, 6, 0.25) 35%, rgba(8, 7, 6, 0.92) 78%),
    url('../assets/images/wood-texture.jpg') center / cover;
  transition: transform 1.2s var(--ease-out-expo);
}
.bento-card.tall:hover .bento-photo { transform: scale(1.04); }

.bento-card.wide-top,
.bento-card.wide-bot { grid-column: span 2; }

@media (max-width: 1024px) {
  .bento-grid { grid-template-columns: 1fr 1fr; }
  .bento-card.tall { grid-row: span 1; grid-column: span 2; min-height: 380px; }
}
@media (max-width: 680px) {
  .bento-grid { grid-template-columns: 1fr; }
  .bento-card.tall,
  .bento-card.wide-top,
  .bento-card.wide-bot { grid-column: span 1; }
  .bento-card { min-height: 0; gap: 28px; padding: 28px 24px; }
  .bento-card.tall { min-height: 360px; }
}

/* ==========================================================================
   DIFERENCIAIS (marfim)
   ========================================================================== */
.features-section { padding: 136px 0 128px; }

.features-head {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: end;
  margin-bottom: 56px;
}
.features-head .section-title { margin-bottom: 0; }
.features-head .section-desc { max-width: 44ch; padding-bottom: 8px; }

.features-media {
  position: relative;
  aspect-ratio: 21 / 9;
  border-radius: 28px;
  overflow: hidden;
  margin-bottom: 72px;
  background: #E6E1D8;
}
.features-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
}

.principles {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}
.principle {
  padding-top: 28px;
  border-top: 1px solid var(--s-line);
  position: relative;
}
.principle::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--s-fg);
  transition: width 0.9s var(--ease-out-expo);
}
.principle:hover::before { width: 100%; }
.principle .icon { width: 26px; height: 26px; stroke-width: 1.25; color: var(--s-fg); margin-bottom: 22px; }
.principle-title {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.35;
  color: var(--s-fg);
  margin-bottom: 10px;
}
.principle-desc { font-size: 14.5px; line-height: 1.65; color: var(--s-muted); }

@media (max-width: 1024px) {
  .principles { grid-template-columns: repeat(2, 1fr); gap: 40px 32px; }
}
@media (max-width: 768px) {
  .features-section { padding: 104px 0 96px; }
  .features-head { grid-template-columns: 1fr; gap: 16px; margin-bottom: 36px; }
  .features-media { aspect-ratio: 4 / 3; border-radius: 20px; margin-bottom: 48px; }
  .features-media img { object-position: 50% 40%; }
}
@media (max-width: 560px) {
  .principles { grid-template-columns: 1fr; gap: 32px; }
}

/* ==========================================================================
   ARTICULAÇÃO SILENCIOSA (madeira + cartões)
   ========================================================================== */
.wood-panel-section {
  padding: 128px 0 120px;
  background-color: var(--bg-obsidian);
}

.wood-banner {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--wood-border);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.9);
  isolation: isolate;
}
.wood-banner-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url('../assets/images/photo-cards.webp') 62% 50% / cover;
}

.wood-banner-overlay {
  padding: 80px 64px;
  background:
    linear-gradient(90deg, rgba(10, 8, 6, 0.95) 0%, rgba(12, 9, 7, 0.86) 42%, rgba(10, 8, 6, 0.55) 70%, rgba(8, 6, 5, 0.82) 100%);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}

.wood-banner-title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 600;
  line-height: 1.2;
  color: #FFFFFF;
  text-wrap: balance;
  margin-bottom: 22px;
}
.wood-banner-title em { color: var(--wood-ivory); }
.wood-banner-desc { font-size: 16px; color: var(--wood-text); line-height: 1.7; max-width: 52ch; }

.wood-banner-metrics { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.wood-metric-row {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 18px 20px;
  background: rgba(10, 8, 6, 0.62);
  border: 1px solid rgba(233, 216, 200, 0.12);
  border-radius: 14px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color 0.5s ease, background 0.5s ease;
}
.wood-metric-row:hover { border-color: rgba(233, 216, 200, 0.3); background: rgba(10, 8, 6, 0.75); }
.wood-metric-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border: 1px solid rgba(233, 216, 200, 0.35);
  border-radius: 50%;
  font-family: var(--font-serif);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--wood-ivory);
}
.wood-metric-text strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: #FFFFFF;
  margin-bottom: 3px;
}
.wood-metric-text > span { font-size: 13.5px; color: var(--wood-text); line-height: 1.5; }

@media (max-width: 900px) {
  .wood-banner-overlay {
    grid-template-columns: 1fr;
    padding: 48px 24px;
    gap: 36px;
    background: linear-gradient(180deg, rgba(10, 8, 6, 0.9) 0%, rgba(10, 8, 6, 0.8) 100%);
  }
}

/* ==========================================================================
   CONTATO · CARTA E ENVELOPE
   ========================================================================== */
.contact-letter-section {
  position: relative;
  padding: 136px 0 128px;
  background:
    radial-gradient(ellipse 60% 50% at 50% 62%, rgba(200, 160, 120, 0.06) 0%, transparent 70%),
    var(--bg-obsidian);
  overflow: hidden;
}

.contact-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto calc(var(--flap-gap, 150px));
}
.contact-header .section-title { margin-bottom: 16px; }

/* Palco: a carta (em fluxo) define a altura; o envelope fica ancorado embaixo.
   O ponto do "V" do bolso coincide com a base da carta. */
.envelope-stage {
  --env-h: 300px;
  --v-mid: 0.61;   /* fração da altura do envelope onde fica o ponto do V */
  --flap-h: 0.56;
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  isolation: isolate;
  min-height: var(--env-h);
  padding-bottom: calc(var(--env-h) * (1 - var(--v-mid)));
}

.letter-slot {
  position: relative;
  z-index: 2;
  padding: 0 28px;
  /* recorta só a borda de baixo: a carta "entra" no envelope */
  clip-path: inset(-200px -200px 0 -200px);
  /* fechado: 0fr (sem vazio na página); aberto: cresce até a altura da carta */
  display: grid;
  grid-template-rows: 1fr;
  transition: grid-template-rows 1.6s var(--ease-out-expo) 0.7s;
}
.letter-clip { min-height: 0; overflow: clip; overflow-clip-margin: 48px; }
.js .envelope-stage:not(.is-open) .letter-slot { grid-template-rows: 0fr; }

.letter {
  position: relative;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.35 0 0 0 0 0.3 0 0 0 0 0.22 0 0 0 0.07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    radial-gradient(ellipse at 50% 0%, #FBF9F4 0%, transparent 70%);
  border-radius: 3px;
  padding: 52px 56px calc(var(--env-h) * 0.2 + 36px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.8) inset,
    0 -18px 50px -24px rgba(0, 0, 0, 0.7),
    0 30px 60px -30px rgba(0, 0, 0, 0.6);
}
/* filete duplo de papelaria */
.letter::before {
  content: '';
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(18, 19, 22, 0.1);
  outline: 1px solid rgba(18, 19, 22, 0.05);
  outline-offset: 3px;
  pointer-events: none;
}

.letter-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding-bottom: 26px;
  margin-bottom: 26px;
  border-bottom: 1px solid var(--ink-line);
}
.letter-emblem { width: 30px; height: 30px; stroke-width: 4; color: var(--ink); margin-bottom: 8px; }
.letter-brand {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.38em;
  padding-left: 0.38em;
}
.letter-brand-sub {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.letter-date {
  text-align: right;
  font-family: var(--font-italic);
  font-style: italic;
  font-size: 17px;
  color: var(--ink-soft);
  margin-bottom: 18px;
}
.letter-salutation,
.letter-line,
.letter-closing {
  font-family: var(--font-italic);
  font-style: italic;
  font-size: 21px;
  line-height: 1.9;
  color: var(--ink);
}
.letter-salutation { margin-bottom: 6px; }

.letter-form { display: flex; flex-direction: column; gap: 22px; }

.letter-line label { cursor: text; }
.letter-input {
  display: inline-block;
  width: 13em;
  max-width: 100%;
  margin: 0 0.3em;
  padding: 0 4px 2px;
  border: 0;
  border-bottom: 1px solid rgba(18, 19, 22, 0.35);
  border-radius: 0;
  background: transparent;
  font-family: var(--font-sans);
  font-style: normal;
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  caret-color: var(--ink);
  transition: border-color 0.3s ease, background 0.3s ease;
}
#letterLocation { width: 10em; }

.letter-field { display: flex; flex-direction: column; gap: 4px; }
.letter-textarea {
  width: 100%;
  min-height: 136px;
  resize: vertical;
  padding: 3px 4px 0;
  border: 0;
  border-radius: 0;
  background-color: transparent;
  background-image: linear-gradient(to bottom, transparent calc(34px - 1px), rgba(18, 19, 22, 0.16) calc(34px - 1px), rgba(18, 19, 22, 0.16) 34px);
  background-size: 100% 34px;
  background-attachment: local;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 34px;
  color: var(--ink);
  caret-color: var(--ink);
}

.letter-input::placeholder,
.letter-textarea::placeholder { color: #6E6A61; font-weight: 400; }

.letter-input:focus,
.letter-textarea:focus { outline: none; }
.letter-input:focus { border-bottom-color: var(--ink); background: rgba(18, 19, 22, 0.035); }
.letter-textarea:focus { background-color: rgba(18, 19, 22, 0.025); }
.letter-input:focus-visible,
.letter-textarea:focus-visible { box-shadow: 0 2px 0 0 var(--ink); }

.letter-error {
  font-size: 13.5px;
  font-weight: 500;
  color: #8E2B22;
  padding-top: 6px;
}
.letter-textarea[aria-invalid='true'] {
  background-image: linear-gradient(to bottom, transparent calc(34px - 1px), rgba(142, 43, 34, 0.35) calc(34px - 1px), rgba(142, 43, 34, 0.35) 34px);
}

.letter-closing {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.5;
  margin-top: 6px;
}
.letter-signature {
  font-size: 32px;
  font-weight: 500;
  color: var(--ink);
  min-height: 1.3em;
  padding: 0 4px;
  transition: color 0.4s ease;
}
.letter-signature.is-empty { color: rgba(18, 19, 22, 0.22); }

.letter-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 22px;
  border-top: 1px solid var(--ink-line);
}
.letter-notice {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-soft);
}
.letter-notice-dot { width: 6px; height: 6px; border-radius: 50%; background: #1FA855; flex-shrink: 0; }

.btn-send-letter {
  padding: 15px 30px;
  background: var(--ink);
  color: var(--paper);
  border: 0;
  font-size: 14px;
  box-shadow: 0 12px 24px -12px rgba(18, 19, 22, 0.6);
  transition: transform 0.4s var(--ease-out-expo), box-shadow 0.4s ease, background 0.3s ease;
}
.btn-send-letter:hover { background: #24262B; transform: translateY(-2px); box-shadow: 0 18px 30px -14px rgba(18, 19, 22, 0.7); }
.btn-send-letter:focus-visible { outline-color: var(--ink); }

/* Envelope negro: costas, aba e bolso frontal */
.envelope {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--env-h);
  /* decorativo: nunca captura cliques (aba virada e bolso ficam sobre o botão de envio) */
  pointer-events: none;
}
.envelope-stage:not(.is-open) .envelope { pointer-events: auto; cursor: pointer; }
.envelope-back {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: 4px 4px 10px 10px;
  background: linear-gradient(180deg, #0B0C0F 0%, #121318 100%);
  box-shadow: 0 50px 80px -30px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}

.envelope-pocket,
.envelope-flap {
  position: absolute;
  left: 0;
  width: 100%;
  overflow: visible;
}
.envelope-pocket {
  bottom: 0;
  height: 100%;
  z-index: 3;
  filter: drop-shadow(0 -10px 18px rgba(0, 0, 0, 0.45));
}
.envelope-pocket polygon { fill: #17181D; }
.envelope-pocket polyline { fill: none; stroke-width: 1; }
.envelope-pocket .seam-top { stroke: rgba(216, 218, 224, 0.32); }
.envelope-pocket .seam { stroke: rgba(255, 255, 255, 0.07); }

.envelope-flap {
  top: 0;
  height: calc(var(--env-h) * var(--flap-h));
  z-index: 4;
  transform-origin: 50% 0;
  transform: perspective(1400px) rotateX(0deg);
  transition: transform 0.9s var(--ease-in-out) 0.25s, z-index 0s linear 0.7s;
  filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.5));
}
.envelope-flap polygon { fill: #1B1C22; }
.envelope-flap polyline { fill: none; stroke: rgba(216, 218, 224, 0.28); stroke-width: 1; }

.envelope-seal {
  position: absolute;
  bottom: calc(var(--env-h) * (1 - var(--flap-h)) - 31px);
  left: 50%;
  z-index: 6;
  width: 62px;
  height: 62px;
  margin-left: -31px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  color: #1A1C22;
  background: radial-gradient(circle at 34% 30%, #FFFFFF 0%, #D8DAE0 38%, #9A9DA6 78%, #5D6068 100%);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.7), 0 0 0 4px rgba(216, 218, 224, 0.08), inset 0 -2px 4px rgba(0, 0, 0, 0.3);
  transition: transform 0.5s var(--ease-out-expo), opacity 0.4s ease, box-shadow 0.4s ease;
}
.envelope-seal:hover { transform: scale(1.08); box-shadow: 0 10px 22px rgba(0, 0, 0, 0.75), 0 0 0 6px rgba(216, 218, 224, 0.12), inset 0 -2px 4px rgba(0, 0, 0, 0.3); }
.envelope-seal-svg { width: 30px; height: 30px; stroke-width: 6; }
.envelope-seal:not(.is-gone) { animation: sealBreathe 3.2s ease-in-out infinite 1s; }
@keyframes sealBreathe {
  0%, 100% { box-shadow: 0 8px 18px rgba(0, 0, 0, 0.7), 0 0 0 4px rgba(216, 218, 224, 0.08), inset 0 -2px 4px rgba(0, 0, 0, 0.3); }
  50% { box-shadow: 0 8px 18px rgba(0, 0, 0, 0.7), 0 0 0 10px rgba(216, 218, 224, 0.04), inset 0 -2px 4px rgba(0, 0, 0, 0.3); }
}

/* Aberto: lacre sai, aba vira para trás e a carta sobe */
.envelope-stage.is-open .envelope-flap { transform: perspective(1400px) rotateX(180deg); z-index: 1; }
.envelope-stage.is-open .envelope-flap polygon { fill: #111216; }
.envelope-stage.is-open .envelope-seal {
  transform: translateY(-16px) scale(0.7);
  opacity: 0;
  pointer-events: none;
  animation: none;
}

.quick-contact-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 72px;
  flex-wrap: wrap;
}
.quick-contact-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  color: #A9ACB5;
  text-decoration: none;
  font-size: 13.5px;
  transition: var(--transition-smooth);
}
.quick-contact-pill .icon { width: 16px; height: 16px; stroke-width: 1.5; }
a.quick-contact-pill:hover { background: rgba(255, 255, 255, 0.07); border-color: rgba(255, 255, 255, 0.22); color: var(--silver-bright); }

@media (max-width: 768px) {
  .contact-letter-section { padding: 104px 0 96px; }
  .envelope-stage { --env-h: 200px; }
  .contact-header { --flap-gap: 110px; }
  .letter-slot { padding: 0 12px; }
  .letter { padding: 40px 24px calc(var(--env-h) * 0.2 + 28px); }
  .letter::before { inset: 8px; }
  .letter-salutation, .letter-line, .letter-closing { font-size: 19px; }
  .letter-input, #letterLocation { width: 100%; margin: 2px 0 10px; }
  .letter-actions { flex-direction: column; align-items: stretch; }
  .btn-send-letter { justify-content: center; }
  .envelope-seal { width: 52px; height: 52px; margin-left: -26px; bottom: calc(var(--env-h) * (1 - var(--flap-h)) - 26px); }
  .envelope-seal-svg { width: 24px; height: 24px; }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer {
  padding: 56px 0 40px;
  background-color: #040507;
  border-top: 1px solid var(--border-subtle);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-emblem { width: 20px; height: 20px; stroke-width: 5; color: var(--silver-bright); }
.footer-brand-title {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--silver-bright);
}
.footer-brand-sub { font-size: 12px; color: var(--silver-muted); }
.footer-legal { font-size: 12px; color: var(--silver-muted); }
.footer-links { display: flex; gap: 20px; list-style: none; }
.footer-links a { color: var(--silver-dim); text-decoration: none; font-size: 13px; transition: color 0.3s ease; }
.footer-links a:hover { color: var(--silver-bright); }

@media (max-width: 768px) {
  .footer-inner { flex-direction: column; text-align: center; gap: 16px; }
  .footer-brand { flex-wrap: wrap; justify-content: center; }
}

/* ==========================================================================
   MOVIMENTO REDUZIDO
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
  .js .reveal { opacity: 1; transform: none; filter: none; }
  .js .reveal-media { clip-path: none; }
  .interlude-img { translate: none; }
  .cursor-spotlight { display: none; }
}
