/* ============================================================
   Casa Krein — Landing Premium
   Tokens, base, layout, seções, responsivo
   ============================================================ */

/* -------- Tokens -------- */
:root {
  --bg: #0d0d0d;
  --bg-soft: #1c1c1c;
  --surface: #2a2a2a;
  --section-tone: #121212;
  --text: #d6d6d6;
  --muted: #8a8a8a;
  --gold: #b7bcc3;
  --wood: #3a3a3a;
  --white: #ffffff;
  --line: rgba(214, 214, 214, 0.16);

  --serif: "Questrial", "Inter", system-ui, -apple-system, Segoe UI, sans-serif;
  --sans: "Inter", "Manrope", system-ui, -apple-system, Segoe UI, sans-serif;

  --container: 1600px;
  --footer-reveal-height: 320px;
  --radius: 4px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* -------- Reset -------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  background: var(--section-tone);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.68;
  letter-spacing: 0.004em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
main {
  position: relative;
  z-index: 2;
  background: var(--section-tone);
  margin-bottom: var(--footer-reveal-height);
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  background: none;
  border: 0;
  cursor: pointer;
  color: inherit;
}
ul,
ol {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* -------- Typography -------- */
h1,
h2,
h3,
h4 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: 0.036em;
  line-height: 1.02;
  text-transform: uppercase;
  color: var(--text);
  margin: 0;
}
h1 {
  font-size: clamp(2.15rem, 5vw, 4.1rem);
  font-weight: 400;
}
h2 {
  font-size: clamp(1.5rem, 3vw, 2.45rem);
  line-height: 1.08;
}
h3 {
  font-size: 1.12rem;
  font-weight: 400;
}
h1 em,
h2 em {
  font-style: normal;
  color: var(--gold);
  font-weight: 600;
}
p {
  margin: 0;
  color: var(--muted);
}
.lead {
  font-size: 1.09rem;
  line-height: 1.72;
  max-width: 600px;
  letter-spacing: 0.005em;
}

.eyebrow {
  display: inline-block;
  font-family: var(--serif);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}

/* -------- Layout -------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.25rem;
}
.section {
  padding: 64px 0;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
  min-height: 100vh;
  background: var(--section-tone);
}
.section-head {
  max-width: 720px;
  margin-bottom: 3.5rem;
}
.section-head-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  max-width: none;
}
.section-text {
  margin-top: 1.5rem;
  font-size: 1.02rem;
  line-height: 1.75;
  max-width: 600px;
}
.section-positioning {
  background: var(--section-tone);
  padding-bottom: 96px;
}
.section-projects {
  background: var(--section-tone);
}
.section-process {
  background: var(--section-tone);
}
.section.section-projects,
.section.section-process {
  width: 100%;
  margin-left: 0;
  margin-right: 0;
}
.section-premium {
  background: var(--section-tone);
}

.section-positioning > .container {
  min-height: calc(100vh - 128px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* -------- Buttons -------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.95rem 1.5rem;
  font-size: 0.875rem;
  letter-spacing: 0.11em;
  border-radius: var(--radius);
  transition: all 0.3s var(--ease);
  cursor: pointer;
  white-space: nowrap;
  font-weight: 400;
  text-transform: uppercase;
  font-family: var(--serif);
}
.btn-sm {
  padding: 0.7rem 1.15rem;
  font-size: 0.8rem;
}
.btn-lg {
  padding: 1.1rem 1.9rem;
  font-size: 0.95rem;
}
.btn-primary {
  background: var(--text);
  color: #0d0d0d;
}
.btn-primary:hover {
  background: #f0f0f0;
  transform: translateY(-1px);
}
.btn-ghost {
  color: var(--text);
  border-bottom: 1px solid var(--text);
  border-radius: 0;
  padding: 0.5rem 0;
}
.btn-ghost svg {
  transition: transform 0.32s var(--ease), opacity 0.32s var(--ease);
}
.btn-ghost:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}
.btn-ghost:hover svg,
.btn-ghost:focus-visible svg {
  transform: translateX(6px);
}
.btn-outline {
  border: 1px solid var(--white);
  color: var(--white);
  background: transparent;
}
.btn-outline:hover {
  background: var(--white);
  color: var(--text);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text);
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.4rem;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.link-arrow:hover {
  color: var(--gold);
  border-color: var(--gold);
}

/* -------- Header -------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 1.02rem 0;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease),
    backdrop-filter 0.4s var(--ease), padding 0.4s var(--ease);
}
.site-header.scrolled {
  background: rgba(13, 13, 13, 0.88);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  box-shadow: 0 1px 0 var(--line), 0 8px 30px rgba(0, 0, 0, 0.35);
  padding: 1.02rem 0;
}
.site-header:not(.scrolled) .logo-img {
  filter: brightness(0) invert(1);
}
.site-header.scrolled .logo-img {
  filter: brightness(0) invert(1);
}
.site-header:not(.scrolled) .nav a {
  color: #ffffff;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.35);
}
.site-header:not(.scrolled) .nav a::after {
  background: rgba(255, 255, 255, 0.95);
}
.site-header:not(.scrolled) .nav a:hover {
  color: #ffffff;
}
.site-header:not(.scrolled) .header-inner > .btn {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.36);
  color: #ffffff;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.35);
}
.site-header:not(.scrolled) .header-inner > .btn:hover {
  background: rgba(255, 255, 255, 0.24);
  border-color: rgba(255, 255, 255, 0.52);
}
.site-header:not(.scrolled) .nav-toggle span {
  background: #ffffff;
}
.site-header .header-inner > .btn {
  border: 1px solid transparent;
  box-sizing: border-box;
}
.site-header.scrolled .header-inner > .btn {
  border-color: rgba(214, 214, 214, 0.26);
  text-shadow: none;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}
.logo-img {
  width: 212px;
  max-width: min(42vw, 212px);
  height: auto;
  display: block;
}
.site-header .logo-img {
  width: 168px;
  max-width: 168px;
}
.logo-mark {
  width: 36px;
  height: 36px;
  border: 1px solid var(--text);
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--text);
}
.logo-text {
  display: flex;
  flex-direction: column;
  font-family: var(--serif);
  font-size: 1.25rem;
  line-height: 1;
  color: var(--text);
}
.logo-text small {
  font-family: var(--sans);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 4px;
}
.nav {
  display: flex;
  gap: 2rem;
  margin-left: auto;
  margin-right: 1.5rem;
}
.nav a {
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-family: var(--serif);
  color: var(--text);
  position: relative;
  padding: 0.25rem 0;
  transition: color 0.3s var(--ease);
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  height: 1px;
  width: 0;
  background: var(--gold);
  transition: width 0.3s var(--ease);
}
.nav a:hover {
  color: var(--gold);
}
.nav a:hover::after {
  width: 100%;
}
.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  align-items: center;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.3s var(--ease), opacity 0.3s;
}
.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem 1.25rem 2rem;
  background: #101010;
  border-top: 1px solid var(--line);
}
.mobile-nav a {
  font-family: var(--serif);
  font-size: 1.5rem;
}
.mobile-nav a.btn {
  font-family: var(--sans);
  font-size: 0.875rem;
  align-self: flex-start;
  margin-top: 0.5rem;
}

/* -------- Hero -------- */
.hero {
  position: relative;
  min-height: 100vh;
  padding-top: clamp(8rem, 12vh, 10rem);
  padding-bottom: 4rem;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  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.1s var(--ease);
}
.hero-video.is-active {
  opacity: 1;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    108deg,
    rgba(12, 10, 9, 0.78) 0%,
    rgba(12, 10, 9, 0.56) 42%,
    rgba(12, 10, 9, 0.4) 100%
  );
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  width: 100%;
  position: relative;
  z-index: 2;
}
.hero-copy {
  max-width: 760px;
}
.hero-copy h1 {
  margin: 1.25rem 0 1.5rem;
  color: rgba(240, 240, 240, 0.94);
  text-shadow: 0 10px 26px rgba(0, 0, 0, 0.3);
}
.hero-copy h1 .hero-accent {
  color: #f0f0f0;
  font-style: italic;
  font-weight: 500;
}
.hero-copy h1 .hero-accent-soft {
  color: #bdbdbd;
  font-style: italic;
  font-weight: 500;
}
.badge {
  display: inline-block;
  padding: 0.5rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  font-size: 0.69rem;
  letter-spacing: 0.22em;
  font-weight: 400;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
  background: rgba(12, 10, 9, 0.44);
}
.hero .lead {
  color: rgba(219, 219, 219, 0.84);
  text-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
}
.hero-ctas {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  margin-top: 2.25rem;
  flex-wrap: wrap;
}
.hero .btn-primary {
  background: #d6d6d6;
  color: #0d0d0d;
}
.hero .btn-primary:hover {
  background: #efefef;
}
.hero .btn-ghost {
  color: rgba(255, 255, 255, 0.82);
  border-bottom-color: rgba(255, 255, 255, 0.48);
}
.hero .btn-ghost:hover {
  color: rgba(255, 255, 255, 0.96);
  border-bottom-color: rgba(255, 255, 255, 0.9);
}
.hero-scroll {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.98);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.hero-scroll span {
  display: inline-block;
  width: 66px;
  height: 2px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
}
.hero-scroll span::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform: translateX(-100%);
  animation: scrollLine 2.4s var(--ease) infinite;
}
@keyframes scrollLine {
  0% {
    transform: translateX(-100%);
  }
  60%,
  100% {
    transform: translateX(100%);
  }
}

