/* ============================================================
   BYMG v2 — Cinematic Parallax
   ============================================================ */

/* ================================================================
   THEME VARIABLES
   ================================================================ */
:root {
  --bg:          #F8F8F6;
  --bg2:         #EEEEEC;
  --bg3:         #E4E4E2;
  --text:        #111111;
  --text2:       #555555;
  --text3:       #666666;
  --accent:      #111111;
  --accent2:     #666666;
  --border:      rgba(0,0,0,0.1);
  --border2:     rgba(0,0,0,0.05);
  --card-bg:     rgba(0,0,0,0.04);
  --card-border: rgba(0,0,0,0.08);
  --nav-bg:      rgba(248,248,246,0.96);
  --btn-bg:      #111111;
  --btn-text:    #F8F8F6;
  --font-d:      'DM Sans', sans-serif;
  --font-b:      'DM Sans', sans-serif;
  --font-m:      'Space Mono', monospace;
  --fw-d:        700;
  --t-overlay:   #FFFFFF;
}

/* → variáveis e transições por tema: css/themes/ */

/* ================================================================
   LOGO SVG — theme-adaptive
   ================================================================ */
.bymg-logo { display: block; overflow: visible; flex-shrink: 0; }
.bymg-logo .lp { fill: var(--text); transition: fill 0.8s ease; }


.nav-logo    .bymg-logo { height: 30px; width: auto; }
.hero-logo   .bymg-logo { height: 42px; width: auto; }
.loader-logo .bymg-logo { height: 26px; width: auto; }

/* Loader é sempre escuro — ignora o tema e fica branco */
#bymg-loader .bymg-logo .lp { fill: rgba(255,255,255,0.9); }

/* ================================================================
   BASE
   ================================================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; cursor: none !important; }
html { scroll-behavior: auto; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-b);
  overflow: hidden;
  cursor: none;
  transition: background 0.8s ease, color 0.8s ease;
}
#smooth-scroll { will-change: transform; width: 100%; background: var(--bg); transition: background 0.8s ease; }

/* ================================================================
   CURSOR
   ================================================================ */
.cur-dot {
  width: 8px; height: 8px; background: white; border-radius: 50%;
  position: fixed; top: 0; left: 0; pointer-events: none;
  z-index: 9999; mix-blend-mode: difference; will-change: transform;
  transition: opacity 1s ease;
}
#cursorOuter {
  position: fixed; top: 0; left: 0; width: 56px; height: 56px;
  pointer-events: none; z-index: 9998; mix-blend-mode: difference;
  transition: opacity 1s ease;
}
#cursorInner { position: absolute; width: 100%; height: 100%; transform-origin: 50% 50%; }
.cursor-svg { width: 56px; height: 56px; overflow: visible; }
.cursor-text-el {
  fill: white; font-family: var(--font-m), 'Space Mono', monospace;
  font-size: 9px; letter-spacing: 3px;
}
#heroCursor {
  position: fixed; top: 0; left: 0;
  width: 10px; height: 10px; border-radius: 50%;
  border: 1.5px solid white;
  mix-blend-mode: difference;
  pointer-events: none; z-index: 9999;
  opacity: 0; will-change: transform;
  transition: opacity 1s ease;
}
body.in-hero .cur-dot     { opacity: 0; }
body.in-hero #cursorOuter { opacity: 0; }
body.in-hero #heroCursor  { opacity: 1; }

/* ================================================================
   TRANSITION OVERLAY
   ================================================================ */
#overlay { position: fixed; inset: 0; z-index: 8000; pointer-events: none; opacity: 0; }
#overlay.t-minimal {
  background: repeating-linear-gradient(90deg, #fff 0, #fff 18px, #111 18px, #111 20px);
  animation: tMinimal 1.5s cubic-bezier(0.76,0,0.24,1) forwards;
}
@keyframes tMinimal {
  0%   { clip-path:inset(0 100% 0 0); opacity:1; }
  18%  { clip-path:inset(0 0% 0 0);   opacity:1; }
  72%  { clip-path:inset(0 0% 0 0);   opacity:1; }
  100% { clip-path:inset(0 0% 0 100%); opacity:1; }
}
/* → transições de overlay por tema: css/themes/ */

/* ================================================================
   NAV
   ================================================================ */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000; height: 48px;
  background: transparent;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 48px;
  pointer-events: none;
  transition: background 0.35s ease, backdrop-filter 0.35s;
}
/* Traço inferior — desenha do centro para os cantos */
nav::after {
  content: ''; position: absolute;
  bottom: 0; left: 0; right: 0; height: 1px;
  background: var(--border2);
  transform: scaleX(0); transform-origin: center center;
  transition: transform 0.5s ease-in-out;
}
nav.scrolled {
  pointer-events: auto;
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
nav.nav-peek {
  pointer-events: auto;
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
nav.scrolled::after, nav.nav-peek::after {
  transform: scaleX(1);
}

/* Hamburger trigger — visível apenas no topo */
#nav-trigger {
  position: fixed; top: 0; left: 50%;
  transform: translateX(-50%);
  z-index: 999;
  height: 48px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; padding: 0 28px;
  opacity: 1; pointer-events: auto;
  transition: opacity 0.25s ease;
}
#nav-trigger span {
  display: block; width: 16px; height: 1.5px;
  border-radius: 2px;
  background: var(--text);
  opacity: 0.5;
  transform-origin: center;
  transition: background 0.8s ease;
  animation: navLinePulse 2.2s ease-in-out infinite;
}
#nav-trigger span:nth-child(1) { animation-delay: 0s; }
#nav-trigger span:nth-child(2) { animation-delay: 0.55s; }
#nav-trigger span:nth-child(3) { animation-delay: 1.1s; }

@keyframes navLinePulse {
  0%, 100% { transform: scaleX(1); }
  50%       { transform: scaleX(0.45); }
}

nav.scrolled ~ #nav-trigger span,
nav.nav-peek ~ #nav-trigger span {
  animation-play-state: paused;
}
nav.scrolled ~ #nav-trigger,
nav.nav-peek ~ #nav-trigger {
  opacity: 0;
  pointer-events: none;
}

/* Conteúdo do nav — fade rápido ao fechar, aparece depois do traço ao abrir */
.nav-left, .nav-right, .nav-audio-btn {
  opacity: 0;
  transition: opacity 0.15s ease 0s;
}
nav.scrolled .nav-left, nav.scrolled .nav-right, nav.scrolled .nav-audio-btn,
nav.nav-peek .nav-left, nav.nav-peek .nav-right, nav.nav-peek .nav-audio-btn {
  opacity: 1;
  transition: opacity 0.35s ease 0.5s;
}

.nav-left {
  display: flex; align-items: center; justify-content: space-between;
  padding-right: 40px;
}
.nav-right {
  display: flex; align-items: center; justify-content: space-between;
  padding-left: 40px;
}
.nav-logo {
  font-family: var(--font-d); font-size: 20px; font-weight: var(--fw-d);
  color: var(--text); letter-spacing: 4px; text-decoration: none;
  text-transform: uppercase; flex-shrink: 0;
  transition: color 0.4s, font-family 0.4s;
}

