.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============ TOKENS ============ */
:root {
  --black: #0a0908;
  --graphite: #17140f;
  --graphite-2: #221e17;
  --white-soft: #f4efe6;
  --white-dim: #cfc8ba;
  --orange: #ff4713;
  --orange-bright: #ff5a1f;
  --orange-dim: #c23709;
  --text-on-dark: #f4efe6;
  --text-on-dark-mute: #a89e8d;
  --text-on-light: #17140f;
  --text-on-light-mute: #5c5548;

  --font-display: 'Archivo', sans-serif;
  --font-accent: 'Archivo', sans-serif;
  --font-body: 'Manrope', sans-serif;

  --ease: cubic-bezier(.16,1,.3,1);
}

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

html { scroll-behavior: auto; }

body {
  background: var(--black);
  color: var(--text-on-dark);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: 1240px; margin: 0 auto; padding: 0 6vw; }
em { font-style: normal; font-family: var(--font-accent); color: var(--orange-bright); font-weight: inherit; }

::selection { background: var(--orange); color: var(--white-soft); }

/* ============ LOADER ============ */
#loader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--black);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 24px;
  transition: opacity 0.7s var(--ease), visibility 0.7s var(--ease);
}
#loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-brand {
  height: 72px; width: auto;
  filter: invert(1) brightness(1.4);
}
#loader-bar { width: 220px; height: 2px; background: rgba(244,239,230,0.15); }
#loader-bar-fill { height: 100%; width: 0%; background: var(--orange); transition: width 0.3s ease; }

/* ============ BUTTONS ============ */
@keyframes btn-pulse {
  0% { box-shadow: 0 0 0 0 rgba(255,71,19,0.55); }
  70% { box-shadow: 0 0 0 14px rgba(255,71,19,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,71,19,0); }
}
@keyframes btn-pulse-green {
  0% { box-shadow: 0 0 0 0 rgba(31,168,85,0.55); }
  70% { box-shadow: 0 0 0 14px rgba(31,168,85,0); }
  100% { box-shadow: 0 0 0 0 rgba(31,168,85,0); }
}
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 16px 28px;
  border-radius: 100px;
  border: 1px solid transparent;
  transition: transform 0.4s var(--ease), background 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease);
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--orange); color: var(--white-soft); animation: btn-pulse 2s infinite; }
.btn-primary:hover { background: var(--orange-bright); }
.btn-ghost-light { border-color: rgba(244,239,230,0.35); color: var(--white-soft); }
.btn-ghost-light:hover { border-color: var(--white-soft); background: rgba(244,239,230,0.08); }
.btn-outline { border-color: var(--orange); color: var(--orange-bright); }
.btn-outline:hover { background: var(--orange); color: var(--white-soft); }
.btn-lg { padding: 20px 36px; font-size: 0.85rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--orange-bright);
  position: relative;
}
.link-arrow span { transition: transform 0.4s var(--ease); display: inline-block; }
.link-arrow:hover span { transform: translateX(6px); }