/* -------- Posicionamento / features -------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}
.feature {
  padding: 2rem 1.5rem;
  background: linear-gradient(180deg, rgba(42, 42, 42, 0.78), rgba(28, 28, 28, 0.96));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease),
    border-color 0.4s var(--ease);
}
.feature:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: 0 20px 40px -25px rgba(0, 0, 0, 0.55);
}
.feature svg {
  width: 28px;
  height: 28px;
  color: var(--gold);
  margin-bottom: 1.25rem;
}
.feature h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}
.feature p {
  font-size: 0.95rem;
}

/* -------- Projetos -------- */
.section-projects {
  padding: 64px 0;
  background: var(--section-tone);
  position: relative;
  overflow: hidden;
}
.section-projects .projects-intro {
  padding-top: clamp(3rem, 8vh, 6rem);
}
.projects-intro,
.projects-shell {
  position: relative;
  z-index: 2;
}
.projects-intro .section-head {
  margin-bottom: clamp(1.25rem, 3vw, 2rem);
}
.projects-shell {
  --projects-gap: clamp(0.75rem, 1.2vw, 1rem);
  padding-bottom: 0.4rem;
  overflow: hidden;
  width: 100%;
}
.projects-showcase {
  display: flex;
  gap: var(--projects-gap);
  width: max-content;
  will-change: transform;
}
.project-tile {
  position: relative;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
  background: #090909;
  width: var(--project-card-width, calc((100% - var(--projects-gap)) / 2));
  height: clamp(340px, 46vh, 520px);
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 2px;
}
.project-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease), filter 0.8s var(--ease);
}
.project-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  pointer-events: none;
}
.project-overlay {
  position: absolute;
  inset: auto 0 0 0;
  display: grid;
  gap: 0.4rem;
  padding: 1.5rem 1.2rem;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.36) 45%,
    rgba(0, 0, 0, 0.76) 100%
  );
  transform: translateY(20px);
  opacity: 0;
  transition: opacity 0.42s var(--ease), transform 0.42s var(--ease);
}
.project-title {
  font-family: var(--serif);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.98rem;
  color: #f4f4f4;
}
.project-subtitle {
  font-size: 0.84rem;
  line-height: 1.55;
  color: rgba(222, 222, 222, 0.84);
}
.project-tile:hover img,
.project-tile:focus-visible img {
  transform: scale(1.07);
  filter: brightness(0.74);
}
.project-tile:hover .project-overlay,
.project-tile:focus-visible .project-overlay {
  opacity: 1;
  transform: translateY(0);
}
.project-tile:focus-visible {
  outline: 2px solid rgba(214, 214, 214, 0.8);
  outline-offset: -2px;
}