.hero-logo-slot {
  position: relative;
  height: 42px;
  margin-bottom: clamp(36px, 6vh, 48px);
  display: flex;
  align-items: center;
  justify-content: center;
}
#heroLogo {
  margin-bottom: 0;
  position: absolute;
  transition: opacity 1.0s cubic-bezier(0.16,1,0.3,1),
              transform 1.0s cubic-bezier(0.16,1,0.3,1);
}
.hero-snake-btn {
  position: absolute;
  width: 42px;
  height: 42px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  opacity: 0;
  pointer-events: none;
  overflow: visible;
  transform: translateY(40px) scale(0.98);
  transition: opacity 1.0s cubic-bezier(0.16,1,0.3,1),
              transform 1.0s cubic-bezier(0.16,1,0.3,1);
}
.hero-snake-btn.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.snake-icon-img {
  width: 42px;
  height: 42px;
  display: block;
}
.snake-icon-img path,
.snake-icon-img polygon {
  fill: var(--text);
  transition: fill 0.8s ease;
}
.snake-label {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-family: var(--font-m), monospace;
  font-size: 8px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, color 0.8s;
}
.hero-snake-btn:hover .snake-label { opacity: 1; }
.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-links a {
  font-family: var(--font-m); font-size: 9px; color: var(--text2);
  text-decoration: none; letter-spacing: 3px; text-transform: uppercase;
  transition: color 0.3s;
}
.nav-links a:hover { color: var(--accent); }
.nav-audio-btn {
  background: none; border: none; padding: 0; color: var(--text2);
  display: flex; align-items: center; transition: color 0.2s;
}
.nav-audio-btn:hover { color: var(--accent); }
.nav-audio-btn svg { width: 18px; height: 18px; display: block; }
.nav-audio-btn.playing { color: var(--accent); }
.lang-switch { display: flex; align-items: center; gap: 8px; }
.lang-sw-btn {
  background: transparent; border: none; color: var(--text2);
  font-family: var(--font-d); font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.10em; padding: 4px 6px;
  transition: color 0.2s;
}
.lang-sw-btn.active { color: var(--accent); }
.lang-sw-btn:hover:not(.active) { color: var(--text); }
.lang-sw-sep { color: var(--text2); font-size: 0.7rem; opacity: 0.4; user-select: none; }

/* ================================================================
   HERO — TYPOGRAPHIC CENTERED
   ================================================================ */
#hero {
  min-height: 100vh; min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: var(--bg);
  transition: background 0.8s;
  padding: 80px clamp(64px, 10vw, 160px);
}

#heroDots {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  max-width: 900px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 1;
}

/* Brand block */
.hero-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: clamp(24px, 4vh, 40px);
}

.bymg-logo-hero {
  height: clamp(50px, 10vw, 100px);
  width: auto;
}

.bymg-logo-hero .lp { fill: var(--text); transition: fill 0.8s ease; }

/* Eyebrow */
.h-eyebrow {
  display: block;
  font-family: var(--font-m);
  font-size: 9px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.7;
  margin-bottom: clamp(28px, 5vh, 52px);
  transition: color 0.8s;
}

/* Headline */
.hero-headline {
  font-family: var(--font-d);
  font-size: clamp(28px, min(4.2vw, 7vh), 60px);
  font-weight: var(--fw-d);
  color: var(--text);
  line-height: 1.05;
  letter-spacing: -0.5px;
  margin-bottom: clamp(36px, 5vh, 48px);
  position: relative;
  transition: font-family 0.5s, color 0.8s;
}

/* Word-reveal — linha por linha */
.hl-line {
  display: block;
  overflow: hidden;
  padding-top: 0.2em;
  margin-top: -0.2em;
  padding-bottom: 0.15em;
  margin-bottom: -0.15em;
}
.hl-inner {
  display: block;
  white-space: nowrap;
  transform: translateY(115%);
  transition: transform 0s;
}
.hero-headline.h-reveal .hl-inner {
  transform: translateY(0);
  transition: transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}
.hero-headline.h-reveal .hl-line:nth-child(1) .hl-inner { transition-delay: 0s; }
.hero-headline.h-reveal .hl-line:nth-child(2) .hl-inner { transition-delay: 0.15s; }
.hero-headline.h-reveal .hl-line:nth-child(3) .hl-inner { transition-delay: 0.30s; }

.hero-headline .hl-outline {
  color: transparent;
  -webkit-text-stroke: 1px var(--accent);
  transition: -webkit-text-stroke-color 0.8s;
}
.hero-headline .hl-fill {
  color: var(--accent);
  transition: color 0.8s;
}

/* Subtitle */
.hero-sub {
  font-family: var(--font-b);
  font-size: clamp(14px, 1.8vh, 18px);
  font-weight: 300;
  color: var(--text2);
  line-height: 1.8;
  max-width: 560px;
  margin-bottom: clamp(48px, 7vh, 80px);
}
.hero-sub strong { color: var(--text); font-weight: 600; }

/* CTAs */
.hero-ctas {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn-p {
  background: var(--accent);
  color: var(--bg);
  border: 1.5px solid var(--accent);
  padding: 16px 36px;
  font-family: var(--font-m);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-block;
  transition: transform 0.2s, box-shadow 0.2s, background 0.4s, color 0.4s, border-color 0.4s;
}
.btn-p:hover {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--accent2);
}
.btn-g {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--text);
  padding: 16px 36px;
  font-family: var(--font-m);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-block;
  transition: color 0.3s, border-color 0.3s;
}
.btn-g:hover { color: var(--accent); border-color: var(--accent); }

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

/* ================================================================
   MARQUEE
   ================================================================ */
.marquee-band {
  overflow: hidden; white-space: nowrap;
  border-top: 1px solid var(--border2);
  border-bottom: 1px solid var(--border2);
  padding: 8px 0;
  background: var(--bg2);
  transition: background 0.8s, border-color 0.8s;
}
.marquee-inner { display: flex; width: max-content; animation: marqueeScroll 30s linear infinite; }
.marquee-group { display: flex; flex-shrink: 0; }
.marquee-inner span {
  font-family: var(--font-m); font-size: 9px;
  letter-spacing: 5px; text-transform: uppercase; color: var(--text3);
}
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ================================================================
   PORTFÓLIO
   ================================================================ */
.section-label {
  font-family: var(--font-m);
  font-size: 10px;
  color: var(--accent);
  letter-spacing: 5px;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.section-headline {
  font-family: var(--font-d);
  font-size: clamp(48px,6vw,80px);
  font-weight: var(--fw-d);
  color: var(--text);
  line-height: 0.9;
  letter-spacing: -1px;
  margin-bottom: 56px;
  transition: font-family 0.5s, color 0.8s;
}

#portfolio {
  position: relative;
  background: var(--bg);
  transition: background 0.8s;
}

/* ── Cabeçalho da secção ── */
.port-section-head {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 32px clamp(64px, 10vw, 160px) 20px;
  border-bottom: 1px solid var(--border2);
}
.port-section-head .section-label { margin-bottom: 0; }
.port-section-head .section-headline { margin-bottom: 0; }


/* ================================================================
   SOBRE + SERVIÇOS — split, sem marcador de secção visível
   ================================================================ */
#sobre {
  background: var(--bg2);
  border-top: 1px solid var(--border2);
  transition: background 0.8s;
}

.sobre-block {
  padding: clamp(60px,8vw,100px) clamp(64px,8vw,120px);
  max-width: 640px;
  display: flex; flex-direction: column; justify-content: center;
}