/* ============ HEADER ============ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  padding: 26px 0;
  transition: background 0.5s var(--ease), padding 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.site-header.scrolled {
  background: rgba(10,9,8,0.88);
  backdrop-filter: blur(10px);
  padding: 16px 0;
  box-shadow: 0 1px 0 rgba(244,239,230,0.06);
}
.header-inner {
  max-width: 1240px; margin: 0 auto; padding: 0 6vw;
  display: flex; align-items: center; justify-content: center;
}
.logo { display: inline-flex; }
.logo-mark {
  height: 128px; width: auto;
  filter: invert(1) brightness(1.4);
  transition: opacity 0.3s var(--ease), height 0.4s var(--ease);
}
.site-header.scrolled .logo-mark { height: 96px; }
.logo:hover .logo-mark { opacity: 0.8; }

/* ============ HERO ============ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.hero-video.is-active { opacity: 1; }
.hero-media-fallback {
  position: absolute; inset: 0;
  z-index: -1;
  background:
    radial-gradient(120% 90% at 20% 15%, rgba(255,71,19,0.28), transparent 55%),
    radial-gradient(100% 80% at 85% 85%, rgba(255,71,19,0.16), transparent 60%),
    linear-gradient(160deg, #1c1712 0%, #100d09 55%, #060504 100%);
}
.hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6,5,4,0.55) 0%, rgba(6,5,4,0.35) 40%, rgba(6,5,4,0.75) 100%);
}
.hero-grain {
  position: absolute; inset: 0; opacity: 0.05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero-content {
  position: relative; z-index: 2;
  max-width: 1240px; width: 100%; margin: 0 auto;
  padding: 0 6vw;
}
.eyebrow {
  display: inline-block; margin-bottom: 22px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--orange-bright);
}
.hero-heading {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(2.6rem, 7.2vw, 6.4rem);
  line-height: 0.94;
  letter-spacing: -0.01em;
  max-width: 15ch;
  color: var(--white-soft);
}
.hero-heading .line { display: block; overflow: hidden; }
.hero-heading .word { display: inline-block; }
.hero-tagline {
  margin-top: 26px;
  max-width: 34ch;
  font-size: 1.15rem;
  color: var(--white-dim);
}
.hero-actions { margin-top: 42px; display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; }

.hero-ticker-wrap {
  position: relative; z-index: 2;
  margin-top: 60px;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  overflow: hidden;
  padding: 22px 0;
  border-top: 1px solid rgba(244,239,230,0.12);
}
.hero-ticker {
  display: flex; gap: 18px; white-space: nowrap;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 1rem; letter-spacing: 0.08em;
  color: var(--text-on-dark-mute);
  animation: ticker 55s linear infinite;
  width: max-content;
  padding-left: 6vw;
}
.hero-ticker .dot { color: var(--orange); }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.scroll-cue {
  position: absolute; right: 6vw; bottom: 34px; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-on-dark-mute);
}
.scroll-cue-line { width: 1px; height: 40px; background: rgba(244,239,230,0.3); position: relative; overflow: hidden; }
.scroll-cue-line::after {
  content: ""; position: absolute; top: -100%; left: 0; width: 100%; height: 100%;
  background: var(--orange); animation: cue 1.8s ease-in-out infinite;
}
@keyframes cue { 0% { top: -100%; } 60% { top: 100%; } 100% { top: 100%; } }

/* ============ SECTIONS (shared) ============ */
.section { position: relative; padding: 160px 0; }
.section-label {
  display: block; margin-bottom: 20px;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--orange-bright);
}
.section-heading {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(2rem, 4.6vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: -0.005em;
  color: var(--white-soft);
}
.section-head { max-width: 640px; margin-bottom: 80px; }

/* ============ PORTFOLIO ============ */
.portfolio { background: var(--black); }

.portfolio-tabs { display: flex; justify-content: center; gap: 10px; margin-bottom: 64px; }
.portfolio-tab {
  background: transparent; border: 1px solid rgba(244,239,230,0.18); border-radius: 100px;
  padding: 13px 30px; font-family: var(--font-body); font-weight: 600; font-size: 0.72rem;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-on-dark-mute);
  cursor: pointer; transition: all 0.35s var(--ease);
}
.portfolio-tab:hover { color: var(--white-soft); border-color: rgba(244,239,230,0.4); }
.portfolio-tab.is-active { background: var(--orange); border-color: var(--orange); color: var(--black); }