.project-lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(5, 5, 5, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 2rem 1rem;
}
.project-lightbox[hidden] {
  display: none;
}
.lightbox-frame {
  width: min(1120px, 92vw);
}
.lightbox-figure {
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: #0b0b0b;
}
.lightbox-figure img {
  width: 100%;
  max-height: 76vh;
  object-fit: contain;
  display: block;
}
.lightbox-caption {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
  padding: 1rem 1.25rem 1.2rem;
}
.lightbox-caption h3 {
  font-size: 1rem;
  color: #f2f2f2;
  margin: 0;
}
.lightbox-caption p {
  margin-top: 0.35rem;
  font-size: 0.86rem;
  color: rgba(214, 214, 214, 0.75);
}
#lightboxCounter {
  font-family: var(--serif);
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(214, 214, 214, 0.9);
}
.lightbox-nav,
.lightbox-close {
  position: absolute;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: #ffffff;
  background: rgba(10, 10, 10, 0.56);
  font-family: var(--serif);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.lightbox-close {
  top: 1rem;
  right: 1rem;
  font-size: 0.72rem;
  padding: 0.6rem 0.85rem;
}
.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  font-size: 1.6rem;
  line-height: 1;
}
.lightbox-prev {
  left: 1rem;
}
.lightbox-next {
  right: 1rem;
}

