/* ═══════════════════════════════════════════════════════════════════
   SABORES EM FOCO — Stylesheet
   Estrutura:
     01. Variáveis de tema (dark / light)
     02. Reset & Base
     03. Navbar + Theme Toggle
     04. Hero (sticky-track + canvas)
     05. Sticky Gallery
     06. About
     07. Showcase (ScrollTiltedGrid)
     08. Services + Carousel
     09. CTA
     10. Footer
     11. Reveal animation
     12. Responsive — 800px
     13. Responsive — 480px
═══════════════════════════════════════════════════════════════════ */


/* ─── 01. VARIÁVEIS DE TEMA ────────────────────────────────────── */

/* Tema escuro (padrão) */
:root {
  --bg:          #070707;
  --surface:     #0e0e0e;
  --text:        #ede8e1;
  --text-dim:    #888880;
  --text-muted:  #444440;
  --border:      #1c1c1c;

  --nav-scrolled-bg:     rgba(7,7,7,0.88);
  --nav-scrolled-border: rgba(255,255,255,0.04);
  --nav-link-color:      rgba(255,255,255,0.75);
  --nav-link-hover:      #ffffff;

  --cta-btn-border: #2e2e2e;
  --cta-btn-hover-bg: rgba(255,255,255,0.03);
  --service-hover-border: #2e2e2e;
}

/* Tema claro */
[data-theme="light"] {
  --bg:          #faf8f5;
  --surface:     #f0ede8;
  --text:        #1a1916;
  --text-dim:    #6b6860;
  --text-muted:  #a8a49e;
  --border:      #e0dbd4;

  --nav-scrolled-bg:     rgba(250,248,245,0.92);
  --nav-scrolled-border: rgba(0,0,0,0.07);
  --nav-link-color:      rgba(26,25,22,0.70);
  --nav-link-hover:      #1a1916;

  --cta-btn-border: var(--border);
  --cta-btn-hover-bg: rgba(0,0,0,0.03);
  --service-hover-border: var(--text-muted);
}


/* ─── 02. RESET & BASE ─────────────────────────────────────────── */

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

/*
  Sem overflow no html/body — qualquer overflow:hidden ou clip aqui
  pode promover o body a scroll container e matar position:sticky.
  Cada seção controla seu próprio clip localmente.
*/
html {
  scroll-behavior: auto;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  transition: background 0.35s ease, color 0.35s ease;
}

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


/* ─── 03. NAVBAR + THEME TOGGLE ────────────────────────────────── */

nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 200;
  padding: 28px 52px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  animation: navFade 1.2s ease 0.4s both;
  transition: background 0.4s ease, border-bottom 0.4s ease, padding 0.4s ease;
}

@keyframes navFade {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 17px;
  letter-spacing: 0.02em;
  color: var(--text);
  text-decoration: none;
  transition: color 0.3s;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
}

.nav-links a {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--nav-link-color);
  text-decoration: none;
  transition: color 0.3s, opacity 0.3s;
}

.nav-links a:hover {
  color: var(--nav-link-hover);
  opacity: 1;
}

/* Botão de toggle dark/light */
.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-dim);
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: border-color 0.3s, color 0.3s, background 0.3s;
}

.theme-toggle:hover {
  color: var(--text);
  border-color: var(--text-muted);
  background: rgba(128,128,128,0.06);
}

.theme-toggle svg {
  width: 15px;
  height: 15px;
  pointer-events: none;
}

/* Mostra sol no dark (→ vai para light) | Mostra lua no light (→ vai para dark) */
:root                  .icon-moon { display: none; }
[data-theme="light"]   .icon-sun  { display: none; }
[data-theme="light"]   .icon-moon { display: block; }


/* ─── SECTION HELPERS ───────────────────────────────────────────── */

.s-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.s-title {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.02em;
}


/* ─── 04. HERO ──────────────────────────────────────────────────── */

/*
  Técnica sticky-track (mesma do Apple MacBook Pro):
  #hero-track tem altura total = 100vh + espaço de scrub.
  #hero é position:sticky top:0 — fica preso no topo enquanto
  o track tem scroll sobrando. Sem scroll-hijack.
*/