.portfolio-panel { display: none; }
.portfolio-panel.is-active { display: block; }

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 36px;
}
.portfolio-item {
  position: relative;
  display: block;
  border-radius: 10px;
  overflow: hidden;
  isolation: isolate;
  aspect-ratio: 16 / 10;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.6);
  transition: box-shadow 0.5s var(--ease);
}
.portfolio-item:hover { box-shadow: 0 40px 80px -20px rgba(0,0,0,0.75); }
.portfolio-media {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transition: transform 1.3s var(--ease);
}
.portfolio-item:hover .portfolio-media { transform: scale(1.06); }
.portfolio-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6,5,4,0.05) 0%, rgba(6,5,4,0.15) 55%, rgba(6,5,4,0.92) 100%);
}
.portfolio-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(10,9,8,0.32);
  opacity: 0; transition: opacity 0.45s var(--ease);
  z-index: 1;
}
.portfolio-item:hover .portfolio-overlay { opacity: 1; }
.play-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 62px; height: 62px;
  background: var(--orange); color: var(--white-soft);
  border: none; border-radius: 50%;
  cursor: pointer;
  transform: scale(0.85); transition: transform 0.4s var(--ease);
  animation: btn-pulse 2s infinite;
}
.portfolio-item:hover .play-btn { transform: scale(1); }
.portfolio-caption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 22px 26px;
}
.portfolio-caption h3 { font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; letter-spacing: 0.01em; color: var(--white-soft); }
.portfolio-caption span { display: block; margin-top: 4px; font-size: 0.68rem; letter-spacing: 0.07em; text-transform: uppercase; color: var(--text-on-dark-mute); }
.portfolio-footer { margin-top: 56px; text-align: center; }

@media (max-width: 720px) {
  .portfolio-grid { grid-template-columns: 1fr; gap: 22px; }
  .portfolio-tabs { gap: 8px; }
  .portfolio-tab { padding: 11px 22px; font-size: 0.68rem; }
}

/* ============ SOBRE ============ */
.about { background: var(--white-soft); color: var(--text-on-light); }
.about .section-heading { color: var(--text-on-light); }
.about .em, .about em { color: var(--orange); }
.about-grid {
  display: grid; grid-template-columns: 1fr 0.85fr; gap: 80px; align-items: center;
}
.about-body { max-width: 46ch; margin-top: 20px; font-size: 1.05rem; color: var(--text-on-light-mute); }
.about-media { position: relative; }
.portrait-ph {
  aspect-ratio: 4 / 5.1; border-radius: 4px;
  background: linear-gradient(155deg, #2a2419 0%, #171410 55%, #060504 100%);
  position: relative; overflow: hidden;
}
.portrait-ph::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(70% 55% at 70% 25%, rgba(255,71,19,0.22), transparent 60%);
  mix-blend-mode: soft-light;
  pointer-events: none;
}
.portrait-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 20%;
}
.signature-mark {
  display: block; margin: 22px 0 0 auto;
  height: 60px; width: auto;
}

/* ============ SERVIÇOS ============ */
.services { background: var(--black); }
.services-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: rgba(244,239,230,0.08); }
.service-card {
  background: var(--black); padding: 56px 48px;
  display: flex; flex-direction: column; gap: 18px; align-items: flex-start;
  transition: background 0.5s var(--ease);
}
.service-card:hover { background: var(--graphite); }
.service-index { font-family: var(--font-display); font-weight: 800; font-size: 0.95rem; color: var(--orange-bright); }
.service-card h3 { font-family: var(--font-display); font-size: 2rem; font-weight: 800; text-transform: uppercase; color: var(--white-soft); }
.service-card p { color: var(--text-on-dark-mute); max-width: 34ch; }

/* ============ DIFERENCIAIS ============ */
.differentials { background: var(--graphite); }
.diff-list { display: flex; flex-direction: column; }
.diff-item {
  display: flex; align-items: baseline; gap: 40px;
  padding: 40px 0; border-top: 1px solid rgba(244,239,230,0.1);
}
.diff-item:last-child { border-bottom: 1px solid rgba(244,239,230,0.1); }
.diff-number { font-family: var(--font-display); font-weight: 800; font-size: 2.6rem; color: rgba(244,239,230,0.25); min-width: 90px; }
.diff-copy h3 { font-family: var(--font-display); font-size: 1.6rem; font-weight: 800; text-transform: uppercase; color: var(--white-soft); margin-bottom: 6px; }
.diff-copy p { color: var(--text-on-dark-mute); }