.section-process > .container {
  min-height: calc(100vh - 128px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.section-process {
  position: relative;
  overflow: hidden;
}
.process {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  padding-top: 3rem;
}
.process-track {
  position: absolute;
  top: 3rem;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--line);
}
.process-progress {
  display: block;
  height: 100%;
  width: 0;
  background: var(--gold);
  transition: width 0.28s var(--ease), height 0.28s var(--ease);
}
.process-step {
  position: relative;
  padding-top: 2rem;
  opacity: 0.2;
  transform: translateY(18px);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease), color 0.45s var(--ease);
}
.process-step.is-visible {
  opacity: 0.5;
  transform: translateY(0);
}
.process-step.is-current {
  opacity: 1;
}
.process-step::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 0;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--bg-soft);
  border: 1.5px solid var(--gold);
  transition: background 0.35s var(--ease), transform 0.35s var(--ease), border-color 0.35s var(--ease);
}
.process-step.is-current::before {
  background: var(--text);
  border-color: var(--text);
  transform: scale(1.18);
}
.step-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--gold);
  display: block;
  margin-bottom: 0.75rem;
}
.process-step h3 {
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
  transform: translateY(8px);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}
.process-step p {
  font-size: 0.95rem;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}
.process-step.is-visible h3,
.process-step.is-visible p {
  opacity: 0.55;
  transform: translateY(0);
}
.process-step.is-current h3,
.process-step.is-current p {
  opacity: 1;
  transform: translateY(0);
}

/* -------- Diferenciais premium -------- */
.section-premium {
  padding: 64px 0;
}
.section-premium > .premium-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  min-height: calc(100vh - 128px);
}
.premium-media {
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 2px;
  will-change: clip-path, transform;
}
.premium-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
}
.premium-copy h2 {
  margin: 1.25rem 0 1.5rem;
}
.premium-list {
  margin-top: 2rem;
  display: grid;
  gap: 0.85rem;
}
.premium-list li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--text);
  font-size: 0.98rem;
}
.premium-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 12px;
  height: 1px;
  background: var(--gold);
}