#servicos {
  display: flex; align-items: stretch;
  background: var(--bg2);
  border-top: 1px solid var(--border2);
  transition: background 0.8s;
}

.srv-block {
  padding: clamp(60px,8vw,100px) clamp(64px,8vw,120px);
  flex-shrink: 0;
  width: clamp(280px, 38%, 500px);
}

#srv-preview-root {
  flex: 1;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.sobre-kicker {
  font-family: var(--font-m); font-size: 9px; color: var(--accent);
  letter-spacing: 5px; text-transform: uppercase; margin-bottom: 24px;
}
.sobre-headline {
  font-family: var(--font-d);
  font-size: clamp(28px,3.5vw,48px);
  font-weight: var(--fw-d); color: var(--text);
  line-height: 1.05; letter-spacing: -0.5px; margin-bottom: 24px;
  transition: font-family 0.5s, color 0.8s;
}
.sobre-headline em { font-style: italic; color: var(--accent); }
.sobre-rule {
  width: 40px; height: 2px; background: var(--accent);
  margin-bottom: 24px; transition: background 0.4s;
}
.sobre-body {
  font-family: var(--font-b); font-size: 14px; font-weight: 300;
  color: var(--text2); line-height: 1.9;
  transition: color 0.4s, font-family 0.5s;
}
.sobre-body strong { color: var(--text); font-weight: 600; }

.srv-block {
  display: flex; flex-direction: column; justify-content: center;
}
.srv-preview {
  width: 100%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.srv-preview.active {
  opacity: 1;
  pointer-events: auto;
}
.srv-preview-inner { width: 100%; }
.srv-preview .scene {
  font-size: 1.3vw;
  mask: linear-gradient(90deg, #0000 0%, rgba(255,255,255,0.4) 4%, #fff 10% 90%, rgba(255,255,255,0.4) 96%, #0000 100%);
  -webkit-mask: linear-gradient(90deg, #0000 0%, rgba(255,255,255,0.4) 4%, #fff 10% 90%, rgba(255,255,255,0.4) 96%, #0000 100%);
}
/* Portfolio carousel */
@media (min-width: 961px) {
  #carousel-root .scene { font-size: 1.4vw; }
  /* Reveal do carousel desativado no desktop */
  #carousel-root.reveal { opacity: 1; transform: none; transition: none; }
}
.srv-soon {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  height: 100%; padding: 40px;
  text-align: center;
}
.srv-soon-label {
  font-family: var(--font-m); font-size: 10px; letter-spacing: 5px;
  text-transform: uppercase; color: var(--accent); font-weight: 700;
  display: block; margin-bottom: 12px;
}
.srv-soon-sub {
  font-family: var(--font-b); font-size: 13px; font-weight: 700;
  color: var(--text3); line-height: 1.8;
}
.srv-kicker {
  font-family: var(--font-m); font-size: 9px; color: var(--accent);
  letter-spacing: 5px; text-transform: uppercase; margin-bottom: 24px;
}
.srv-list { list-style: none; }
.srv-list-item {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 0; border-bottom: 1px solid var(--border2);
  transition: padding-left 0.3s ease, opacity 0.3s ease;
}
.srv-list-item { text-decoration: none; color: inherit; }
.srv-list li:first-child .srv-list-item { border-top: 1px solid var(--border2); }
/* quando um item está ativo, os outros ficam mais apagados */
#servicos:has(.srv-active) .srv-list li:not(.srv-active) .srv-list-item { opacity: 0.35; }
.srv-list li.srv-active .srv-list-item,
.srv-list-item:hover { padding-left: 8px; }
.srv-num {
  font-family: var(--font-m); font-size: 8px; color: var(--text3);
  letter-spacing: 3px; min-width: 22px; flex-shrink: 0;
  transition: color 0.3s ease;
}
.srv-list li.srv-active .srv-num { color: var(--accent); }
.srv-info { flex: 1; display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.srv-name-row { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.srv-name {
  font-family: var(--font-d); font-size: clamp(16px,1.8vw,22px);
  color: var(--text); font-weight: var(--fw-d);
  transition: color 0.3s ease, font-family 0.5s;
}
.srv-list li.srv-active .srv-name,
.srv-list-item:hover .srv-name { color: var(--accent); }
.srv-tag { font-family: var(--font-m); font-size: 8px; letter-spacing: 2px; text-transform: uppercase; color: var(--text3); opacity: 0.6; transition: opacity 0.3s ease; }
.srv-price { font-family: var(--font-m); font-size: 10px; letter-spacing: 1px; color: var(--text3); white-space: nowrap; flex-shrink: 0; transition: color 0.3s ease; }
.srv-list li.srv-active .srv-price, .srv-list-item:hover .srv-price { color: var(--accent); }
.srv-arrow {
  font-family: var(--font-m); font-size: 14px; color: var(--accent);
  opacity: 0; transition: opacity 0.25s ease;
}
.srv-list li.srv-active .srv-arrow { opacity: 1; }
.srv-desc-block {
  margin-top: 32px; padding-top: 32px; border-top: 1px solid var(--border2);
}
.srv-desc-block p {
  font-family: var(--font-b); font-size: 13px; font-weight: 300;
  color: var(--text3); line-height: 1.8;
}

/* ================================================================
   CONTACTO
   ================================================================ */
#contacto {
  display: grid; grid-template-columns: 1fr 1fr;
  background: var(--bg3);
  border-top: 1px solid var(--border2);
  transition: background 0.8s;
}
.ct-left {
  padding: clamp(60px,8vw,100px) clamp(64px,8vw,120px);
  border-right: 1px solid var(--border2);
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
}
.ct-right {
  padding: clamp(60px,8vw,100px) clamp(64px,8vw,120px);
  display: flex; flex-direction: column; gap: 32px;
}
.contact-headline {
  font-family: var(--font-d);
  font-size: clamp(40px,5.5vw,72px);
  font-weight: var(--fw-d); color: var(--text);
  line-height: 0.92; letter-spacing: -1px;
  transition: font-family 0.5s, color 0.8s;
}
.contact-headline .ca { color: var(--accent); }
.contact-body {
  font-family: var(--font-b); font-size: 14px; font-weight: 300;
  color: var(--text2); line-height: 1.9; max-width: 380px;
}
.contact-body strong { color: var(--text); font-weight: 600; }

.contact-links { display: flex; flex-direction: column; }
.contact-link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 0; border-bottom: 1px solid var(--border);
  text-decoration: none; transition: padding-left 0.3s;
}
.contact-link:hover { padding-left: 8px; }
.cl-info { display: flex; flex-direction: column; gap: 3px; }
.cl-label { font-family: var(--font-m); font-size: 8px; color: var(--text3); letter-spacing: 3px; text-transform: uppercase; }
.cl-value { font-family: var(--font-b); font-size: 15px; font-weight: 600; color: var(--text); }
.cl-arrow { font-family: var(--font-d); font-size: 20px; color: var(--accent); opacity: 0; transition: opacity 0.3s; }
.contact-link:hover .cl-arrow { opacity: 1; }

.offer-box {
  background: var(--btn-bg); padding: 32px;
  border: 1px solid var(--card-border);
  transition: background 0.8s;
}
.ob-label {
  font-family: var(--font-m); font-size: 8px; color: var(--btn-text);
  opacity: 0.75; letter-spacing: 3px; text-transform: uppercase; margin-bottom: 8px;
}
.ob-headline {
  font-family: var(--font-d); font-size: 36px; font-weight: var(--fw-d);
  color: var(--btn-text); line-height: 0.9; margin-bottom: 16px;
  transition: font-family 0.5s;
}
.ob-headline span { color: var(--accent); }
[data-theme="minimal"] .ob-headline span { color: var(--btn-text); }
.ob-body {
  font-family: var(--font-b); font-size: 13px; font-weight: 300;
  color: var(--btn-text); opacity: 0.85; line-height: 1.7; margin-bottom: 24px;
}
.btn-contact {
  display: block; background: var(--accent); color: var(--bg);
  padding: 16px; text-align: center;
  font-family: var(--font-d); font-size: 18px; font-weight: var(--fw-d);
  letter-spacing: 3px; text-transform: uppercase; text-decoration: none;
  transition: opacity 0.3s, font-family 0.5s;
}
.btn-contact:hover { opacity: 0.85; }

/* ================================================================
   WHATSAPP BUTTON — floating
   ================================================================ */
#whatsapp-btn {
  position: fixed; bottom: calc(28px + env(safe-area-inset-bottom, 0px)); right: 28px; z-index: 8500;
  width: 52px; height: 52px; border-radius: 50%;
  background: #25d366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 18px rgba(37,211,102,0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
}
#whatsapp-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(37,211,102,0.5);
}
#whatsapp-btn .ti {
  font-size: 26px; color: #fff; line-height: 1;
}