/* ============ DEPOIMENTOS ============ */
.testimonials { background: var(--black); }
.testimonial-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.testimonial-card {
  padding: 48px; border: 1px solid rgba(244,239,230,0.12); border-radius: 4px;
}
.testimonial-card p {
  font-family: var(--font-accent); font-weight: 500; font-size: 1.4rem; line-height: 1.4;
  color: var(--white-soft); margin-bottom: 26px;
}
.testimonial-author { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--orange-bright); }

/* ============ CTA FINAL ============ */
.cta-final {
  background: var(--black);
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-bg-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.cta-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6,5,4,0.75) 0%, rgba(6,5,4,0.55) 45%, rgba(6,5,4,0.85) 100%);
  z-index: 1;
}
.cta-signature {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  font-family: var(--font-accent); font-weight: 900; text-transform: uppercase;
  font-size: 22vw; white-space: nowrap;
  color: rgba(244,239,230,0.06);
  pointer-events: none;
  z-index: 1;
}
.cta-content { position: relative; z-index: 2; max-width: 720px; padding: 0 6vw; }
.cta-heading {
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(2.4rem, 6vw, 4.6rem); line-height: 1; color: var(--white-soft);
}
.cta-body { margin: 26px auto 40px; max-width: 42ch; font-size: 1.1rem; color: var(--text-on-dark-mute); }

/* ============ RODAPÉ ============ */
.site-footer { background: var(--black); border-top: 1px solid rgba(244,239,230,0.1); padding: 70px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 40px; }
.footer-logo-mark {
  height: 52px; width: auto;
  filter: invert(1) brightness(1.4);
  margin-bottom: 14px;
}
.footer-brand p { color: var(--text-on-dark-mute); }
.footer-info p { margin-bottom: 8px; color: var(--text-on-dark-mute); }
.footer-info a:hover { color: var(--orange-bright); }
.footer-links { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.footer-links a { color: var(--text-on-dark-mute); font-size: 0.9rem; }
.footer-links a:hover { color: var(--orange-bright); }
.footer-quote {
  text-align: center; margin-top: 60px;
  font-family: var(--font-accent); font-weight: 600; font-size: 1.1rem;
  color: var(--text-on-dark-mute);
}

/* ============ WHATSAPP FAB ============ */
.whatsapp-fab {
  position: fixed; right: 26px; bottom: 26px; z-index: 400;
  width: 58px; height: 58px; border-radius: 50%;
  background: #1fa855; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  transition: transform 0.3s var(--ease);
  animation: btn-pulse-green 2s infinite;
}
.whatsapp-fab:hover { transform: scale(1.08); }

/* ============ VIDEO MODAL ============ */
.video-modal {
  position: fixed; inset: 0; z-index: 2000;
  display: none; align-items: center; justify-content: center;
  padding: 4vw;
}
.video-modal.is-open { display: flex; }
.video-modal-backdrop { position: absolute; inset: 0; background: rgba(6,5,4,0.9); }
.video-modal-inner {
  position: relative; width: 100%; max-width: 1100px;
  animation: modal-in 0.35s var(--ease);
}
@keyframes modal-in { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: scale(1); } }
.video-modal-frame {
  position: relative; width: 100%; aspect-ratio: 16 / 9;
  background: #000; border-radius: 6px; overflow: hidden;
}
.video-modal-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-modal-close {
  position: absolute; top: -46px; right: 0;
  background: transparent; border: none; color: var(--white-soft);
  font-size: 2rem; line-height: 1; cursor: pointer;
}

/* ============ SCROLL REVEALS ============ */
.reveal-up, .reveal-slide-left, .reveal-slide-right, .reveal-scale {
  opacity: 0;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .main-nav, .nav-cta { display: none; }
  .nav-toggle {
    display: flex; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px;
  }
  .nav-toggle span { width: 22px; height: 2px; background: var(--white-soft); }

  .hero-heading { max-width: 100%; }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-media { order: -1; }
  .services-grid { grid-template-columns: 1fr; }
  .diff-item { gap: 20px; }
  .diff-number { font-size: 1.8rem; min-width: 50px; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .section { padding: 100px 0; }
  .cta-signature { font-size: 60vw; }
}