#hero-track {
  height: 250vh;
}

#hero {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* Canvas de frames — opacity controlada via JS */
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.hero-canvas.ready { opacity: 1; }

/* Barra de progresso na base do hero */
.hero-progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: rgba(255,255,255,0.5);
  z-index: 10;
  transition: width 0.1s linear;
}

/* Overlay gradiente — permanece escuro (canvas tem bg escuro em qualquer tema) */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(7,7,7,0.25) 0%,
    rgba(7,7,7,0.05) 35%,
    rgba(7,7,7,0.60) 80%,
    rgba(7,7,7,0.92) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 32px;
  animation: heroFade 1.4s cubic-bezier(0.22,1,0.36,1) 0.6s both;
}

@keyframes heroFade {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-eyebrow {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 28px;
  text-shadow: 0 0 20px rgba(255,235,200,0.3);
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(52px, 7.5vw, 108px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: #ffffff;
  text-shadow:
    0 0 40px rgba(255,245,230,0.35),
    0 0 80px rgba(255,235,200,0.18),
    0 2px 8px rgba(0,0,0,0.6);
}

.hero-title em {
  font-style: italic;
  opacity: 0.6;
  text-shadow:
    0 0 50px rgba(255,245,230,0.25),
    0 0 100px rgba(255,220,160,0.12);
}

/* Indicador de scroll */
.hero-scroll {
  position: absolute;
  bottom: 44px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.hero-scroll span {
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.scroll-bar {
  width: 1px;
  height: 44px;
  position: relative;
  overflow: hidden;
  background: var(--border);
}

.scroll-bar::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 1px;
  height: 100%;
  background: var(--text-dim);
  animation: scrollDrop 2s cubic-bezier(0.22,1,0.36,1) infinite;
}

@keyframes scrollDrop {
  0%   { top: -100%; }
  60%  { top: 100%; }
  100% { top: 100%; }
}


/* ─── 05. STICKY GALLERY ────────────────────────────────────────── */

#gallery {
  background: var(--bg);
  padding-top: 140px;
  padding-bottom: 160px;
  /*
    overflow: clip clipa SEM criar scroll container,
    então position:sticky da coluna central continua funcionando.
  */
  overflow: clip;
  transition: background 0.35s ease;
}

.gallery-intro {
  text-align: center;
  padding: 0 48px 88px;
}

.gallery-intro .s-title {
  font-size: clamp(36px, 4.5vw, 62px);
}

.gallery-intro .s-title em {
  font-style: italic;
  opacity: 0.5;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
  padding: 0 6px;
}

.gallery-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.gallery-col .g-img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: 3px;
  transition: opacity 0.4s;
}

.gallery-col .g-img:hover { opacity: 0.85; }

/* Coluna central — sticky */
.gallery-col-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.gallery-col-sticky .g-img {
  flex: 1;
  width: 100%;
  object-fit: cover;
  border-radius: 3px;
  transition: opacity 0.4s;
}

.gallery-col-sticky .g-img:hover { opacity: 0.85; }


/* ─── 06. ABOUT ─────────────────────────────────────────────────── */

#about {
  padding: 160px 52px;
  border-top: 1px solid var(--border);
}

.about-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: center;
}

.about-title {
  font-size: clamp(38px, 3.8vw, 58px);
}

.about-title em {
  font-style: italic;
  opacity: 0.5;
}

.about-stats {
  display: flex;
  gap: 52px;
  margin-top: 56px;
  padding-top: 52px;
  border-top: 1px solid var(--border);
}

.stat-n {
  font-family: 'Playfair Display', serif;
  font-size: 52px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.stat-l {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.about-body p {
  font-size: 16px;
  line-height: 1.85;
  color: var(--text-dim);
  margin-bottom: 20px;
}

.about-body p:last-child { margin-bottom: 0; }


/* ─── 07. SHOWCASE (ScrollTiltedGrid) ──────────────────────────── */

#showcase {
  padding: 80px 0 0;
  border-top: 1px solid var(--border);
  overflow: clip;
}

.showcase-intro {
  text-align: center;
  padding: 0 48px;
}

.showcase-intro .s-title {
  font-size: clamp(36px, 4.5vw, 62px);
}

.showcase-intro .s-title em {
  font-style: italic;
  opacity: 0.5;
}

.tilt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 24px;
  max-width: 820px;
  margin: 0 auto;
  padding: 20vh 24px 20vh;
}