/* ================================================================
   FOOTER
   ================================================================ */
footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 4rem clamp(64px, 10vw, 160px) 48px;
  font-family: var(--font-b);
  transition: background 0.8s, border-color 0.8s;
}
.ft-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 2rem;
}
.ft-pre-bar {
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border2);
}
.ft-brand-name {
  font-family: var(--font-d);
  font-weight: var(--fw-d);
  font-size: 0;
  letter-spacing: 0.16em;
  color: var(--text);
  text-transform: uppercase;
  margin-bottom: 1rem;
  transition: font-family 0.5s, opacity 0.2s, color 0.8s;
  text-decoration: none;
  display: block;
  cursor: pointer;
}
.ft-brand-name:hover { opacity: 0.7; }
.ft-brand-desc {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.75;
  max-width: 280px;
  margin-bottom: 2rem;
  transition: color 0.8s;
}
.ft-social-row { display: flex; gap: 16px; }
.ft-social-icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text2);
  font-size: 16px;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}
.ft-social-icon:hover { border-color: var(--accent); color: var(--accent); }
.ft-col-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text3);
  margin-bottom: 1.5rem;
  transition: color 0.8s;
}
.ft-nav-link {
  display: block;
  font-size: 13px;
  color: var(--text2);
  text-decoration: none;
  margin-bottom: 1rem;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}
.ft-nav-link:hover { color: var(--text); }
.ft-btn-orcamento {
  display: inline-block;
  margin-top: 0.5rem;
  background: var(--accent);
  color: var(--bg);
  padding: 11px 22px;
  font-family: var(--font-b);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  transition: opacity 0.2s, font-family 0.5s, background 0.8s, color 0.8s;
}
.ft-btn-orcamento:hover { opacity: 0.85; }
.ft-contact-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 0.3rem;
}
.ft-contact-val {
  font-size: 14px;
  color: var(--text);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: color 0.2s, opacity 0.2s;
}
.ft-contact-val:hover { opacity: 0.7; }
.ft-copy-btn {
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  display: flex;
  align-items: center;
  gap: 6px;
  position: relative;
  cursor: pointer;
}
.ft-copy-icon {
  font-size: 13px;
  color: var(--text);
  opacity: 0.5;
  transition: opacity 0.2s;
}
.ft-copy-btn:hover .ft-copy-icon { opacity: 1; }
.ft-copy-toast {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 0;
  background: var(--accent);
  color: #000000;
  font-family: var(--font-m);
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 4px;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s, transform 0.2s, background 0.8s, color 0.8s;
  pointer-events: none;
  white-space: nowrap;
}
.ft-copy-btn.copied .ft-copy-toast { opacity: 1; transform: translateY(0); }
.ft-contact-note {
  font-size: 10px;
  color: var(--text2);
  letter-spacing: 0.04em;
  margin-bottom: 1.5rem;
  opacity: 0.6;
}
.ft-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 0;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.ft-bar-left {
  flex: 1;
  font-size: 11px;
  color: var(--text2);
  letter-spacing: 0.04em;
  opacity: 0.6;
  transition: color 0.8s;
}
.ft-bar-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.ft-bar-link {
  font-size: 11px;
  color: var(--text2);
  text-decoration: none;
  letter-spacing: 0.04em;
  opacity: 0.6;
  transition: opacity 0.2s;
}
.ft-bar-link:hover { opacity: 1; }
.ft-bar-sep { color: var(--border); font-size: 11px; }
.ft-bar-legal { display: flex; align-items: center; gap: 1.5rem; }
.ft-bar-dev {
  font-size: 11px;
  color: var(--text2);
  letter-spacing: 0.04em;
  opacity: 0.6;
  transition: color 0.8s;
}
.ft-bar-dev strong { color: var(--text); font-weight: 700; }
.ft-logo-svg { height: clamp(18px, 2vw, 26px); width: auto; }
.ft-brand-contacts { display: none; }
.ft-contacts-mobile-legal { display: none; }
.ft-brand-contact-list { display: none; }