/* -------- Banner Móveis Tech -------- */
.section-tech-banner {
  position: relative;
  overflow: hidden;
  padding: 64px 0;
  background: var(--section-tone);
}
.tech-cinematic-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  transform: scale(0.94);
  transform-origin: center;
  animation: techBannerScaleIn 1s var(--ease) both;
}
.tech-cinematic-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  transform-origin: right center;
  animation: techBgZoom 22s ease-in-out infinite alternate;
}
.tech-cinematic-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.tech-cinematic-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(94deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.42) 48%, rgba(0, 0, 0, 0.12) 100%),
    radial-gradient(circle at 78% 48%, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0.26) 100%),
    radial-gradient(120% 100% at 50% 50%, rgba(0, 0, 0, 0) 60%, rgba(0, 0, 0, 0.32) 100%);
  pointer-events: none;
}
.tech-cinematic-content-wrap {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  padding: 0 1.25rem;
}
.tech-cinematic-content {
  max-width: min(700px, 56%);
  animation: techContentUp 0.9s var(--ease) both;
}
.tech-cinematic-content .eyebrow {
  margin-bottom: 0.9rem;
  color: rgba(255, 255, 255, 0.74);
}
.tech-cinematic-content h2 {
  margin: 0;
  color: rgba(250, 250, 250, 0.96);
  font-size: clamp(1.55rem, 2.75vw, 2.6rem);
  line-height: 1.02;
  letter-spacing: 0.05em;
  text-wrap: balance;
  text-shadow: 0 10px 28px rgba(0, 0, 0, 0.34);
}
.tech-cinematic-content p {
  margin-top: 1.5rem;
  max-width: 600px;
  color: rgba(225, 225, 225, 0.86);
  font-size: 1.02rem;
  line-height: 1.75;
  letter-spacing: 0.005em;
  font-family: var(--sans);
}
.tech-cinematic-actions {
  margin-top: 2rem;
}
.tech-cinematic-actions .btn {
  background: rgba(248, 248, 248, 0.94);
  color: #0c0c0c;
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.35s var(--ease);
}
.tech-cinematic-actions .btn:hover {
  background: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.32);
}
@keyframes techBgZoom {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.08);
  }
}
@keyframes techBannerScaleIn {
  0% {
    transform: scale(0.94);
    opacity: 0.8;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}
@keyframes techContentUp {
  0% {
    transform: translateY(20px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

/* -------- CTA final -------- */
.section-cta {
  position: relative;
  overflow: hidden;
  color: var(--white);
  padding: 64px 0 0;
  background: var(--section-tone);
  min-height: calc(100svh - clamp(240px, 26vh, 320px));
  display: flex;
  align-items: center;
  z-index: 3;
}
.cta-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.cta-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cta-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: transparent;
}
.cta-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  width: fit-content;
  max-width: calc(100% - 88px);
  box-sizing: border-box;
  margin: 0 auto;
  padding: 44px;
  background: var(--section-tone);
}
.cta-inner h2 {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}
.cta-inner h2,
.cta-inner p {
  color: var(--white);
  text-wrap: balance;
}
.cta-inner h2 em {
  color: var(--gold);
}
.cta-inner p {
  margin-top: 1.25rem;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.78);
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}
.cta-buttons {
  margin-top: 2.5rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* -------- Footer -------- */
.site-footer {
  background: #000000;
  color: rgba(255, 255, 255, 0.78);
  width: 100%;
  margin-left: 0;
  margin-right: 0;
  padding: 2.4rem 0 2rem;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}
.site-footer h4 {
  color: var(--white);
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  font-weight: 500;
}
.site-footer p {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.95rem;
  margin: 0.35rem 0;
}
.site-footer a:hover {
  color: var(--gold);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.logo-light .logo-mark {
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--white);
}
.logo-light .logo-text {
  color: var(--white);
}
.logo-light .logo-text small {
  color: rgba(255, 255, 255, 0.55);
}
.logo-light .logo-img {
  filter: brightness(0) invert(1);
}
.footer-about {
  margin-top: 1.25rem !important;
  max-width: 320px;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  padding-top: 1.5rem;
}
.footer-bottom-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-bottom-meta a {
  color: rgba(255, 255, 255, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.footer-bottom-meta a:hover {
  color: var(--text);
  border-color: var(--text);
}
.footer-social {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}
.footer-social a {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  color: rgba(255, 255, 255, 0.85);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.footer-social a:hover {
  transform: translateY(-2px);
  border-color: var(--text);
  color: var(--text);
}
.footer-social svg {
  width: 16px;
  height: 16px;
}

/* -------- Pop loja tech -------- */
.tech-pop {
  position: fixed;
  left: 50%;
  top: 50%;
  right: auto;
  bottom: auto;
  width: min(680px, calc(100vw - 3rem));
  aspect-ratio: 5 / 4;
  min-height: 480px;
  height: auto;
  border: 1px solid rgba(214, 214, 214, 0.18);
  border-radius: 2px;
  overflow: hidden;
  z-index: 80;
  box-shadow: 0 28px 76px rgba(0, 0, 0, 0.72);
  transform: translate(-50%, calc(-50% + 18px));
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.68);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease);
  z-index: 75;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
body.tech-pop-open::before {
  opacity: 1;
}
.tech-pop[data-open="true"] {
  opacity: 1;
  transform: translate(-50%, -50%);
  pointer-events: auto;
}
.tech-pop-bg {
  position: absolute;
  inset: 0;
}
.tech-pop-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}
.tech-pop-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 82% 18%, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0.34) 55%, rgba(0, 0, 0, 0.56) 100%),
    linear-gradient(180deg, rgba(5, 5, 5, 0.04) 0%, rgba(6, 6, 6, 0.22) 46%, rgba(6, 6, 6, 0.76) 100%);
}
.tech-pop-content {
  position: absolute;
  inset: 0;
  z-index: 1;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  height: 100%;
}
.tech-pop-copy {
  width: min(380px, 100%);
  padding: 0;
  background: transparent;
  border: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.tech-pop-copy .eyebrow {
  color: rgba(255, 255, 255, 0.84);
  margin-bottom: 0.55rem;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
}
.tech-pop-content h3 {
  color: #ffffff;
  font-size: 1.12rem;
  line-height: 1.24;
  margin: 0 0 1.1rem;
  max-width: 22ch;
  letter-spacing: 0.02em;
  text-transform: none;
}
.tech-pop-copy .btn {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  padding: 0.88rem 1.25rem;
}
.tech-pop-close {
  position: absolute;
  top: 0.7rem;
  right: 0.8rem;
  z-index: 2;
  width: auto;
  height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  border-radius: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  appearance: none;
  line-height: 1;
  font-size: 0.62rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.3s var(--ease), opacity 0.3s var(--ease), letter-spacing 0.3s var(--ease);
}
.tech-pop-close:hover {
  color: #ffffff;
  opacity: 0.95;
  letter-spacing: 0.27em;
}

/* -------- Tech Sequence Viewer -------- */
.section-tech-sequence {
  background: #050505;
  padding: 0;
}
.tech-sequence-scroll {
  min-height: clamp(1400px, 210vh, 1900px);
  padding: 64px 0;
}
.tech-sequence-sticky {
  position: sticky;
  top: max(84px, 9vh);
}
.tech-sequence-grid {
  display: grid;
  grid-template-columns: minmax(280px, 430px) minmax(0, 1fr);
  gap: clamp(1.6rem, 4vw, 4rem);
  align-items: center;
}
.tech-sequence-copy h2 {
  margin-bottom: 0.9rem;
}
.tech-sequence-copy .section-text {
  margin-top: 0;
  margin-bottom: 1.6rem;
}
.tech-sequence-viewer {
  width: 100%;
}
.tech-sequence-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border: 1px solid rgba(214, 214, 214, 0.12);
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 255, 255, 0.04) 0%, transparent 58%),
    #080808;
  overflow: hidden;
  user-select: none;
  touch-action: auto;
  perspective: 1200px;
  transform-style: preserve-3d;
}
.tech-sequence-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transform: translate3d(0, 0, 0) scale(1);
  transition: opacity 0.32s linear, transform 0.55s var(--ease);
  pointer-events: none;
  will-change: opacity, transform;
}
.tech-sequence-frame.is-active {
  opacity: 1;
}