.t-tile {
  position: relative;
  z-index: 10;
  margin: 0;
  perspective: 900px;
  will-change: transform;
}

.t-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 3/4;
  border-radius: 6px;
  overflow: hidden;
  will-change: filter, transform;
  filter: blur(8px) brightness(0) contrast(4);
  backface-visibility: hidden;
}

.t-inner {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  will-change: transform;
  backface-visibility: hidden;
}


/* ─── 08. SERVICES + CAROUSEL ──────────────────────────────────── */

#services {
  padding: 140px 0 160px;
  border-top: 1px solid var(--border);
}

.services-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  padding: 0 52px;
}

/* Carousel */
.carousel-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.carousel-viewport {
  position: relative;
  width: 100%;
  height: 430px;
  perspective: 1000px;
  perspective-origin: 50% 50%;
  overflow: clip;
  mask-image: linear-gradient(
    to right,
    transparent 0%, black 16%, black 84%, transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%, black 16%, black 84%, transparent 100%
  );
}

.carousel-item {
  position: absolute;
  width: 242px;
  height: 430px;
  top: 0;
  left: 50%;
  margin-left: -121px;
  border-radius: 10px;
  overflow: hidden;
  transition:
    transform 0.75s cubic-bezier(0.22,1,0.36,1),
    filter    0.75s cubic-bezier(0.22,1,0.36,1),
    opacity   0.75s cubic-bezier(0.22,1,0.36,1);
  will-change: transform, filter, opacity;
}

.ci-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.75s cubic-bezier(0.22,1,0.36,1);
}

.carousel-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.3);
  transition: opacity 0.75s ease;
  pointer-events: none;
}

.carousel-item[data-pos="0"]::after { opacity: 0; }

.ci-label {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  background: rgba(0,0,0,0.4);
  padding: 4px 10px;
  border-radius: 20px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s;
}

.carousel-item[data-pos="0"] .ci-label { opacity: 1; }

.ci-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: rgba(255,255,255,0.75);
  border-radius: 0 2px 2px 0;
  z-index: 10;
  transition: none;
}

/* Posições */
.carousel-item[data-pos="-2"] {
  transform: translateX(-92%) rotateY(45deg) scale(0.52);
  filter: blur(9px); opacity: 0.15; z-index: 0;
}
.carousel-item[data-pos="-1"] {
  transform: translateX(-64%) rotateY(32deg) scale(0.78);
  filter: blur(5px); opacity: 0.65; z-index: 1;
}
.carousel-item[data-pos="0"] {
  transform: translateX(0) rotateY(0deg) scale(1);
  filter: none; opacity: 1; z-index: 3; cursor: pointer;
}
.carousel-item[data-pos="1"] {
  transform: translateX(64%) rotateY(-32deg) scale(0.78);
  filter: blur(5px); opacity: 0.65; z-index: 1;
}
.carousel-item[data-pos="2"] {
  transform: translateX(92%) rotateY(-45deg) scale(0.52);
  filter: blur(9px); opacity: 0.15; z-index: 0;
}
.carousel-item:not([data-pos="-2"]):not([data-pos="-1"]):not([data-pos="0"]):not([data-pos="1"]):not([data-pos="2"]) {
  opacity: 0; pointer-events: none; z-index: 0;
}

/* Dots */
.carousel-dots { display: flex; gap: 7px; align-items: center; }

.c-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--text-muted);
  transition: all 0.4s cubic-bezier(0.22,1,0.36,1);
  cursor: pointer;
}

.c-dot.active {
  width: 22px;
  border-radius: 2px;
  background: var(--text-dim);
}

/* Texto de serviços */
.services-title {
  font-size: clamp(26px, 2.6vw, 40px);
  margin-bottom: 44px;
}