/* Mobile footer — dark design */
@media (max-width: 960px) {
  footer {
    background: #0c0c0c;
    border-top: none;
    padding: 2.5rem 10vw 2rem;
  }
  .ft-grid {
    grid-template-columns: 1fr;
    gap: 0;
    padding-bottom: 0;
    border-bottom: none;
  }
  .ft-col-brand { padding-bottom: 1.5rem; }
  .ft-brand-name {
    font-family: 'Barlow Condensed', 'Arial Black', sans-serif;
    font-weight: 900;
    font-size: 0;
    letter-spacing: -0.02em;
    line-height: 1;
    color: #ece9e3;
    margin-bottom: 0;
    transition: none;
  }
  .ft-brand-desc {
    font-size: 0.7rem;
    color: #666;
    margin: 0.65rem 0 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    line-height: 1.5;
    transition: none;
  }
  .ft-social-row { gap: 8px; }
  .ft-social-icon {
    width: 38px; height: 38px;
    border: 1px solid #222;
    color: #666;
    font-size: 16px;
    transition: border-color 0.2s, color 0.2s;
  }
  .ft-social-icon:hover { border-color: #ece9e3; color: #ece9e3; }
  .ft-grid > div:nth-child(2) {
    border-top: 1px solid #1a1a1a;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem 1rem;
  }
  .ft-col-title { display: none; }
  .ft-nav-link {
    width: calc(50% - 0.5rem);
    color: #5a5a5a;
    margin-bottom: 0;
    font-size: 0.85rem;
    transition: color 0.2s;
  }
  .ft-nav-link:hover { color: #ece9e3; }
  .ft-btn-orcamento {
    display: block;
    width: 100%;
    background: var(--accent);
    color: var(--bg);
    text-align: center;
    padding: 0.95rem 1rem;
    border-radius: 0;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    margin-top: 0.4rem;
  }
  .ft-btn-orcamento:hover { opacity: 0.85; }
  .ft-grid > div:nth-child(3) {
    border-top: 1px solid #1a1a1a;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
  }
  .ft-contact-val {
    color: #ece9e3;
    font-size: 0.875rem;
    margin-bottom: 0.4rem;
    transition: none;
  }
  .ft-copy-icon { color: rgba(255,255,255,0.5); }
  .ft-copy-btn:hover .ft-copy-icon { opacity: 1; color: rgba(255,255,255,0.9); }
  .ft-contact-note { color: #444; margin-bottom: 1rem; }
  .ft-bar {
    border-top: 1px solid #1a1a1a;
    padding-top: 1.5rem;
    flex-direction: column;
    align-items: center;
    gap: 4px;
  }
  .ft-bar-left { flex: none; width: 100%; color: #2e2e2e; opacity: 1; font-size: 0.68rem; text-align: center; }
  .ft-bar-right { flex: none; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
  .ft-pre-bar { text-align: center; }
  .ft-bar-dev { color: #2e2e2e; opacity: 1; font-size: 0.68rem; }
  .ft-bar-dev strong { color: #3a3a3a; }
  .ft-bar-legal { flex-wrap: wrap; gap: 6px; }
  .ft-bar-link { color: #2e2e2e; font-size: 0.68rem; opacity: 1; transition: color 0.2s; }
  .ft-bar-link:hover { color: #666; opacity: 1; }
  .ft-bar-sep { color: #1e1e1e; }
  /* Logo SVG in place of BYMG text */
  .ft-logo-svg { display: block !important; height: 30px; width: auto; }
  .ft-logo-svg .lp { fill: #ece9e3; }
  /* Brand top: logo only (contacts moved below slogan) */
  .ft-brand-top { display: flex; align-items: flex-start; margin-bottom: 1rem; }
  .ft-brand-contacts { display: none; }
  /* Contact list below slogan */
  .ft-brand-contact-list { display: flex; flex-direction: column; gap: 14px; margin: 0 0 1.25rem; }
  .ft-bc-item { display: flex; align-items: center; gap: 10px; }
  .ft-bc-icon { color: rgba(255,255,255,0.55); font-size: 15px; flex-shrink: 0; }
  .ft-bc-val { color: #ece9e3; font-size: 0.875rem; font-weight: 600; text-decoration: none; flex: 1; }
  .ft-bc-copy { background: none; border: none; padding: 4px; position: relative; cursor: pointer; line-height: 1; }
  .ft-bc-copy .ft-copy-icon { color: rgba(255,255,255,0.5); font-size: 14px; opacity: 1; transition: color 0.2s; }
  .ft-bc-copy:hover .ft-copy-icon { color: rgba(255,255,255,0.9); }
  /* Show/hide contacts vs legal */
  .ft-contacts-desktop { display: none; }
  .ft-contacts-mobile-legal { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; justify-content: center; }
  .ft-contacts-mobile-legal .ft-bar-link { color: #5a5a5a; font-size: 0.72rem; }
  .ft-contacts-mobile-legal .ft-bar-sep { color: #2e2e2e; }
  /* Hide desktop legal from ft-bar (moved to contacts slot) */
  .ft-bar-right .ft-bar-legal { display: none; }
}

/* ================================================================
   THEME SWITCHER — floating pill
   ================================================================ */
#sw-wrap {
  position: fixed; bottom: calc(8px + env(safe-area-inset-bottom, 0px)); left: 50%; transform: translateX(-50%);
  z-index: 5000;
  display: flex; align-items: center; justify-content: center;
  padding: 10px 48px 14px;
  cursor: pointer;
}
#sw-wrap::after {
  content: ''; display: block;
  width: 72px; height: 4px;
  background: rgba(255,255,255,0.35);
  border-radius: 100px;
  box-shadow: 0 0 0 1.5px rgba(0,0,0,0.18), 0 2px 6px rgba(0,0,0,0.15);
  transition: opacity 0.35s ease, width 0.35s ease;
}
#sw-wrap.sw-open::after {
  opacity: 0; width: 24px;
}
#sw-pause {
  position: fixed; bottom: calc(88px + env(safe-area-inset-bottom, 0px)); left: 50%; transform: translateX(-50%) translateY(8px);
  white-space: nowrap;
  background: var(--nav-bg); border: 1px solid var(--border);
  color: var(--text2); font-family: var(--font-m);
  font-size: 9px; letter-spacing: 1.5px; text-transform: uppercase;
  padding: 5px 16px; border-radius: 100px;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease, color 0.3s, border-color 0.3s, background 0.8s !important;
}
#sw-wrap.sw-open #sw-pause {
  opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto;
}
#sw-pause.paused {
  color: var(--accent); border-color: var(--accent);
}
#switcher {
  position: fixed; bottom: calc(44px + env(safe-area-inset-bottom, 0px)); left: 50%; transform: translateX(-50%) translateY(8px);
  background: var(--nav-bg);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 8px 16px;
  display: flex; align-items: center; gap: 8px;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.35);
  transition: opacity 0.35s ease, transform 0.35s ease, background 0.8s, border-color 0.8s;
  overflow-x: auto;
  opacity: 0; pointer-events: none;
}
#sw-wrap.sw-open #switcher {
  opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto;
}
#switcher::-webkit-scrollbar { display: none; }
.sw-btn {
  width: 20px; height: 20px; border-radius: 50%; border: none;
  padding: 0; background: none; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  opacity: 0.4; transition: opacity 0.2s, transform 0.2s;
  position: relative;
}
.sw-btn:hover { opacity: 0.9; transform: scale(1.15); }
.sw-btn.active { opacity: 1; transform: scale(1.2); }
.sw-swatch {
  width: 14px; height: 14px; border-radius: 50%; flex-shrink: 0;
  border: 1px solid rgba(255,255,255,0.15); pointer-events: none;
}
.sw-name { display: none; }
#sw-label {
  position: fixed; bottom: calc(6px + env(safe-area-inset-bottom, 0px)); left: 50%; transform: translateX(-50%);
  font-family: var(--font-d); font-size: 9px; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--text2); white-space: nowrap;
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s ease;
}
#sw-label.visible { opacity: 1; }

/* ================================================================
   TEXT CHANGE ANIMATIONS — usadas em mudança de tema e língua
   ================================================================ */
@keyframes textSlideOut {
  from { opacity: 1; transform: translateY(0px); }
  to   { opacity: 0; transform: translateY(-9px); }
}
@keyframes textSlideIn {
  from { opacity: 0; transform: translateY(9px); }
  to   { opacity: 1; transform: translateY(0px); }
}
.text-anim-out {
  animation: textSlideOut 0.26s cubic-bezier(0.4,0,1,1) forwards !important;
}
.text-anim-in {
  animation: textSlideIn 0.38s cubic-bezier(0,0,0.2,1) forwards !important;
}
@keyframes navFadeOut { from { opacity: 1; } to { opacity: 0; } }
@keyframes navFadeIn  { from { opacity: 0; } to { opacity: 1; } }
nav .text-anim-out { animation: navFadeOut 0.22s ease forwards !important; }
nav .text-anim-in  { animation: navFadeIn  0.34s ease forwards !important; }
#bymg-loader .text-anim-out { animation: navFadeOut 0.22s ease forwards !important; }
#bymg-loader .text-anim-in  { animation: navFadeIn  0.34s ease forwards !important; }

/* ================================================================
   REVEAL / SCROLL ANIMATIONS
   ================================================================ */
.reveal {
  opacity: 0; transform: translateY(32px);
  transition: opacity 1.0s cubic-bezier(0.16,1,0.3,1), transform 1.0s cubic-bezier(0.16,1,0.3,1);
}
.reveal.visible  { opacity: 1; transform: translateY(0); }
.reveal.exit-up  { opacity: 0; transform: translateY(-32px); }
.reveal-d1 { transition-delay: 0.12s; }
.reveal-d2 { transition-delay: 0.24s; }
.reveal-d3 { transition-delay: 0.36s; }
.reveal-d4 { transition-delay: 0.48s; }

.marquee-band.reveal { opacity: 1; }
.marquee-band.reveal.exit-up { opacity: 1; }


/* ================================================================
   GLOBAL TRANSITIONS
   ================================================================ */
*, *::before, *::after {
  transition-property: background-color, border-color, color, box-shadow;
  transition-duration: 0.8s; transition-timing-function: ease;
}
.btn-p, .btn-g, .srv-list-item, .contact-link, .sw-btn { transition: all 0.25s ease; }
nav { transition: background 0.5s, border-color 0.5s; }
.hero-headline, .sobre-headline, .contact-headline, .ob-headline,
.section-headline, .srv-name, .footer-logo { transition: opacity 1.0s cubic-bezier(0.16,1,0.3,1), transform 1.0s cubic-bezier(0.16,1,0.3,1), font-family 0.5s ease, color 0.8s ease; }

/* ================================================================
   COSMIC CANVAS
   ================================================================ */
#cosmicCanvas {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  opacity: 0; transition: opacity 1s ease;
}
[data-theme="cosmic"] #cosmicCanvas { opacity: 1; }

/* ================================================================
   SNAKE EASTER EGG
   ================================================================ */
#snakeBackdrop { position: fixed; inset: 0; z-index: 5999; background: rgba(0,0,0,0.45); display: none; pointer-events: none; opacity: 0; transition: opacity 0.4s ease; }
#snakeBackdrop.active { opacity: 1; pointer-events: auto; }
#snakeCanvas { position: fixed; inset: 0; z-index: 6000; pointer-events: none; display: none; }
#snakeClose {
  display: none;
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 6100;
  width: 44px;
  height: 44px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.15s;
  backdrop-filter: blur(6px);
}
#snakeClose:hover { background: rgba(255,255,255,0.18); transform: scale(1.1); }
#snakeClose.active { display: flex; }
#snakeDpad {
  display: none;
  position: fixed;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 6100;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  user-select: none;
  -webkit-user-select: none;
}
#snakeDpad.active { display: flex; }
.dpad-row { display: flex; gap: 4px; align-items: center; }
.dpad-center { width: 60px; height: 60px; }
.dpad-btn {
  width: 60px; height: 60px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.22);
  color: rgba(255,255,255,0.85);
  font-size: 18px;
  cursor: pointer;
  border-radius: 10px;
  backdrop-filter: blur(8px);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  display: flex; align-items: center; justify-content: center;
}
.dpad-btn:active { background: rgba(255,255,255,0.26); }