/* -------- Reveal initial states (overridden if no JS / no GSAP) -------- */
[data-anim],
[data-reveal],
[data-stagger] > *,
[data-projects] > *,
[data-reveal-img] {
  /* base initial state set by JS only when GSAP is present */
}

@keyframes mobileHeroFadeUp {
  from {
    opacity: 0;
    transform: translate3d(0, 28px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@media (min-width: 761px) {
  .desktop-fade-up {
    opacity: 0;
    transform: translate3d(0, 28px, 0);
    transition:
      opacity 0.75s var(--ease),
      transform 0.85s var(--ease);
    transition-delay: var(--desktop-reveal-delay, 0ms);
    will-change: opacity, transform;
  }

  .desktop-fade-up.is-desktop-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

/* -------- Responsivo -------- */
@media (max-width: 1100px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .projects-showcase {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .section-premium > .premium-grid {
    grid-template-columns: 1fr;
  }
  .tech-sequence-grid {
    grid-template-columns: 1fr;
  }
  .tech-sequence-scroll {
    min-height: auto;
    padding: 64px 0;
  }
  .tech-sequence-sticky {
    position: static;
  }
  .tech-cinematic-content {
    max-width: min(760px, 68%);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 760px) {
  main {
    margin-bottom: 0;
  }

  .site-footer {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    z-index: 2;
    padding-top: 3rem;
    padding-bottom: max(2rem, env(safe-area-inset-bottom));
  }

  .site-footer.is-mobile-reveal-ready {
    opacity: 0.45;
    transform: translateY(56px);
    transition: opacity 0.65s var(--ease), transform 0.85s var(--ease);
    will-change: opacity, transform;
  }

  .site-footer.is-mobile-reveal-ready.is-mobile-revealed {
    opacity: 1;
    transform: translateY(0);
  }

  .mobile-reveal {
    opacity: 0;
    transform: translate3d(0, 24px, 0);
    transition:
      opacity 0.7s var(--ease),
      transform 0.8s var(--ease);
    transition-delay: var(--mobile-reveal-delay, 0ms);
    will-change: opacity, transform;
  }

  .mobile-reveal.is-mobile-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }

  .mobile-hero-reveal {
    animation: mobileHeroFadeUp 0.85s var(--ease) both;
    animation-delay: var(--mobile-hero-delay, 0ms);
    will-change: opacity, transform;
  }

  .section-cta,
  .store-products-section {
    position: relative;
    z-index: 3;
    box-shadow: 0 28px 48px rgba(0, 0, 0, 0.48);
  }

  .section-projects {
    min-height: auto;
    padding: 72px 0;
    overflow: visible;
  }
  .section-projects .projects-intro {
    padding-top: 0;
  }
  .projects-intro .section-head {
    margin-bottom: 2rem;
  }
  .section-process {
    min-height: auto;
    padding: 64px 0 88px;
    overflow: visible;
  }

  .section-positioning > .container,
  .section-process > .container,
  .section-premium > .premium-grid {
    min-height: auto;
    justify-content: flex-start;
  }

  .project-tile {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
  }
  .project-tile img {
    object-fit: cover;
    object-position: center;
  }

  .nav,
  .header-inner > .btn {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }
  .mobile-nav[data-open="true"] {
    display: flex;
  }
  .section-head-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .projects-showcase {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
    width: 100%;
    transform: none !important;
    will-change: auto;
  }
  .projects-shell {
    overflow: visible;
    padding-bottom: 0;
  }
  .project-tile {
    width: 100%;
  }
  .project-overlay {
    opacity: 1;
    transform: translateY(0);
    padding: 1rem;
    background: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.08) 0%,
      rgba(0, 0, 0, 0.24) 36%,
      rgba(0, 0, 0, 0.62) 100%
    );
  }
  .project-subtitle {
    font-size: 0.8rem;
  }
  .lightbox-frame {
    width: 94vw;
  }
  .lightbox-caption {
    flex-direction: column;
    align-items: flex-start;
  }
  .lightbox-nav {
    width: 38px;
    height: 38px;
    font-size: 1.35rem;
    top: auto;
    bottom: 0.85rem;
    transform: none;
  }
  .lightbox-prev {
    left: 0.85rem;
  }
  .lightbox-next {
    right: 0.85rem;
  }
  .process {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding-top: 0;
    padding-left: 1.75rem;
  }
  .process-track {
    top: 0;
    left: 5px;
    right: auto;
    bottom: 0;
    width: 1px;
    height: auto;
  }
  .process-progress {
    width: 100%;
    height: 0;
  }
  .process-step {
    padding-top: 0;
    padding-left: 0;
  }
  .process-step::before {
    top: 6px;
    left: -1.75rem;
  }
  .process-step.is-visible,
  .process-step.is-current {
    opacity: 1;
  }
  .process-step.is-visible h3,
  .process-step.is-visible p {
    opacity: 1;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .hero-scroll {
    display: none;
  }
  .section-tech-banner {
    padding: 64px 0;
  }
  .section-premium {
    padding-bottom: 64px;
  }
  .section-cta {
    min-height: min(72svh, 620px);
    padding: 0;
    align-items: flex-end;
  }
  .cta-bg img {
    object-position: 44% center;
  }
  .cta-bg::after {
    background:
      linear-gradient(180deg, rgba(5, 5, 5, 0.08) 28%, rgba(5, 5, 5, 0.82) 100%),
      linear-gradient(90deg, rgba(5, 5, 5, 0.44) 0%, rgba(5, 5, 5, 0.08) 78%);
  }
  .cta-inner {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 36px 1.25rem 42px;
    background: transparent;
    text-align: left;
  }
  .cta-inner h2 {
    max-width: 13ch;
    margin: 0;
    font-size: clamp(1.7rem, 8vw, 2.2rem);
    line-height: 1.08;
  }
  .cta-inner p {
    max-width: 34ch;
    margin: 1rem 0 0;
    font-size: 0.98rem;
    line-height: 1.6;
  }
  .cta-inner p br {
    display: none;
  }
  .cta-buttons {
    justify-content: flex-start;
    margin-top: 1.4rem;
  }
  .cta-buttons .btn {
    width: 100%;
    max-width: 340px;
    justify-content: center;
    padding-inline: 1rem;
    white-space: normal;
    text-align: center;
  }
  .tech-cinematic-content {
    max-width: 100%;
  }
  .tech-sequence-stage {
    aspect-ratio: 4 / 3;
  }
  .tech-cinematic-content h2 {
    font-size: clamp(1.35rem, 6vw, 2rem);
    letter-spacing: 0.035em;
  }
  .tech-cinematic-content p {
    margin-top: 0.95rem;
    font-size: 0.98rem;
    line-height: 1.62;
  }
  .tech-cinematic-actions {
    margin-top: 1.35rem;
  }
  .tech-pop {
    right: auto;
    left: 50%;
    width: min(calc(100vw - 32px), 420px);
    bottom: auto;
    aspect-ratio: auto;
    height: min(72svh, 540px);
    min-height: 440px;
    max-height: calc(100svh - 32px);
    border-radius: 2px;
  }
  .tech-pop-bg::after {
    background:
      linear-gradient(180deg, rgba(5, 5, 5, 0.08) 0%, rgba(5, 5, 5, 0.12) 42%, rgba(5, 5, 5, 0.86) 100%),
      linear-gradient(90deg, rgba(5, 5, 5, 0.34) 0%, rgba(5, 5, 5, 0.04) 72%);
  }
  .tech-pop-content {
    justify-content: flex-end;
    align-items: flex-start;
    padding: 1.25rem;
  }
  .tech-pop-copy {
    width: min(300px, 100%);
  }
  .tech-pop-copy .eyebrow {
    margin-bottom: 0.45rem;
  }
  .tech-pop-content h3 {
    margin-bottom: 0.9rem;
    max-width: 21ch;
  }
  .tech-pop-copy .btn {
    padding: 0.8rem 1.05rem;
  }
}

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