.services-title em { font-style: italic; opacity: 0.5; }

.services-list { display: flex; flex-direction: column; }

.service-item {
  display: flex;
  gap: 22px;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
  transition: border-color 0.3s;
}

.service-item:first-child { border-top: 1px solid var(--border); }

.service-item:hover { border-bottom-color: var(--service-hover-border); }

.service-num {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  padding-top: 2px;
  min-width: 26px;
}

.service-name {
  font-size: 15px;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 5px;
}

.service-desc {
  font-size: 13px;
  line-height: 1.75;
  color: var(--text-dim);
}


/* ─── 09. CTA ───────────────────────────────────────────────────── */

#cta {
  position: relative;
  padding: 140px 52px 120px;
  text-align: center;
  border-top: 1px solid var(--border);
}

/* Penumbra — lado sombra da diagonal */
.cta-shadow-veil {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: linear-gradient(
    -45deg,
    rgba(0,0,0,0.32) 0%,
    rgba(0,0,0,0.18) 26%,
    transparent      46%,
    transparent      54%,
    rgba(0,0,0,0.06) 74%,
    rgba(0,0,0,0.20) 100%
  );
}

/* Feixe de luz diagonal (dark mode: screen blend — adiciona luz) */
.cta-beam-strip {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 10;
  mix-blend-mode: screen;
  background: linear-gradient(
    -45deg,
    transparent            20%,
    rgba(255,245,155,0.02) 34%,
    rgba(255,248,175,0.16) 41%,
    rgba(255,252,205,0.40) 45%,
    rgba(255,255,230,0.60) 48.5%,
    rgba(255,255,242,0.68) 50%,
    rgba(255,255,230,0.60) 51.5%,
    rgba(255,252,205,0.40) 55%,
    rgba(255,248,175,0.16) 59%,
    rgba(255,245,155,0.02) 66%,
    transparent            78%
  );
}

/* Light mode: feixe frio acinzentado — destaca sobre fundo branco */
[data-theme="light"] .cta-beam-strip {
  mix-blend-mode: multiply;
  background: linear-gradient(
    -45deg,
    transparent                   20%,
    rgba(185,190,205,0.05)        33%,
    rgba(165,172,190,0.28)        39%,
    rgba(148,156,175,0.52)        44%,
    rgba(138,147,168,0.64)        48%,
    rgba(132,142,164,0.70)        50%,
    rgba(138,147,168,0.64)        52%,
    rgba(148,156,175,0.52)        56%,
    rgba(165,172,190,0.28)        61%,
    rgba(185,190,205,0.05)        67%,
    transparent                   78%
  );
}

[data-theme="light"] .cta-shadow-veil {
  background: linear-gradient(
    -45deg,
    rgba(0,0,0,0.07) 0%,
    rgba(0,0,0,0.03) 26%,
    transparent      46%,
    transparent      54%,
    rgba(0,0,0,0.01) 74%,
    rgba(0,0,0,0.05) 100%
  );
}

/* Conteúdo: acima do veil (1), abaixo do beam (10) */
.cta-content { position: relative; z-index: 5; }

.cta-eyebrow {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 36px;
}

.cta-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(56px, 9vw, 130px);
  font-weight: 400;
  line-height: 1.0;
  letter-spacing: -0.03em;
  margin-bottom: 64px;
  /* Luz de canto superior direito → sombra projetada para baixo-esquerda */
  text-shadow:
    -10px  10px 30px rgba(0,0,0,0.98),
     -5px   5px 15px rgba(0,0,0,0.85),
     -2px   2px  6px rgba(0,0,0,0.70),
      4px  -4px 14px rgba(255,240,150,0.07);
}

/* Light mode: sombras mais sutis */
[data-theme="light"] .cta-title {
  text-shadow:
    -4px  4px 16px rgba(0,0,0,0.12),
    -2px  2px  8px rgba(0,0,0,0.08);
}

.cta-title em {
  font-style: italic;
  opacity: 0.45;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 18px 44px;
  border: 1px solid var(--cta-btn-border);
  border-radius: 50px;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.35s, background 0.35s, color 0.35s;
}