/* ================================================================
   LOADER
   ================================================================ */
#bymg-loader {
  position: fixed; inset: 0; z-index: 9000; background: #000;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  transition: opacity 1.2s ease;
  overflow: hidden;
  touch-action: none;
}
#bymg-loader.hiding { opacity: 0; pointer-events: none; }
#loader-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.loader-logo {
  position: absolute; top: 32px; left: 40px;
  font-family: 'Syne', sans-serif; font-size: 20px; font-weight: 800;
  color: rgba(255,255,255,0.9); letter-spacing: 0.06em; z-index: 2;
}
.loader-bar-wrap {
  position: absolute; bottom: 44px; left: 40px; right: 40px;
  z-index: 2; transition: opacity 0.4s ease;
}
.loader-bar-label {
  font-family: 'Space Mono', monospace; font-size: 10px; letter-spacing: 0.14em;
  text-transform: uppercase; color: rgba(255,255,255,0.28);
  margin-bottom: 10px; display: flex; justify-content: space-between;
}
.loader-bar-track { width: 100%; height: 1px; background: rgba(255,255,255,0.08); overflow: hidden; }
.loader-bar-fill {
  height: 100%; width: 0%;
  background: #00ff55; box-shadow: 0 0 8px #00ff55;
  transition: width 0.08s linear;
}