.cta-btn:hover {
  border-color: var(--text-dim);
  background: var(--cta-btn-hover-bg);
}

.cta-arrow {
  font-size: 16px;
  transition: transform 0.35s cubic-bezier(0.22,1,0.36,1);
}

.cta-btn:hover .cta-arrow { transform: translateX(5px); }


/* ─── 10. FOOTER ────────────────────────────────────────────────── */

footer {
  padding: 36px 52px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-logo {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 15px;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.footer-links a {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover { color: var(--text-dim); }

.footer-copy {
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}


/* ─── 11. REVEAL ON SCROLL ──────────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity   0.9s cubic-bezier(0.22,1,0.36,1),
    transform 0.9s cubic-bezier(0.22,1,0.36,1);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}


/* ═══════════════════════════════════════════════════════════════════
   12. RESPONSIVE — 800px
═══════════════════════════════════════════════════════════════════ */

@media (max-width: 800px) {

  /* NAV */
  nav {
    padding: 18px 22px;
    justify-content: space-between;
  }

  .nav-links { display: none; }

  /* HERO */
  #hero-track   { height: 220vh; }
  .hero-content { padding: 0 20px; }
  .hero-eyebrow { font-size: 9px; letter-spacing: 0.16em; margin-bottom: 20px; }
  .hero-scroll  { bottom: 28px; }

  /* GALLERY — 3 colunas idênticas ao desktop */
  #gallery {
    padding-top: 72px;
    padding-bottom: 80px;
    overflow: clip;
  }

  .gallery-intro { padding: 0 22px 52px; }
  .gallery-intro .s-title { font-size: clamp(26px, 7vw, 40px); }

  .gallery-grid {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 3px;
    padding: 0 3px;
  }

  .gallery-col:last-child { display: flex; }

  .gallery-col-sticky {
    display: flex;
    position: sticky;
    top: 0;
    height: 100vh;
    flex-direction: column;
    gap: 3px;
  }

  .gallery-col-sticky .g-img {
    flex: 1;
    width: 100%;
    object-fit: cover;
  }

  .gallery-col .g-img { aspect-ratio: 3/4; }

  /* ABOUT */
  #about { padding: 72px 22px; }

  .about-inner {
    grid-template-columns: 1fr;
    gap: 44px;
    padding: 0;
    max-width: 100%;
  }

  .about-title br { display: none; }

  .about-title {
    font-size: clamp(36px, 9.8vw, 52px);
    line-height: 1.06;
  }

  .about-stats  { gap: 24px; margin-top: 36px; padding-top: 32px; flex-wrap: wrap; }
  .stat-n       { font-size: 38px; }
  .about-body p { font-size: 15px; }

  /* SHOWCASE */
  #showcase { padding: 60px 0 80px; }
  .showcase-intro { padding: 0 22px; }
  .showcase-intro .s-title { font-size: clamp(26px, 7vw, 40px); }

  .tilt-grid {
    gap: 14px 10px;
    padding: 8vh 14px 8vh;
    max-width: 100%;
  }

  /* SERVICES */
  #services { padding: 72px 0 88px; }

  .services-inner {
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 0 22px;
  }

  .carousel-viewport { height: 350px; }

  .carousel-item {
    width: 192px;
    height: 342px;
    margin-left: -96px;
  }

  .carousel-item[data-pos="-1"] {
    transform: translateX(-58%) rotateY(27deg) scale(0.73);
    filter: blur(4px);
  }
  .carousel-item[data-pos="1"] {
    transform: translateX(58%) rotateY(-27deg) scale(0.73);
    filter: blur(4px);
  }
  .carousel-item[data-pos="-2"] {
    transform: translateX(-85%) rotateY(40deg) scale(0.50);
    filter: blur(8px);
  }
  .carousel-item[data-pos="2"] {
    transform: translateX(85%) rotateY(-40deg) scale(0.50);
    filter: blur(8px);
  }

  .services-title { font-size: clamp(22px, 6vw, 34px); margin-bottom: 32px; }
  .service-item   { padding: 18px 0; }
  .service-name   { font-size: 14px; }
  .service-desc   { font-size: 12px; }

  /* CTA */
  #cta         { padding: 88px 22px 72px; }
  .cta-eyebrow { font-size: 9px; margin-bottom: 28px; }
  .cta-title   { font-size: clamp(40px, 12vw, 64px); margin-bottom: 44px; }
  .cta-btn     { padding: 15px 30px; font-size: 11px; }

  /* SECTION HELPERS */
  .s-label { font-size: 9px; }
  .s-title { font-size: clamp(26px, 7vw, 42px); }

  /* FOOTER */
  footer {
    flex-direction: column;
    gap: 20px;
    text-align: center;
    padding: 28px 22px;
  }

  .footer-links { justify-content: center; }
}


/* ═══════════════════════════════════════════════════════════════════
   13. RESPONSIVE — 480px
═══════════════════════════════════════════════════════════════════ */

@media (max-width: 480px) {

  nav { padding: 16px 18px; }

  .hero-title   { font-size: clamp(30px, 10.5vw, 46px); }
  .hero-eyebrow { letter-spacing: 0.12em; }

  .gallery-grid {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2px;
    padding: 0 2px;
  }

  .gallery-col-sticky { gap: 2px; }
  .gallery-intro { padding: 0 18px 44px; }

  #about  { padding: 60px 18px; }
  .about-title { font-size: clamp(34px, 9.5vw, 48px); }
  .stat-n { font-size: 32px; }
  .about-stats { gap: 20px; }

  .tilt-grid { gap: 10px 8px; padding: 6vh 10px 6vh; }
  .showcase-intro { padding: 0 18px; }

  .services-inner { padding: 0 18px; }

  .carousel-viewport { height: 308px; }

  .carousel-item {
    width: 164px;
    height: 292px;
    margin-left: -82px;
  }

  .carousel-item[data-pos="-1"] {
    transform: translateX(-55%) rotateY(24deg) scale(0.70);
    filter: blur(4px);
  }
  .carousel-item[data-pos="1"] {
    transform: translateX(55%) rotateY(-24deg) scale(0.70);
    filter: blur(4px);
  }
  .carousel-item[data-pos="-2"] {
    transform: translateX(-82%) rotateY(36deg) scale(0.46);
    filter: blur(7px);
  }
  .carousel-item[data-pos="2"] {
    transform: translateX(82%) rotateY(-36deg) scale(0.46);
    filter: blur(7px);
  }

  #cta       { padding: 72px 18px 60px; }
  .cta-title { font-size: clamp(34px, 11.5vw, 56px); margin-bottom: 36px; }

  footer { padding: 22px 18px; gap: 16px; }
  .footer-links { gap: 16px; }
}


/* ─── LIGHT MODE — nav branca sobre hero, escurece ao scrollar ─── */

/* Sobre o hero: logo, links e toggle ficam brancos */
[data-theme="light"] .nav-logo {
  color: #ffffff;
}
[data-theme="light"] .nav-links a {
  color: rgba(255,255,255,0.78);
}
[data-theme="light"] .nav-links a:hover {
  color: #ffffff;
}
[data-theme="light"] .theme-toggle {
  color: rgba(255,255,255,0.85);
  border-color: rgba(255,255,255,0.28);
}
[data-theme="light"] .theme-toggle:hover {
  color: #ffffff;
  border-color: rgba(255,255,255,0.58);
  background: rgba(255,255,255,0.08);
}

/* Scrolled: barra branca aparece → elementos voltam ao escuro */
[data-theme="light"] nav.nav--scrolled .nav-logo {
  color: var(--text);
}
[data-theme="light"] nav.nav--scrolled .nav-links a {
  color: var(--nav-link-color);
}
[data-theme="light"] nav.nav--scrolled .nav-links a:hover {
  color: var(--nav-link-hover);
}
[data-theme="light"] nav.nav--scrolled .theme-toggle {
  color: var(--text-dim);
  border-color: var(--border);
}
[data-theme="light"] nav.nav--scrolled .theme-toggle:hover {
  color: var(--text);
  border-color: var(--text-muted);
  background: rgba(128,128,128,0.06);
}