.loader-entry {
  position: absolute; inset: 0; z-index: 2;
  opacity: 0; pointer-events: none;
  transition: opacity 0.7s ease;
}
.loader-entry.visible { opacity: 1; pointer-events: all; }
.loader-enter-btn {
  position: absolute; left: 50%; top: 62%; transform: translate(-50%, -50%);
  font-family: 'Space Mono', monospace; font-size: 12px; letter-spacing: 0.16em;
  text-transform: uppercase; padding: 18px 48px;
  border: 1px solid rgba(0,255,85,0.45); background: transparent;
  color: #00ff55; cursor: pointer;
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
  white-space: nowrap;
}
.loader-enter-btn:hover {
  border-color: #00ff55;
  background: rgba(0,255,85,0.07);
  box-shadow: 0 0 22px rgba(0,255,85,0.18);
}
.loader-enter-silent {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  font-family: 'Space Mono', monospace; font-size: 10px; letter-spacing: 0.12em;
  text-transform: uppercase; color: rgba(255,255,255,0.22);
  background: none; border: none; cursor: pointer;
  transition: color 0.2s; white-space: nowrap;
}
.loader-enter-silent:hover { color: rgba(255,255,255,0.55); }
.loader-lang-pick { position: absolute; top: 24px; right: 28px; display: flex; align-items: center; gap: 10px; z-index: 10; }
.lang-pill {
  background: transparent; border: 1px solid rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.5); font-family: 'Space Mono', monospace;
  font-size: 0.75rem; letter-spacing: 0.12em; padding: 5px 14px; border-radius: 2px;
  transition: border-color 0.2s, color 0.2s;
}
.lang-pill.active { border-color: rgba(0,255,85,0.7); color: #00ff55; }
.lang-pill:hover:not(.active) { border-color: rgba(255,255,255,0.5); color: rgba(255,255,255,0.85); }
.lang-pill-sep { color: rgba(255,255,255,0.2); font-size: 0.75rem; user-select: none; }

/* → personalidade por tema: css/themes/ */

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 960px) {
  #hero { padding: 60px 10vw; }
  /* Desativar zoom/tilt 3D nos cards em mobile */
  .card-wrap { transform: none !important; transform-style: flat !important; }
  .card { transform: none !important; }
  .card-bg {
    top: 0 !important; left: 0 !important;
    width: 100% !important; height: 100% !important;
    transform: none !important;
  }
  /* Hero headline — permitir wrap em mobile (white-space: nowrap causava clipping) */
  .hero-headline { font-size: clamp(20px, min(3.5vw, 5vh), 36px); padding: 0 1.2rem; }
  .hl-inner { white-space: normal; }
  #contacto { grid-template-columns: 1fr; }
  .ct-left { border-right: none; border-bottom: 1px solid var(--border2); }
  /* Nav mobile: sempre visível, sem trigger animado */
  #nav-trigger { display: none; }
  nav { padding: 0 24px; pointer-events: auto; background: var(--nav-bg); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
  nav::after { transform: scaleX(1); }
  .nav-left, .nav-audio-btn { opacity: 1; transition: none; }
  .nav-right { display: none; }
  .nav-links { display: none; }
  .nav-left { padding-right: 0; }
  /* Scroll nativo mobile — offset para a nav não tapar o título da secção */
  #portfolio, #sobre, #servicos, #contacto { scroll-margin-top: 72px; }
  /* Serviços — stack vertical em tablet e mobile */
  #servicos { flex-direction: column; }
  .srv-block { width: 100%; }
}
@media (max-width: 768px) {
  #portfolio { height: auto !important; }
  .port-section-head { flex-direction: column; align-items: flex-start; gap: 12px; padding: 28px 32px 16px; }
  body.has-cookie-banner #whatsapp-btn { bottom: calc(195px + env(safe-area-inset-bottom, 0px)); }
  #carousel-root { padding: 0; }
  #carousel-root .scene { margin-bottom: 12px; font-size: 2.7vw; }
  .scene { font-size: 3vw; }
  .srv-preview .scene { font-size: 3.5vw; }
  .srv-preview .card-info { display: none; }
  .srv-quote-wrap { display: flex; justify-content: center; }
  .hero-headline { padding: 0 1.2rem; }
}
@media (max-width: 560px) {
  body { padding: 0; }
  #hero { padding: 48px 10vw; }
  .hero-ctas { flex-direction: column; align-items: stretch; gap: 12px; }
  .btn-p, .btn-g { padding: 12px 22px; font-size: 9px; letter-spacing: 2px; }
  .btn-contact { padding: 13px; font-size: 15px; letter-spacing: 2px; }
  .hero-brand { gap: 8px; }
  .bymg-logo-hero { height: clamp(32px, 10vw, 60px); }
  .sobre-block, .srv-block { padding: 48px 10vw; max-width: 100%; }
  .ct-left, .ct-right { padding: 48px 10vw; }
  nav { padding: 0 24px; height: 56px; }
  #switcher { padding: 6px 12px; gap: 8px; max-width: calc(100vw - 20vw); }
  .section-headline { margin-bottom: 32px; }
  .port-section-head { padding: 28px 10vw 16px; }
  /* Carousel — portfolio maior, serviços menor */
  #carousel-root .scene { font-size: 3.8vw; }
  .scene { font-size: 4.5vw; }
  .srv-preview .scene { font-size: 4vw; }
  /* Eyebrow legível no mobile */
  .h-eyebrow { font-size: 11px; }
  /* Hero headline — evitar que vá de canto a canto */
  .hero-headline { font-size: clamp(15px, 5.5vw, 24px) !important; padding: 0 1.5rem !important; }
  /* Contactos_ label mais perto dos contactos */
  .ct-right .section-label { margin-bottom: 8px !important; }
}
/* Ecrãs muito pequenos (≤360px) — prevenir overflow do headline */
@media (max-width: 360px) {
  .hero-headline { font-size: 17px; padding: 0 1rem; }
}

/* ================================================================
   TOUCH DEVICES — cursor + scroll nativo
   ================================================================ */
@media (pointer: coarse) {
  *, *::before, *::after { cursor: auto !important; }
  .cur-dot, #cursorOuter, #heroCursor { display: none !important; }
  body { overflow-y: auto; }
  #smooth-scroll { will-change: auto; }
  /* Loader — botão de entrada maior */
  .loader-enter-btn { font-size: 16px; padding: 20px 44px; }
  .loader-enter-silent { font-size: 12px; }
  /* Dica de swipe no carrossel */
  .carousel-swipe-hint {
    display: block;
    font-family: var(--font-m);
    font-size: 9px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text3);
    text-align: center;
    padding: 10px 0 0;
    opacity: 0.5;
    transition: color 0.8s;
  }
}
.carousel-swipe-hint { display: none; }

/* ================================================================
   MOBILE NAV LANG — PT/EN visível na nav sem abrir o menu
   ================================================================ */
.nav-mob-lang { display: none; }
@media (max-width: 960px) {
  .nav-mob-lang {
    display: flex;
    align-items: center;
    gap: 4px;
    position: absolute;
    right: 68px;
    top: 50%;
    transform: translateY(-50%);
  }
}

/* ================================================================
   HAMBURGER — botão de menu mobile
   ================================================================ */
.nav-mob-toggle {
  display: none;
  position: fixed;
  top: 0;
  right: 20px;
  z-index: 1002;
  height: 48px;
  width: 44px;
  background: none;
  border: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
  pointer-events: auto;
}
.nav-mob-toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transform-origin: center;
  transition: transform 0.28s ease, opacity 0.28s ease, background 0.8s;
}
.nav-mob-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-mob-toggle.open span:nth-child(2) { opacity: 0; }
.nav-mob-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ================================================================
   MOBILE MENU — overlay de navegação
   ================================================================ */
#nav-mob-menu {
  position: fixed;
  top: 48px;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 997;
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
  transition: opacity 0.28s ease, transform 0.28s ease, background 0.8s;
  overflow-y: auto;
}
#nav-mob-menu.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.mob-nav {
  list-style: none;
  width: 100%;
  border-top: 1px solid var(--border2);
}
.mob-nav li a {
  font-family: var(--font-m);
  font-size: 11px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  display: block;
  padding: 22px 0;
  text-align: center;
  border-bottom: 1px solid var(--border2);
  transition: color 0.2s;
}
.mob-nav li a:active { color: var(--accent); }
.mob-lang {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 40px;
}
@media (max-width: 960px) {
  .nav-mob-toggle { display: flex; }
}
@media (max-width: 560px) {
  .nav-mob-toggle { height: 56px; }
  #nav-mob-menu { top: 56px; }
}

/* ================================================================
   SERVIÇOS — accordion mobile
   ================================================================ */
@media (max-width: 960px) {
  /* Setas fora da secção de serviços: ocultar em mobile */
  .btn-arrow { display: none; }
  .cl-arrow { display: none; }
  .srv-price { font-size: 9px; }
  .srv-tag   { font-size: 7px; letter-spacing: 1.5px; }
  /* Seta dos serviços: oculta por defeito, aparece a apontar para baixo quando aberto */
  .srv-arrow {
    opacity: 0;
    display: inline-block;
    transform: rotate(0deg);
    transition: transform 0.36s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.24s ease;
  }
  .srv-list li.srv-active .srv-arrow {
    opacity: 1;
    transform: rotate(90deg);
  }

  /* Preview root: escondido por max-height, expande via .mob-open */
  #srv-preview-root {
    min-height: 0 !important;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition:
      max-height 0.46s cubic-bezier(0.16, 1, 0.3, 1),
      opacity 0.26s ease;
    width: 100%;
  }
  #srv-preview-root.mob-open {
    max-height: 520px;
    opacity: 1;
    transition:
      max-height 0.46s cubic-bezier(0.16, 1, 0.3, 1),
      opacity 0.38s 0.06s ease-out;
    /* Centrado no viewport, quebra fora do padding do pai */
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
  }
  /* Slide do conteúdo interno ao abrir */
  #srv-preview-root .srv-preview {
    transform: translateY(14px);
    transition: transform 0.46s cubic-bezier(0.16, 1, 0.3, 1) 0.07s,
                opacity 0.35s ease;
  }
  #srv-preview-root.mob-open .srv-preview.active {
    transform: translateY(0);
  }
  /* Previne scrollbar horizontal */
  html { overflow-x: hidden; }
}

/* ================================================================
   CAROUSEL LIGHTBOX
   ================================================================ */
#carousel-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9990;
  align-items: center;
  justify-content: center;
}
#carousel-lightbox.open { display: flex; }
#carousel-lb-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.92);
  cursor: zoom-out;
}
#carousel-lb-close {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 2;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.22);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
#carousel-lb-close:hover { background: rgba(255,255,255,0.22); }
#carousel-lb-figure {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 90vw;
  max-height: 92vh;
  animation: lb-in 0.3s cubic-bezier(0.23, 1, 0.32, 1) both;
}
@keyframes lb-in {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1); }
}
#carousel-lb-img {
  max-width: 90vw;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.8);
  display: block;
}
#carousel-lb-caption {
  color: rgba(255,255,255,0.55);
  font-family: var(--font-b);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 14px;
  text-align: center;
}

/* ================================================================
   QUOTE FORM
   ================================================================ */
.srv-quote-wrap { margin-top: 32px; }

.srv-quote-btn {
  background: var(--accent);
  color: var(--bg);
  border: 1.5px solid var(--accent);
  font-family: var(--font-m);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  padding: 16px 36px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.4s, color 0.4s, border-color 0.4s;
}
.srv-quote-btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--accent2);
}

.srv-quote-card {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.45s ease, opacity 0.3s ease;
}
.srv-quote-card.open { max-height: 760px; opacity: 1; }

.quote-form {
  padding: 28px 0 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.qf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.qf-field { display: flex; flex-direction: column; gap: 5px; }

.qf-label {
  font-family: var(--font-m);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text3);
}

.qf-input {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--text3);
  color: var(--text);
  font-family: var(--font-b);
  font-size: 14px;
  padding: 8px 0;
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
}
.qf-input::placeholder { color: var(--text3); opacity: 0.6; }
.qf-input:focus { border-bottom-color: var(--text); }
.qf-input.error { border-bottom-color: #e05050; }
.qf-input.error::placeholder { color: #e05050; opacity: 1; }
.qf-textarea { resize: none; min-height: 80px; }

.qf-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding-bottom: 8px;
}

.qf-submit {
  background: var(--accent);
  color: var(--bg);
  border: 1.5px solid var(--accent);
  font-family: var(--font-m);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 13px 28px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.4s, color 0.4s, border-color 0.4s;
}
.qf-submit:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--accent2, var(--accent)); }
.qf-submit:disabled { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none; }

.qf-status { font-size: 13px; font-family: var(--font-b); color: var(--text2); }
.qf-status.success { color: #48bb78; }
.qf-status.error { color: #e05050; }

.qf-admin-link {
  display: inline-block;
  margin-top: 14px;
  font-size: 11px;
  font-family: var(--font-m);
  letter-spacing: 0.06em;
  color: var(--text3);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  opacity: 0.45;
  transition: opacity 0.2s;
}
.qf-admin-link:hover { opacity: 1; }

/* Admin overlay */
#quoteAdmin {
  position: fixed;
  inset: 0;
  z-index: 8500;
  background: rgba(0,0,0,0.97);
  display: none;
  overflow-y: auto;
}
#quoteAdmin.open { display: block; }

.qa-inner { max-width: 860px; margin: 0 auto; padding: 56px 32px 80px; }

.qa-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
  border-bottom: 1px solid #222;
  padding-bottom: 20px;
}
.qa-title {
  font-family: var(--font-m);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
}
.qa-close {
  background: transparent;
  border: none;
  color: #666;
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
  transition: color 0.2s;
}
.qa-close:hover { color: #fff; }

.qa-empty { color: #555; font-family: var(--font-b); font-size: 15px; }

.qa-item {
  border: 1px solid #1c1c1c;
  padding: 20px 24px;
  margin-bottom: 12px;
  background: #080808;
}
.qa-item-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
}
.qa-item-name { color: #fff; font-family: var(--font-b); font-weight: 600; font-size: 15px; }
.qa-item-date { color: #555; font-family: var(--font-m); font-size: 10px; }
.qa-item-field { margin-bottom: 5px; }
.qa-item-label {
  display: inline-block;
  width: 72px;
  font-family: var(--font-m);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #555;
}
.qa-item-value { color: #aaa; font-family: var(--font-b); font-size: 14px; }
.qa-item-msg {
  color: #888;
  font-family: var(--font-b);
  font-size: 13px;
  line-height: 1.65;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #1c1c1c;
  white-space: pre-wrap;
}

.qa-clear {
  margin-top: 32px;
  background: transparent;
  border: 1px solid #e05050;
  color: #e05050;
  font-family: var(--font-m);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 10px 20px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.qa-clear:hover { background: #e05050; color: #fff; }

@media (max-width: 560px) {
  .qf-row { grid-template-columns: 1fr; }
  .qa-inner { padding: 40px 20px 60px; }
}

/* Cookie Banner */
#cookieBanner {
  position: fixed;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  left: 50%;
  transform: translateX(-50%);
  z-index: 9500;
  background: var(--bg);
  border: 1px solid var(--border, rgba(128,128,128,0.2));
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: 720px;
  width: calc(100% - 48px);
  box-shadow: 0 8px 40px rgba(0,0,0,0.3);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
#cookieBanner.cb-hidden {
  opacity: 0;
  transform: translateX(-50%) translateY(16px);
  pointer-events: none;
}
.cb-text {
  font-family: var(--font-b);
  font-size: 13px;
  color: var(--text2);
  flex: 1;
  line-height: 1.5;
}
.cb-link {
  color: var(--text);
  text-decoration: underline;
  white-space: nowrap;
}
.cb-actions { display: flex; gap: 10px; flex-shrink: 0; }
.cb-btn {
  font-family: var(--font-m);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 10px 20px;
  border: 1px solid var(--text);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.cb-decline { background: transparent; color: var(--text); }
.cb-decline:hover { background: var(--text2); color: var(--bg); border-color: var(--text2); }
.cb-accept { background: var(--text); color: var(--bg); }
.cb-accept:hover { opacity: 0.8; }
@media (max-width: 560px) {
  #cookieBanner { flex-direction: column; align-items: flex-start; gap: 14px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
}

/* Quote Modal */
#quoteModal {
  position: fixed;
  inset: 0;
  z-index: 8000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
#quoteModal.open { display: flex; }

.qm-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.82);
}
.qm-panel {
  position: relative;
  z-index: 1;
  background: var(--bg);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 36px 40px;
  animation: qm-in 0.28s cubic-bezier(0.23, 1, 0.32, 1) both;
}
@keyframes qm-in {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
.qm-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border, rgba(128,128,128,0.18));
}
.qm-title {
  font-family: var(--font-m);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text);
}
.qm-close {
  background: transparent;
  border: none;
  color: var(--text2);
  font-size: 18px;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  transition: color 0.2s;
}
.qm-close:hover { color: var(--text); }
@media (max-width: 600px) {
  .qm-panel { padding: 24px 20px; max-height: 95vh; }
}
.form-feedback { font-size: 0.8rem; padding: 0.5rem 0; display: none; }
.form-feedback.success { color: #00cc66; display: block; }
.form-feedback.error   { color: #ff4444; display: block; }
