:root {
  --navy: #141931;
  --navy-2: #1a2038;
  --navy-3: #212845;
  --ink: #141931;
  --paper: #fbf9f4;
  --paper-2: #f2eee2;
  --white: #ffffff;
  --muted: #a9a597;
  --muted-dark: #6b6f7d;
  --gold: #ebc343;
  --gold-soft: #f2ca56;
  --bronze: #d0b173;
  --accent: #ebc343;
  --accent-bright: #f2ca56;
  --line-light: rgba(20, 25, 49, 0.13);
  --line-dark: rgba(255, 255, 255, 0.14);
  --surface: var(--paper);
  --surface-alt: #f2eee2;
  --text: var(--ink);
  --text-soft: var(--muted-dark);
  --header-bg: rgba(251, 249, 244, 0.94);
  --shadow: 0 28px 80px rgba(11, 13, 20, 0.22);
  --radius: 26px;
  --max: 1320px;
  --header-h: 86px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  color-scheme: light;
}

html[data-theme="dark"] {
  --surface: #0b0d14;
  --surface-alt: #141931;
  --text: #f7f5ee;
  --text-soft: #a7abc0;
  --line-light: rgba(255, 255, 255, 0.12);
  --header-bg: rgba(11, 13, 20, 0.9);
  color-scheme: dark;
}

html[data-theme="light"] {
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--surface);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.35s ease, color 0.35s ease;
}

body.menu-open {
  overflow: hidden;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

svg {
  display: block;
}

::selection {
  background: var(--accent);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 12px 18px;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  transform: translateY(-160%);
  transition: transform 0.2s;
}

.skip-link:focus {
  transform: translateY(0);
}

.shell {
  width: min(calc(100% - 48px), var(--max));
  margin-inline: auto;
}

.section {
  position: relative;
  padding: 100px 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: #d5dde5;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

.eyebrow i {
  width: 34px;
  height: 2px;
  background: var(--accent);
}

.eyebrow-dark {
  color: var(--text-soft);
}

.button {
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 0 27px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  transition: transform 0.25s var(--ease), background-color 0.25s, border-color 0.25s;
}

.button svg {
  width: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.25s var(--ease);
}

.button:hover {
  transform: translateY(-3px);
}

.button:hover svg {
  transform: translateX(4px);
}

.button-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 18px 38px rgba(235, 195, 67, 0.22);
}

.button-primary:hover {
  background: var(--accent-bright);
}

.button-ghost {
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
}

.button-ghost:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.site-header {
  position: fixed;
  z-index: 100;
  inset: 0 0 auto;
  height: var(--header-h);
  isolation: isolate;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  transition: height 0.3s var(--ease), background-color 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.site-header.is-scrolled,
.site-header.is-menu-open {
  height: 74px;
  background: var(--header-bg);
  border-bottom-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(18px);
}

.header-inner {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.brand-logo {
  display: block;
  height: 30px;
}

.brand-logo svg {
  display: block;
  height: 30px;
  width: auto;
}

/* O traço fino do símbolo ("n") é desenhado a uma escala de viewBox grande;
   ao reduzir para a altura real do header (~30px) o stroke-width fica
   sub-pixel e o navegador antialiasa como uma malha/pontilhado em vez de
   uma linha lisa. non-scaling-stroke mantém a largura do traço em pixels
   de ecrã, independentemente da escala aplicada ao SVG. */
.brand-logo svg path {
  vector-effect: non-scaling-stroke;
}

.brand-logo .brand-logo-ink {
  display: none;
}

html[data-theme="light"] .brand-logo .brand-logo-light {
  display: none;
}

html[data-theme="light"] .brand-logo .brand-logo-ink {
  display: block;
}

.footer-brand .brand-logo {
  height: 34px;
}

.footer-brand .brand-logo svg {
  height: 34px;
}

/* The footer surface is always dark navy regardless of the page theme,
   so it must always show the light-on-dark logo variant. */
.footer-brand .brand-logo-ink {
  display: none !important;
}

.footer-brand .brand-logo-light {
  display: block !important;
}

.brand-copy {
  display: grid;
  line-height: 0.86;
}

.brand-copy strong {
  font-size: 20px;
  letter-spacing: 0.02em;
}

.brand-copy small {
  margin-top: 8px;
  color: var(--accent);
  font-size: 7px;
  font-weight: 900;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.desktop-nav {
  display: flex;
  align-self: stretch;
  align-items: stretch;
  margin-left: auto;
}

.desktop-nav a {
  position: relative;
  min-width: 92px;
  display: grid;
  place-items: center;
  padding: 0 16px;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  color: #c8d0d8;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  transition: color 0.2s, background-color 0.2s;
}

.desktop-nav a:last-child {
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.desktop-nav a::after {
  position: absolute;
  right: 14px;
  bottom: 0;
  left: 14px;
  height: 2px;
  background: var(--accent);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s;
}

.desktop-nav a:hover,
.desktop-nav a.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}

.desktop-nav a.is-active::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.language-toggle,
.icon-button,
.menu-toggle {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.035);
  color: #fff;
}

.language-toggle {
  height: 42px;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.1em;
}

.language-toggle i,
.language-toggle [data-language-next] {
  color: #778491;
}

.icon-button {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
}

.icon-button svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
}

.icon-moon {
  display: none;
}

html[data-theme="light"] .icon-sun {
  display: none;
}

html[data-theme="light"] .icon-moon {
  display: block;
}

.language-toggle:hover,
.icon-button:hover {
  border-color: var(--accent);
  background: rgba(235, 195, 67, 0.1);
}

.menu-toggle {
  width: 44px;
  height: 44px;
  display: none;
  place-items: center;
  border-radius: 50%;
}

.menu-toggle span {
  position: absolute;
  width: 17px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.25s;
}

.menu-toggle span:first-child {
  transform: translateY(-4px);
}

.menu-toggle span:last-child {
  transform: translateY(4px);
}

.menu-toggle[aria-expanded="true"] span:first-child {
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:last-child {
  transform: rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  z-index: 99;
  inset: 0;
  display: none;
  padding-top: var(--header-h);
  background: rgba(7, 16, 25, 0.985);
  opacity: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  pointer-events: none;
  transform: translateY(-12px);
  visibility: hidden;
  -webkit-overflow-scrolling: touch;
  transition: opacity 0.3s, transform 0.3s var(--ease), visibility 0s linear 0.3s;
}

.mobile-menu.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  visibility: visible;
  transition-delay: 0s;
}

.mobile-menu-inner {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  padding-top: 54px;
  padding-bottom: 30px;
}

.menu-kicker {
  margin: 0 0 26px;
  color: var(--accent);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.mobile-menu nav {
  display: grid;
}

.mobile-menu nav a {
  display: flex;
  align-items: baseline;
  gap: 20px;
  padding: 19px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu nav a:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu nav span {
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
}

.mobile-menu nav strong {
  font-size: clamp(30px, 9vw, 48px);
  font-weight: 640;
  letter-spacing: -0.05em;
}

.mobile-menu-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
  font-size: 11px;
}

.mobile-menu-footer button {
  border: 0;
  background: transparent;
  color: #fff;
  font-weight: 800;
}

.mobile-menu-footer a {
  color: #95a1ad;
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: center;
  overflow: hidden;
  background: var(--navy);
  color: #fff;
}

.hero::after {
  position: absolute;
  inset: auto 0 0;
  height: 28%;
  background: linear-gradient(transparent, rgba(2, 7, 11, 0.72));
  content: "";
  pointer-events: none;
}

/* Hero cinematográfico — vídeo de fundo institucional */
.hero-cinematic {
  min-height: 100svh;
  padding-bottom: 108px;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #05090c;
}

.hero-video,
.hero-media-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  /* cover preenche o hero fullscreen sem barras/espaço morto. O desktop usa
     o vídeo 1920x1080 e o mobile usa o asset vertical 1080x1920 dedicado
     (ver initHeroVideo em index.html) — cada um enquadrado para a sua
     própria proporção, por isso cover não distorce nem corta conteúdo
     importante em nenhum dos dois. */
  object-fit: cover;
  object-position: 50% 50%;
}

.hero-media-fallback {
  z-index: 1;
  opacity: 0;
  transition: opacity 0.6s var(--ease);
}

/* Mostra o poster estático quando não há vídeo, quando falha, ou com movimento reduzido */
.hero-media.is-fallback .hero-media-fallback,
.hero-media.is-fallback .hero-video {
  opacity: 0;
}
.hero-media.is-fallback .hero-media-fallback {
  opacity: 1;
}
.hero-media:not(.is-fallback) .hero-video {
  z-index: 2;
  opacity: 1;
  transition: opacity 0.65s var(--ease);
}

/* O vídeo já contém a narrativa/copy do hero. Quando estiver pronto,
   retiramos a copy HTML apenas visualmente para não duplicar mensagens;
   ela continua no DOM para acessibilidade/SEO e reaparece no fallback. */
.hero.is-video-ready .hero-copy {
  opacity: 0 !important;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.45s var(--ease), visibility 0s linear 0.45s;
}

.hero-media.is-restarting .hero-video {
  opacity: 0;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: linear-gradient(180deg, rgba(3, 7, 10, 0.58) 0%, rgba(3, 7, 10, 0.22) 32%, rgba(3, 7, 10, 0.38) 68%, rgba(3, 7, 10, 0.86) 100%);
}

@media (prefers-reduced-motion: reduce) {
  .hero-video { display: none; }
  .hero-media-fallback { opacity: 1; }
}

.hero-grain {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0.5;
  mix-blend-mode: overlay;
  background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 3px 3px;
}

.manifesto {
  position: relative;
  overflow: hidden;
  padding: 118px 0;
  background: var(--navy);
  color: #f7f5ee;
}

.manifesto-layout {
  position: relative;
  max-width: 900px;
}

.manifesto-mark {
  position: absolute;
  right: -40px;
  top: 50%;
  transform: translateY(-50%);
  width: 240px;
  opacity: 0.16;
  pointer-events: none;
}

.manifesto-mark svg {
  width: 100%;
  height: auto;
  display: block;
}

.manifesto-intro {
  position: relative;
  z-index: 1;
}

.manifesto-heading {
  margin: 14px 0 16px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(30px, 3.6vw, 48px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  max-width: 640px;
}

.manifesto-text {
  margin: 0;
  max-width: 560px;
  color: #c3ccd5;
  font-size: 16px;
  line-height: 1.7;
}

@media (max-width: 900px) {
  .manifesto { padding: 84px 0; }
  .manifesto-mark { width: 150px; right: -20px; opacity: 0.13; }
}

.hero-cinematic .hero-cinema-layout {
  position: relative;
  z-index: 4;
  grid-template-columns: 1fr;
  min-height: auto;
  padding-top: calc(var(--header-h) + 96px);
  padding-bottom: 168px;
  align-items: end;
}

.hero-layout {
  position: relative;
  z-index: 3;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(520px, 1.1fr);
  align-items: center;
  gap: 56px;
  padding-top: calc(var(--header-h) + 58px);
  padding-bottom: 82px;
}

.hero-copy {
  max-width: 650px;
}

.hero-cinematic .hero-copy {
  max-width: 760px;
}

.hero h1 {
  margin: 24px 0 26px;
  font-size: clamp(56px, 6.6vw, 104px);
  font-weight: 600;
  line-height: 0.87;
  letter-spacing: -0.07em;
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
}

.hero h1 span,
.hero h1 strong {
  display: block;
}

.hero h1 strong {
  color: var(--accent);
  font-weight: inherit;
}

.hero-copy > p {
  max-width: 570px;
  margin: 0;
  color: #b5c0cb;
  font-size: 16px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 38px;
}

/* Faixa de serviços — integrada ao fundo do hero, sobre o vídeo */
.solution-rail {
  position: absolute;
  z-index: 5;
  inset: auto 0 0;
  background: rgba(5, 9, 12, 0.46);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.solution-rail-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.solution-rail a {
  position: relative;
  min-height: 92px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 20px 24px;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  transition: background-color 0.25s;
}

.solution-rail a::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  background: var(--accent);
  content: "";
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.3s var(--ease);
}

.solution-rail a:last-child {
  border-right: 1px solid rgba(255, 255, 255, 0.14);
}

.solution-rail a span {
  color: rgba(255, 255, 255, 0.55);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.solution-rail a strong {
  max-width: 150px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.15;
}

.solution-rail a i {
  font-size: 16px;
  font-style: normal;
  opacity: 0.65;
  transition: transform 0.25s, opacity 0.25s;
}

.solution-rail a:hover {
  background: rgba(255, 255, 255, 0.07);
}

.solution-rail a:hover::before {
  transform: scaleY(1);
}

.solution-rail a:hover i {
  opacity: 1;
  transform: translate(3px, -3px);
}

.solution-rail a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: -4px;
}

.portal-stage {
  position: relative;
  width: min(46vw, 650px);
  aspect-ratio: 1;
  margin-left: auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(235, 195, 67, 0.1), rgba(255, 255, 255, 0.018) 34%, transparent 66%);
  box-shadow: inset 0 0 90px rgba(255, 255, 255, 0.02);
}

.portal-stage::before,
.portal-stage::after {
  position: absolute;
  border-radius: 50%;
  content: "";
}

.portal-stage::before {
  inset: 10%;
  border: 1px dashed rgba(255, 255, 255, 0.15);
  animation: rotate 34s linear infinite;
}

.portal-stage::after {
  inset: 22%;
  border: 1px solid rgba(235, 195, 67, 0.32);
  box-shadow: 0 0 50px rgba(235, 195, 67, 0.12);
}

.portal-ring,
.portal-axis {
  position: absolute;
  pointer-events: none;
}

.portal-ring {
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.09);
}

.portal-ring-one {
  inset: 4%;
}

.portal-ring-two {
  inset: 33%;
}

.portal-axis {
  top: 50%;
  left: 50%;
  width: 74%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
  transform-origin: center;
}

.portal-axis-one {
  transform: translate(-50%, -50%) rotate(32deg);
}

.portal-axis-two {
  transform: translate(-50%, -50%) rotate(-32deg);
}

.portal-center {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  width: 132px;
  aspect-ratio: 1;
  display: grid;
  place-content: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: rgba(7, 16, 25, 0.9);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.38), 0 0 0 13px rgba(255, 255, 255, 0.025);
  text-align: center;
  transform: translate(-50%, -50%);
}

.portal-center span {
  font-size: 34px;
  font-weight: 750;
  letter-spacing: -0.05em;
}

.portal-center small {
  margin-top: 7px;
  color: var(--accent);
  font-size: 7px;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.orbit-card {
  position: absolute;
  z-index: 4;
  width: 142px;
  min-height: 86px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 17px;
  background: rgba(13, 26, 37, 0.76);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(14px);
  animation: float 5.5s ease-in-out infinite;
}

.orbit-card span {
  color: var(--accent);
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.1em;
}

.orbit-card strong {
  font-size: 14px;
  line-height: 1;
  letter-spacing: -0.03em;
}

.orbit-card-one {
  top: 7%;
  left: 24%;
}

.orbit-card-two {
  top: 32%;
  right: -2%;
  animation-delay: -1.4s;
}

.orbit-card-three {
  bottom: 10%;
  right: 19%;
  animation-delay: -2.8s;
}

.orbit-card-four {
  bottom: 23%;
  left: -1%;
  animation-delay: -4.2s;
}

@keyframes rotate {
  to { transform: rotate(360deg); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

.scroll-cue {
  position: absolute;
  z-index: 6;
  bottom: 28px;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 13px;
  color: #8e9aa6;
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transform: translateX(-50%);
}

.hero-cinematic .scroll-cue {
  bottom: calc(92px + 26px);
  color: rgba(255, 255, 255, 0.75);
}

@media (max-width: 900px) {
  .hero-video,
  .hero-media-fallback { object-position: center center; }
  .hero-cinematic .scroll-cue { bottom: calc(84px + 20px); }
}

@media (max-width: 640px) {
  .hero-video,
  .hero-media-fallback { object-position: center center; }
}

.scroll-cue i {
  position: relative;
  width: 36px;
  height: 1px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.2);
}

.scroll-cue i::after {
  position: absolute;
  inset: 0;
  background: var(--accent);
  content: "";
  animation: scroll-line 2s ease-in-out infinite;
}

@keyframes scroll-line {
  0% { transform: translateX(-100%); }
  55%, 100% { transform: translateX(100%); }
}

.intro {
  overflow: hidden;
  background: var(--surface);
}

.intro-layout {
  display: grid;
  grid-template-columns: 80px minmax(0, 1.15fr) minmax(320px, 0.7fr);
  gap: 56px;
  align-items: start;
}

.section-index {
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.intro h2,
.section-heading h2,
.values-intro h2,
.contact h2 {
  margin: 21px 0 0;
  font-size: clamp(46px, 5.5vw, 78px);
  font-weight: 600;
  line-height: 0.94;
  letter-spacing: -0.065em;
}

.intro-copy {
  padding-top: 42px;
}

.intro-copy p {
  margin: 0 0 22px;
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.78;
}

.intro-copy p:first-child {
  color: var(--text);
  font-size: 19px;
  line-height: 1.62;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  margin-top: 15px;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--accent);
  color: var(--text);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.text-link i {
  color: var(--accent);
  font-size: 16px;
  font-style: normal;
  transition: transform 0.2s;
}

.text-link:hover i {
  transform: translate(3px, -3px);
}

.projects {
  overflow: hidden;
  background: var(--navy);
  color: #fff;
}

.projects::before {
  position: absolute;
  top: -200px;
  right: -130px;
  width: 650px;
  height: 650px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 50%;
  content: "";
  box-shadow: 0 0 0 100px rgba(255, 255, 255, 0.012), 0 0 0 200px rgba(255, 255, 255, 0.008);
}

.section-heading {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 56px;
  margin-bottom: 58px;
}

.section-heading > p {
  max-width: 430px;
  margin: 0 0 4px;
  color: #9eabb7;
  font-size: 14px;
  line-height: 1.75;
}

.projects-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 20px;
}

.project-card {
  position: relative;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: 32px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-top: 2px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  background: var(--navy-2);
  isolation: isolate;
  transition: transform 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s, background-color 0.4s;
}

.project-card:nth-child(1) { grid-column: span 7; min-height: 480px; }
.project-card:nth-child(2) { grid-column: span 5; }
.project-card:nth-child(3) { grid-column: span 5; }
.project-card:nth-child(4) { grid-column: span 7; }

.project-card[data-project="gold"] { border-top-color: rgba(201, 166, 90, 0.55); }
.project-card[data-project="imperio"] { border-top-color: rgba(103, 132, 150, 0.55); }
.project-card[data-project="gold"]:hover { border-color: rgba(201, 166, 90, 0.55); }
.project-card[data-project="imperio"]:hover { border-color: rgba(150, 170, 183, 0.55); }

.project-card::before,
.project-card::after {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  content: "";
  transition: transform 0.6s var(--ease), opacity 0.4s;
}

.project-card::before {
  top: 50%;
  left: 50%;
  width: 360px;
  height: 360px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  transform: translate(-50%, -52%);
}

.project-card::after {
  top: 50%;
  left: 50%;
  width: 230px;
  height: 230px;
  background: radial-gradient(circle, rgba(235, 195, 67, 0.23), transparent 70%);
  transform: translate(-50%, -50%);
}

.project-card[data-project="gold"]::after {
  background: radial-gradient(circle, rgba(201, 166, 90, 0.22), transparent 70%);
}

.project-card[data-project="imperio"]::after {
  background: radial-gradient(circle, rgba(103, 132, 150, 0.22), transparent 70%);
}

.project-card[data-project="spaceclean"]::after {
  background: radial-gradient(circle, rgba(235, 195, 67, 0.16), transparent 70%);
}

.project-card:hover {
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.32);
  transform: translateY(-8px);
}

.project-card:hover::before {
  transform: translate(-50%, -52%) scale(1.12);
}

.project-card-top,
.project-card-bottom {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  transition: transform 0.4s var(--ease);
}

.project-card:hover .project-card-top { transform: translateX(3px); }
.project-card:hover .project-card-bottom { transform: translateX(-3px); }

.project-card-bottom {
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.project-card-bottom::before {
  content: "";
  position: absolute;
  left: 0;
  top: -1px;
  width: 0;
  height: 1px;
  background: var(--accent-bright);
  transition: width 0.45s var(--ease);
}

.project-card:hover .project-card-bottom::before { width: 100%; }

.project-card-number,
.project-card-category {
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: color 0.3s;
}

.project-card-number {
  color: var(--accent);
}

.project-card:hover .project-card-number {
  color: var(--accent-bright);
}

.project-card-category {
  color: #82909d;
}

.project-monogram {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  color: rgba(255, 255, 255, 0.91);
  font-size: clamp(90px, 12vw, 170px);
  font-weight: 750;
  letter-spacing: -0.1em;
  transform: translate(-52%, -56%);
  transition: transform 0.55s var(--ease), color 0.35s;
}

.project-card:hover .project-monogram {
  color: #fff;
  transform: translate(-52%, -56%) scale(1.04);
}

.project-card-copy {
  max-width: 72%;
}

.project-card h3 {
  margin: 0 0 12px;
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 650;
  letter-spacing: -0.055em;
}

.project-card p {
  margin: 0;
  color: #9ba8b4;
  font-size: 12px;
  line-height: 1.65;
}

.project-card-arrow {
  width: 54px;
  height: 54px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  color: #fff;
  font-size: 20px;
  transition: background-color 0.25s, transform 0.25s;
}

.project-card:hover .project-card-arrow {
  background: var(--accent);
  border-color: var(--accent);
  transform: rotate(45deg);
}

.project-card-pending {
  cursor: default;
}

.project-card-pending-badge {
  color: #82909d;
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Marcas — composição editorial de dois painéis, pensada especificamente
   para duas marcas (não um grid genérico de N cards). */
.brands-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background: var(--line-dark);
  border-radius: 6px;
  overflow: hidden;
}

.brand-panel {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 420px;
  padding: 48px 40px;
  overflow: hidden;
  background: var(--navy-2);
  color: #fff;
  text-decoration: none;
  transition: transform 0.35s var(--ease), background-color 0.4s;
}

.brand-panel:hover {
  transform: translateY(-6px);
  background: var(--navy-3);
}

.brand-panel-category {
  position: relative;
  z-index: 1;
  color: var(--accent);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* Logo oficial de cada marca — elemento visual principal do painel.
   Quando o ficheiro ainda não existe em disco, o <img> dispara "error" e
   initBrandLogos() (em index.html) adiciona .is-empty, escondendo o slot
   por completo: nunca mostramos um ícone de imagem partida nem texto a
   fingir ser logo. */
.brand-panel-logo {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  min-height: 64px;
  margin: 6px 0 4px;
}

.brand-panel-logo.is-empty {
  display: none;
}

.brand-panel-logo-img {
  display: block;
  width: auto;
  height: auto;
  max-width: 220px;
  max-height: 88px;
  object-fit: contain;
  object-position: left center;
  opacity: 0.94;
  transition: opacity 0.3s var(--ease);
}

.brand-panel:hover .brand-panel-logo-img {
  opacity: 1;
}

.brand-panel-name {
  position: relative;
  z-index: 1;
  margin-top: auto;
  font-family: var(--font-display);
  font-size: clamp(34px, 3.4vw, 52px);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 1;
}

.brand-panel p {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: 380px;
  color: #b7c0c9;
  font-size: 14px;
  line-height: 1.7;
}

.brand-panel-link {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.brand-panel-link b {
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 400;
  transition: transform 0.3s;
}

.brand-panel:hover .brand-panel-link b {
  transform: translate(3px, -3px);
}

@media (max-width: 900px) {
  .brands-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .brand-panel { min-height: 320px; padding: 34px 26px; }
  .brand-panel-logo-img { max-width: 160px; max-height: 64px; }
}

/* Individual personality per project, within the same visual system */
.project-card[data-project="maymys"] .project-monogram {
  top: auto; left: 28px; bottom: 18px; transform: translate(0, 0);
  font-family: var(--font-display); font-weight: 400; letter-spacing: -0.04em;
}
.project-card[data-project="maymys"]:hover .project-monogram { transform: translate(0, -4px); }

.project-card[data-project="gold"] .project-card-top { flex-direction: row-reverse; }
.project-card[data-project="gold"] .project-monogram {
  top: 26px; left: auto; right: 24px; bottom: auto; transform: translate(0, 0);
  font-weight: 300; color: rgba(201, 166, 90, 0.85);
}
.project-card[data-project="gold"]:hover .project-monogram { color: rgba(201, 166, 90, 1); transform: scale(1.04); }
.project-card[data-project="gold"] h3 { font-family: var(--font-display); font-weight: 400; }
.project-card[data-project="gold"] .project-card-number { color: #c9a65a; }
.project-card[data-project="gold"]:hover .project-card-arrow { background: #c9a65a; border-color: #c9a65a; }

.project-card[data-project="imperio"] { text-align: center; }
.project-card[data-project="imperio"] .project-card-top,
.project-card[data-project="imperio"] .project-card-bottom { justify-content: center; gap: 14px; }
.project-card[data-project="imperio"] .project-monogram {
  font-weight: 300; letter-spacing: 0.02em; color: rgba(255, 255, 255, 0.55);
}
.project-card[data-project="imperio"] h3 { font-weight: 300; letter-spacing: 0.04em; }
.project-card[data-project="imperio"] .project-card-copy { max-width: 100%; }

.project-card[data-project="spaceclean"] .project-monogram {
  transform: translate(-52%, -56%) rotate(-8deg); letter-spacing: -0.02em; font-weight: 850;
}
.project-card[data-project="spaceclean"]:hover .project-monogram { transform: translate(-52%, -56%) rotate(-8deg) scale(1.04); }
.project-card[data-project="spaceclean"] h3 { text-transform: uppercase; letter-spacing: 0.02em; font-size: clamp(24px, 2.4vw, 34px); }

.fact-strip {
  background: var(--accent);
  color: #fff;
}

.facts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.facts-grid article {
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px 34px;
  border-left: 1px solid rgba(255, 255, 255, 0.23);
}

.facts-grid article:last-child {
  border-right: 1px solid rgba(255, 255, 255, 0.23);
}

.facts-grid strong {
  font-size: clamp(38px, 4.3vw, 66px);
  font-weight: 650;
  line-height: 1;
  letter-spacing: -0.07em;
}

.facts-grid strong span {
  color: rgba(255, 255, 255, 0.5);
}

.facts-grid article > span {
  margin-top: 13px;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.values {
  background: var(--surface);
}

.values-layout {
  display: grid;
  grid-template-columns: minmax(310px, 0.78fr) minmax(0, 1.22fr);
  gap: 90px;
  align-items: start;
}

.values-intro {
  position: sticky;
  top: 116px;
}

.values-intro h2 {
  font-size: clamp(44px, 5vw, 68px);
}

.values-intro p {
  max-width: 490px;
  margin: 27px 0 0;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.75;
}

.values-list {
  border-top: 1px solid var(--line-light);
}

.values-list article {
  display: grid;
  grid-template-columns: 65px 1fr;
  gap: 18px;
  padding: 27px 8px;
  border-bottom: 1px solid var(--line-light);
  transition: padding-left 0.28s var(--ease), background-color 0.28s;
}

.values-list article:hover {
  padding-left: 18px;
  background: color-mix(in srgb, var(--surface-alt) 78%, transparent);
}

.values-list article > span {
  padding-top: 5px;
  color: var(--accent);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.values-list h3 {
  margin: 0;
  font-size: 25px;
  font-weight: 650;
  letter-spacing: -0.045em;
}

.values-list p {
  margin: 8px 0 0;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.65;
}

.statement {
  overflow: hidden;
  background: var(--navy-2);
  color: #fff;
}

.statement::before {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 45%, rgba(235, 195, 67, 0.11));
  content: "";
}

.statement-layout {
  position: relative;
  display: grid;
  grid-template-columns: 0.45fr 1.55fr;
  gap: 60px;
  align-items: center;
}

.statement-number {
  color: var(--accent);
  font-family: var(--font-display);
  font-size: clamp(140px, 23vw, 330px);
  line-height: 0.6;
  opacity: 0.82;
}

.statement blockquote {
  max-width: 890px;
  margin: 28px 0 0;
  font-size: clamp(38px, 5vw, 70px);
  font-weight: 530;
  line-height: 1.03;
  letter-spacing: -0.055em;
}

.contact {
  overflow: hidden;
  background: var(--navy);
  color: #fff;
}

.contact-glow {
  position: absolute;
  right: -18vw;
  bottom: -28vw;
  width: 70vw;
  height: 70vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(235, 195, 67, 0.22), transparent 65%);
}

.contact-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(380px, 0.65fr);
  gap: 90px;
  align-items: end;
}

.contact h2 {
  max-width: 790px;
}

.contact-panel {
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(12px);
}

.contact-panel > p {
  margin: 0 0 25px;
  color: #aab5bf;
  font-size: 13px;
  line-height: 1.7;
}

.contact-links {
  display: grid;
}

.contact-links > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 19px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.contact-links > a:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.contact-links small,
.contact-links strong {
  display: block;
}

.contact-links small {
  margin-bottom: 6px;
  color: var(--accent);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.contact-links strong {
  font-size: 14px;
  font-weight: 650;
}

.contact-links i {
  font-size: 22px;
  font-style: normal;
  transition: transform 0.2s;
}

.contact-links a:hover i {
  transform: translate(4px, -4px);
}

.site-footer {
  padding: 56px 0 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #050b10;
  color: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.55fr repeat(3, 0.7fr);
  gap: 38px;
}

.footer-brand {
  color: #fff;
}

.footer-lead p {
  max-width: 390px;
  margin: 28px 0 0;
  color: #7f8d99;
  font-size: 13px;
  line-height: 1.7;
}

.footer-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 11px;
}

.footer-column h3 {
  margin: 0 0 10px;
  color: #6f7e8b;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.footer-column a,
.footer-muted {
  color: #c6cdd4;
  font-size: 11px;
  line-height: 1.5;
}

.footer-column a:hover {
  color: var(--accent-bright);
}

.footer-muted {
  color: #657480;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #61707d;
  font-size: 9px;
}

.footer-bottom div {
  display: flex;
  gap: 24px;
}

.footer-bottom a:hover {
  color: #fff;
}

[data-reveal] {
  opacity: 1;
  transform: none;
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}

.js [data-reveal] {
  opacity: 0;
  transform: translateY(30px);
}

.js [data-reveal].is-visible,
.reveal-fallback [data-reveal] {
  opacity: 1;
  transform: translateY(0);
}

/* Deeper services layer */
.services { overflow: hidden; background: var(--surface); }
.services-heading h2 { max-width: 850px; }
.services-grid { position: relative; display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; counter-reset: servicecount; }
.service-card { position: relative; isolation: isolate; min-height: 460px; display: flex; flex-direction: column; justify-content: space-between; padding: 36px; overflow: hidden; border: 1px solid var(--line-light); border-radius: 6px; background: var(--surface-alt); box-shadow: 0 18px 60px rgba(0,0,0,.06); counter-increment: servicecount; transition: transform .4s var(--ease), border-color .3s, box-shadow .3s, background-color .4s; }
.service-card:nth-child(1) { grid-column: span 7; min-height: 560px; }
.service-card:nth-child(2) { grid-column: span 5; }
.service-card:nth-child(3) { grid-column: span 5; }
.service-card:nth-child(4) { grid-column: span 7; }
.service-card::before { content: ""; position: absolute; z-index: 0; width: 310px; height: 310px; right: -130px; top: -150px; border-radius: 50%; border: 70px solid rgba(235,195,67,.055); transition: transform .5s var(--ease); }
.service-card::after { content: counter(servicecount, decimal-leading-zero); position: absolute; z-index: 0; right: 26px; bottom: -0.14em; font-family: var(--font-display); font-weight: 400; font-size: clamp(120px,13vw,210px); line-height: 1; letter-spacing: -.04em; color: var(--accent); opacity: .07; pointer-events: none; }
.service-card:nth-child(2), .service-card:nth-child(3) { background: var(--navy-3); color: #fff; border-color: var(--line-dark); }
.service-card:hover { transform: translateY(-8px); border-color: rgba(235,195,67,.55); box-shadow: var(--shadow); }
.service-card:nth-child(1):hover, .service-card:nth-child(4):hover { background: var(--paper-2); }
.service-card:nth-child(2):hover, .service-card:nth-child(3):hover { background: var(--navy-2); }
.service-card:hover::before { transform: scale(1.18) translate(-12px,12px); }
.service-card:hover .service-card-head,
.service-card:hover .service-card-body { transform: translateX(4px); }
.service-card-head, .service-card-body, .service-card-foot { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; transition: transform .4s var(--ease); }
.service-card-body { display: block; }
.service-card-head span { color: var(--text-soft); font-size: 9px; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; }
.service-card:nth-child(2) .service-card-head span, .service-card:nth-child(3) .service-card-head span { color: #aeb8c2; }
.service-card-head i { color: var(--accent); font-size: 30px; font-weight: 400; font-style: normal; font-family: var(--font-display); line-height: 1; }
.service-card-body { max-width: 500px; margin: auto 0 45px; }
.service-card h3 { max-width: 520px; margin: 0 0 22px; font-family: var(--font-display); font-size: clamp(38px,4vw,60px); font-weight: 400; line-height: .95; letter-spacing: -.055em; }
.service-card:nth-child(1) h3 { font-size: clamp(42px,4.4vw,68px); }
.service-card p { max-width: 440px; margin: 0; color: var(--text-soft); font-size: 14px; line-height: 1.75; }
.service-card:nth-child(2) p, .service-card:nth-child(3) p { color: #aeb8c2; }
.service-card ul { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 24px 0 0; list-style: none; }
.service-card li { padding: 8px 12px; border: 1px solid var(--line-light); border-radius: 2px; font-size: 8px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.service-card:nth-child(2) li, .service-card:nth-child(3) li { border-color: var(--line-dark); }
.service-card-foot { position: relative; padding-top: 22px; border-top: 1px solid var(--line-light); font-size: 9px; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; overflow: hidden; }
.service-card-foot::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 0; height: 2px; background: var(--accent-bright); transition: width .45s var(--ease); }
.service-card:hover .service-card-foot::after { width: 100%; }
.service-card:nth-child(2) .service-card-foot, .service-card:nth-child(3) .service-card-foot { border-color: var(--line-dark); }
.service-card-foot b { display: inline-block; color: var(--accent); font-size: 20px; font-weight: 400; transition: transform .35s var(--ease); }
.service-card:hover .service-card-foot b { transform: translate(3px, -3px); }

.journey { overflow: hidden; background: var(--navy); color: #fff; }
.journey::after { content:""; position:absolute; inset:0; opacity:.14; background-image: linear-gradient(rgba(255,255,255,.12) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.12) 1px,transparent 1px); background-size: 80px 80px; mask-image: linear-gradient(90deg,transparent,#000); }
.journey-layout { position: relative; z-index: 1; display: grid; grid-template-columns: .85fr 1.15fr; gap: 100px; }
.journey-intro h2 { margin: 28px 0 26px; font-family: var(--font-display); font-size: clamp(55px,6vw,88px); font-weight: 400; line-height: .9; letter-spacing: -.06em; }
.journey-intro p { max-width: 430px; color:#aab5bf; font-size:14px; line-height:1.8; }
.journey-steps { margin:0; padding:0; list-style:none; }
.journey-steps li { display:grid; grid-template-columns:80px 1fr; gap:26px; padding:34px 0; border-top:1px solid rgba(255,255,255,.14); }
.journey-steps li:last-child { border-bottom:1px solid rgba(255,255,255,.14); }
.journey-steps > li > span { color:var(--accent); font-size:11px; font-weight:850; letter-spacing:.13em; }
.journey-steps h3 { margin:0 0 10px; font-family:var(--font-display); font-size:32px; font-weight:400; }
.journey-steps p { margin:0; color:#aab5bf; font-size:13px; line-height:1.7; }

.faq { background: var(--surface-alt); }
.faq-layout { display:grid; grid-template-columns:.8fr 1.2fr; gap:100px; }
.faq-intro { position:sticky; top:120px; align-self:start; }
.faq-intro h2 { margin:28px 0 24px; font-family:var(--font-display); font-size:clamp(48px,5vw,72px); font-weight:400; line-height:.95; letter-spacing:-.055em; }
.faq-intro p { color:var(--text-soft); font-size:14px; line-height:1.7; }
.faq-list details { border-top:1px solid var(--line-light); }
.faq-list details:last-child { border-bottom:1px solid var(--line-light); }
.faq-list summary { position:relative; padding:30px 52px 30px 0; cursor:pointer; list-style:none; font-family:var(--font-display); font-size:24px; line-height:1.25; }
.faq-list summary::-webkit-details-marker { display:none; }
.faq-list summary::after { content:"+"; position:absolute; right:8px; top:27px; color:var(--accent); font-family:Inter,sans-serif; font-size:26px; font-weight:300; transition:transform .25s; }
.faq-list details[open] summary::after { transform:rotate(45deg); }
.faq-list details p { max-width:650px; padding:0 45px 30px 0; margin:0; color:var(--text-soft); font-size:14px; line-height:1.75; }

/* Credit simulator */
.credit-simulator {
  overflow: hidden;
  background: var(--surface-alt);
}

.credit-simulator::before {
  content: "";
  position: absolute;
  width: 620px;
  height: 620px;
  top: -390px;
  left: -270px;
  border: 110px solid rgba(235, 195, 67, 0.045);
  border-radius: 50%;
  pointer-events: none;
}

.credit-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(280px, 0.76fr) minmax(560px, 1.24fr);
  gap: 90px;
  align-items: start;
}

.credit-intro {
  position: sticky;
  top: 122px;
}

.credit-intro h2 {
  max-width: 590px;
  margin: 28px 0 26px;
  font-family: var(--font-display);
  font-size: clamp(52px, 5.5vw, 82px);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: -0.06em;
}

.credit-intro > p {
  max-width: 500px;
  margin: 0;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.8;
}

.credit-principles {
  display: grid;
  gap: 0;
  margin-top: 42px;
  border-top: 1px solid var(--line-light);
}

.credit-principles > span {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line-light);
  color: var(--text-soft);
  font-size: 11px;
  line-height: 1.55;
}

.credit-principles b {
  color: var(--accent);
  font-size: 9px;
  letter-spacing: 0.12em;
}

.credit-calculator {
  position: relative;
  overflow: hidden;
  padding: 42px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  background: var(--navy);
  color: #fff;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.22);
}

.credit-calculator::after {
  content: "";
  position: absolute;
  top: -160px;
  right: -150px;
  width: 370px;
  height: 370px;
  border: 82px solid rgba(235, 195, 67, 0.08);
  border-radius: 50%;
  pointer-events: none;
}

.credit-calculator > * {
  position: relative;
  z-index: 1;
}

.credit-calculator-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}

.credit-calculator-head span {
  display: block;
  margin-bottom: 8px;
  color: #8f9eac;
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.credit-calculator-head h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(34px, 3vw, 48px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.045em;
}

.credit-calculator-head > small {
  max-width: 190px;
  color: #81909e;
  font-size: 9px;
  line-height: 1.55;
  text-align: right;
}

.credit-type-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 0 0 34px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.035);
}

.credit-type-tabs button {
  min-height: 46px;
  padding: 8px 12px;
  border: 1px solid transparent;
  background: transparent;
  color: #9aa8b5;
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.2s, background-color 0.2s, border-color 0.2s;
}

.credit-type-tabs button:hover {
  color: #fff;
}

.credit-type-tabs button.is-active {
  border-color: rgba(255, 255, 255, 0.11);
  background: #fff;
  color: var(--ink);
}

.credit-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 24px;
}

.credit-field {
  min-width: 0;
}

.credit-field-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 13px;
}

.credit-field label {
  color: #a9b4bf;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  line-height: 1.45;
  text-transform: uppercase;
}

.credit-field output {
  color: #fff;
  font-family: var(--font-display);
  font-size: 20px;
  white-space: nowrap;
}

.credit-field input[type="range"] {
  width: 100%;
  height: 5px;
  margin: 10px 0 5px;
  border-radius: 999px;
  outline: 0;
  background: linear-gradient(90deg, var(--accent) 0 var(--range-progress, 50%), rgba(255, 255, 255, 0.14) var(--range-progress, 50%) 100%);
  appearance: none;
}

.credit-field input[type="range"]::-webkit-slider-thumb {
  width: 20px;
  height: 20px;
  border: 5px solid #fff;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.32);
  appearance: none;
}

.credit-field input[type="range"]::-moz-range-thumb {
  width: 10px;
  height: 10px;
  border: 5px solid #fff;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.32);
}

.credit-range-limits {
  display: flex;
  justify-content: space-between;
  color: #657582;
  font-size: 8px;
}

.credit-rate-wrap {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.045);
}

.credit-rate-wrap input {
  width: 100%;
  height: 46px;
  min-width: 0;
  padding: 0 14px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font-size: 16px;
}

.credit-rate-wrap input:focus {
  box-shadow: inset 0 0 0 1px var(--accent);
}

.credit-rate-wrap span {
  padding-right: 14px;
  color: #82919e;
  font-size: 11px;
}

.credit-rate-note {
  display: block;
  margin-top: 8px;
  color: #667683;
  font-size: 8px;
  line-height: 1.45;
}

.credit-result {
  display: grid;
  grid-template-columns: minmax(230px, 0.95fr) 1.05fr;
  gap: 30px;
  margin-top: 36px;
  padding: 30px;
  border-left: 3px solid var(--accent);
  background: rgba(255, 255, 255, 0.055);
}

.credit-payment small {
  display: block;
  margin-bottom: 8px;
  color: #a3afba;
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.credit-payment strong {
  display: block;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(46px, 5vw, 70px);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: -0.055em;
}

.credit-payment > span {
  display: block;
  margin-top: 10px;
  color: #788896;
  font-size: 9px;
}

.credit-result-list {
  display: grid;
  align-content: center;
  margin: 0;
}

.credit-result-list div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.credit-result-list div:last-child {
  border-bottom: 0;
}

.credit-result-list dt {
  color: #82919e;
  font-size: 9px;
}

.credit-result-list dd {
  margin: 0;
  color: #fff;
  font-size: 10px;
  font-weight: 750;
  text-align: right;
}

.credit-calculator-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
  margin-top: 26px;
}

.credit-calculator-actions p {
  margin: 0;
  color: #71818f;
  font-size: 8px;
  line-height: 1.6;
}

.credit-calculator-actions .button {
  min-height: 50px;
  padding-inline: 22px;
  white-space: nowrap;
}

.credit-error {
  display: block;
  min-height: 20px;
  margin-top: 14px;
  color: #ff8b8f;
  font-size: 9px;
}

@media (max-width: 1120px) {
  :root { --header-h: 76px; }
  .desktop-nav a { min-width: 75px; padding-inline: 11px; }
  .hero-layout { grid-template-columns: minmax(0, 0.9fr) minmax(440px, 1.1fr); gap: 20px; }
  .portal-stage { width: min(48vw, 590px); }
  .intro-layout { grid-template-columns: 45px 1fr 0.72fr; gap: 35px; }
  .values-layout { gap: 55px; }
  .contact-layout { grid-template-columns: 1fr 0.72fr; gap: 55px; }
}

@media (max-width: 900px) {
  .solution-rail-grid {
    display: flex;
    width: auto;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .solution-rail-grid::-webkit-scrollbar { display: none; }
  .solution-rail a {
    flex: 0 0 auto;
    width: 68vw;
    max-width: 300px;
    min-height: 84px;
    scroll-snap-align: start;
  }
  .desktop-nav { display: none; }
  .header-actions { margin-left: auto; }
  .menu-toggle { display: grid; }
  .mobile-menu { display: block; }
  .hero-layout { grid-template-columns: 1fr; align-content: center; gap: 38px; padding-top: 128px; padding-bottom: 92px; }
  .hero-cinematic .hero-cinema-layout { padding-top: calc(var(--header-h) + 48px); padding-bottom: 128px; align-content: end; }
  .hero-copy { position: relative; z-index: 2; max-width: 720px; }
  .hero h1 { max-width: 760px; font-size: clamp(58px, 11vw, 86px); }
  .hero-copy > p { max-width: 610px; }
  .portal-stage { width: 72vw; }
  .orbit-card { display: none; }
  .intro-layout { grid-template-columns: 50px 1fr; }
  .intro-copy { grid-column: 2; max-width: 680px; padding-top: 6px; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .journey-layout, .faq-layout { grid-template-columns: 1fr; gap:55px; }
  .faq-intro { position:static; }
  .credit-layout { grid-template-columns: 1fr; gap: 52px; }
  .credit-intro { position: static; }
  .services-grid { grid-template-columns: 1fr; }
  .service-card, .service-card:nth-child(1), .service-card:nth-child(2), .service-card:nth-child(3), .service-card:nth-child(4) { grid-column: span 1; min-height: 420px; }
  .service-card::after { font-size: clamp(90px,20vw,150px); }
  .projects-grid { grid-template-columns: 1fr; }
  .project-card, .project-card:nth-child(1), .project-card:nth-child(2), .project-card:nth-child(3), .project-card:nth-child(4) { grid-column: span 1; }
  .project-card { min-height: 390px; }
  .facts-grid { grid-template-columns: repeat(2, 1fr); }
  .facts-grid article:nth-child(2) { border-right: 1px solid rgba(255, 255, 255, 0.23); }
  .facts-grid article:nth-child(-n + 2) { border-bottom: 1px solid rgba(255, 255, 255, 0.23); }
  .values-layout { grid-template-columns: 1fr; }
  .values-intro { position: static; }
  .contact-layout { grid-template-columns: 1fr; }
  .contact-panel { max-width: 680px; }
  .footer-grid { grid-template-columns: 1.3fr repeat(2, 0.7fr); }
  .footer-column:last-child { grid-column: 2 / -1; }
}

@media (max-width: 640px) {
  .solution-rail a { width: 78vw; min-height: 80px; padding: 16px 18px; }
  .solution-rail a strong { font-size: 15px; }
  :root { --header-h: 68px; }
  .shell { width: min(calc(100% - 30px), var(--max)); }
  .section { padding: 68px 0; }
  .brand-mark { width: 36px; height: 23px; }
  .brand-copy strong { font-size: 17px; }
  .brand-copy small { margin-top: 6px; font-size: 6px; }
  .language-toggle { height: 40px; padding: 0 10px; }
  .icon-button { width: 40px; height: 40px; }
  .menu-toggle { width: 40px; height: 40px; }
  .hero { min-height: 100svh; }
  .hero-layout { min-height: 100svh; padding-top: 112px; padding-bottom: 100px; }
  .hero h1 { margin-top: 19px; font-size: clamp(48px, 15.2vw, 68px); line-height: 0.9; }
  .hero-copy > p { font-size: 14px; line-height: 1.7; }
  .hero-actions { align-items: stretch; flex-direction: column; max-width: 330px; }
  .button { width: 100%; }
  .portal-stage { width: 112vw; }
  .portal-center { width: 104px; }
  .portal-center span { font-size: 28px; }
  .scroll-cue { left: 15px; transform: none; }
  .intro-layout { grid-template-columns: 1fr; gap: 24px; }
  .section-index { display: none; }
  .intro-copy { grid-column: auto; }
  .intro h2,
  .section-heading h2,
  .values-intro h2,
  .contact h2 { font-size: clamp(32px, 9vw, 44px); }
  .intro-copy p:first-child { font-size: 17px; }
  .section-heading { gap: 24px; margin-bottom: 38px; }
  .services-grid { grid-template-columns:1fr; gap:16px; }
  .service-card { min-height:380px; padding:26px; }
  .service-card:nth-child(1) { min-height:380px; }
  .service-card h3, .service-card:nth-child(1) h3 { font-size:clamp(34px,10vw,44px); }
  .service-card-body { margin-bottom:32px; }
  .service-card::after { right:14px; font-size:clamp(70px,26vw,120px); opacity:.06; }
  .journey-layout, .faq-layout { gap:38px; }
  .journey-steps li { grid-template-columns:42px 1fr; gap:16px; padding:26px 0; }
  .faq-intro h2 { font-size:46px; }
  .faq-list summary { font-size:21px; }
  .credit-layout { gap: 36px; }
  .credit-intro h2 { font-size: clamp(44px, 13vw, 58px); }
  .credit-principles { margin-top: 30px; }
  .credit-calculator { padding: 26px 20px; }
  .credit-calculator-head { align-items: flex-start; flex-direction: column; margin-bottom: 24px; }
  .credit-calculator-head > small { max-width: none; text-align: left; }
  .credit-type-tabs { grid-template-columns: 1fr; }
  .credit-type-tabs button { min-height: 42px; }
  .credit-controls { grid-template-columns: 1fr; gap: 24px; }
  .credit-result { grid-template-columns: 1fr; gap: 22px; padding: 23px 20px; }
  .credit-calculator-actions { grid-template-columns: 1fr; }
  .credit-calculator-actions .button { width: 100%; }
  .project-card { min-height: 365px; padding: 22px; border-radius: 4px; }
  .project-card-copy { max-width: 78%; }
  .project-card p { display: none; }
  .project-monogram { font-size: 110px; }
  .project-card-arrow { width: 48px; height: 48px; }
  .facts-grid article { min-height: 145px; padding: 22px 18px; }
  .facts-grid article > span { font-size: 7px; }
  .values-list article { grid-template-columns: 44px 1fr; padding-block: 24px; }
  .statement-layout { grid-template-columns: 1fr; gap: 0; }
  .statement-number { margin-bottom: 30px; font-size: 160px; }
  .statement blockquote { font-size: clamp(34px, 10vw, 48px); }
  .contact-panel { padding: 24px; }
  .contact-links strong { max-width: 220px; overflow-wrap: anywhere; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 30px 22px; }
  .footer-lead { grid-column: 1 / -1; }
  .footer-column:last-child { grid-column: auto; }
  .footer-bottom { align-items: flex-start; flex-direction: column; margin-top: 30px; }
  .footer-bottom div { flex-direction: column; gap: 10px; }
}

@media (max-width: 390px) {
  .header-inner { gap: 10px; }
  .brand-copy { display: none; }
  .language-toggle { padding-inline: 9px; }
  .hero h1 { font-size: 47px; }
  .facts-grid strong { font-size: 35px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-column:last-child { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition-duration: 0.01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* Next Start — light-first visual direction */
.hero-layout {
  grid-template-columns: minmax(0, 0.95fr) minmax(430px, 0.9fr);
  gap: clamp(52px, 6vw, 96px);
}

.hero-copy {
  position: relative;
  z-index: 2;
  min-width: 0;
  max-width: 580px;
}

.hero h1 {
  max-width: 570px;
  font-size: clamp(30px, 8vw, 78px);
  line-height: 0.94;
  letter-spacing: -0.055em;
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
}

.hero-visual {
  width: 100%;
  max-width: 610px;
  min-width: 0;
  justify-self: end;
  overflow: clip;
  isolation: isolate;
}

.hero-editorial {
  width: 100%;
  max-width: 610px;
  margin-left: 0;
}

html[data-theme="light"] .site-header {
  border-bottom-color: rgba(17, 24, 32, 0.1);
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  backdrop-filter: blur(18px);
}

html[data-theme="light"] .site-header.is-scrolled,
html[data-theme="light"] .site-header.is-menu-open {
  border-bottom-color: rgba(17, 24, 32, 0.1);
  background: var(--header-bg);
  box-shadow: 0 12px 34px rgba(7, 16, 25, 0.08);
}

html[data-theme="light"] .desktop-nav a {
  border-left-color: rgba(17, 24, 32, 0.09);
  color: #495563;
}

html[data-theme="light"] .desktop-nav a:last-child {
  border-right-color: rgba(17, 24, 32, 0.09);
}

html[data-theme="light"] .desktop-nav a:hover,
html[data-theme="light"] .desktop-nav a.is-active {
  background: rgba(235, 195, 67, 0.055);
  color: var(--ink);
}

html[data-theme="light"] .language-toggle,
html[data-theme="light"] .icon-button,
html[data-theme="light"] .menu-toggle {
  border-color: rgba(17, 24, 32, 0.16);
  background: rgba(17, 24, 32, 0.025);
  color: var(--ink);
}

html[data-theme="light"] .mobile-menu {
  background: rgba(255, 255, 255, 0.985);
  color: var(--ink);
}

html[data-theme="light"] .mobile-menu nav a {
  border-color: rgba(17, 24, 32, 0.12);
}

html[data-theme="light"] .mobile-menu-footer button,
html[data-theme="light"] .mobile-menu-footer a {
  color: var(--ink);
}

html[data-theme="light"] .hero {
  border-bottom: 1px solid #e5e8e6;
  background: #fff;
  color: var(--ink);
}

html[data-theme="light"] .hero::after {
  background: linear-gradient(transparent, rgba(242, 243, 241, 0.76));
}

html[data-theme="light"] .hero-grid {
  opacity: 0.38;
  background-image: linear-gradient(rgba(17, 24, 32, 0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(17, 24, 32, 0.06) 1px, transparent 1px);
  mask-image: linear-gradient(90deg, transparent, #000 38%, #000 100%);
}

html[data-theme="light"] .hero-glow-one {
  background: radial-gradient(circle, rgba(235, 195, 67, 0.12), transparent 68%);
}

html[data-theme="light"] .hero-glow-two {
  background: radial-gradient(circle, rgba(17, 24, 32, 0.07), transparent 70%);
}

html[data-theme="light"] .hero .eyebrow {
  color: #657181;
}

html[data-theme="light"] .hero-copy > p {
  color: #5f6b78;
}

html[data-theme="light"] .hero .button-ghost {
  border-color: rgba(17, 24, 32, 0.22);
  color: var(--ink);
}

html[data-theme="light"] .hero .button-ghost:hover {
  border-color: var(--ink);
  background: rgba(17, 24, 32, 0.045);
}

html[data-theme="light"] .scroll-cue i {
  background: rgba(17, 24, 32, 0.16);
}

html[data-theme="light"] .hero-editorial {
  box-shadow: 0 38px 90px rgba(7, 16, 25, 0.22);
}

/* O hero cinematográfico mantém sempre o tratamento escuro/imagem,
   independentemente do tema claro/escuro escolhido pelo utilizador —
   só o resto da página muda com o tema. */
html[data-theme="light"] .hero.hero-cinematic {
  background: var(--navy);
  color: #fff;
  border-bottom: none;
}

html[data-theme="light"] .hero.hero-cinematic .eyebrow {
  color: #d5dde5;
}

html[data-theme="light"] .hero.hero-cinematic .hero-copy > p {
  color: rgba(255, 255, 255, 0.82);
}

html[data-theme="light"] .hero.hero-cinematic::after {
  background: linear-gradient(transparent, rgba(2, 7, 11, 0.72));
}

html[data-theme="light"] .intro,
html[data-theme="light"] .services,
html[data-theme="light"] .values {
  background: #fff;
}

html[data-theme="light"] .credit-simulator,
html[data-theme="light"] .faq {
  background: #f5f6f4;
}

@media (max-width: 1180px) {
  .hero-layout {
    grid-template-columns: minmax(0, 1fr) minmax(400px, 0.88fr);
    gap: 46px;
  }

  .hero h1 {
    font-size: clamp(50px, 5.6vw, 70px);
  }
}

@media (max-width: 900px) {
  .hero,
  .hero-layout {
    min-height: auto;
  }

  .hero-layout {
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
    gap: 52px;
    padding-top: calc(var(--header-h) + 64px);
    padding-bottom: 86px;
  }

  .hero-copy {
    max-width: 680px;
  }

  .hero h1 {
    max-width: 650px;
    font-size: clamp(54px, 9vw, 76px);
  }

  .hero-visual {
    position: relative;
    right: auto;
    bottom: auto;
    width: min(100%, 680px);
    max-width: none;
    justify-self: start;
    opacity: 1;
  }

  .hero-editorial {
    max-width: none;
  }

  .scroll-cue {
    display: none;
  }
}

@media (max-width: 640px) {
  .hero-layout {
    min-height: auto;
    gap: 42px;
    padding-top: calc(var(--header-h) + 48px);
    padding-bottom: 70px;
  }

  .hero h1 {
    max-width: 100%;
    font-size: clamp(28px, 9vw, 40px);
    line-height: 1.05;
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
  }

  .hero-copy > p {
    max-width: 34rem;
  }

  .hero-visual {
    width: 100%;
  }
}

/* === 2026-08-18: multi-page depth + contrast pass === */
:root {
  --text-soft: #52606e;
  --text-soft-strong: #3f4d5a;
  --surface-raised: #ffffff;
  --border-strong: rgba(17,24,32,.18);
}
html[data-theme="dark"] {
  --text-soft: #bcc6d0;
  --text-soft-strong: #d7dde3;
  --surface-raised: #1a2038;
  --border-strong: rgba(255,255,255,.18);
}
html[data-theme="light"] .hero-copy > p { color:#4f5d6a; }
html[data-theme="light"] .hero .eyebrow { color:#556372; }
html[data-theme="light"] .desktop-nav a { color:#364452; }
html[data-theme="dark"] .service-card:nth-child(1):hover,
html[data-theme="dark"] .service-card:nth-child(4):hover { background:#142230; color:#fff; }
html[data-theme="dark"] .service-card:nth-child(1) p,
html[data-theme="dark"] .service-card:nth-child(4) p,
html[data-theme="dark"] .service-card:nth-child(1) .service-card-head span,
html[data-theme="dark"] .service-card:nth-child(4) .service-card-head span { color:#c3ccd5; }
html[data-theme="dark"] .service-card:nth-child(1) li,
html[data-theme="dark"] .service-card:nth-child(4) li { border-color:rgba(255,255,255,.16); }

.page-main { padding-top: var(--header-h); background:var(--surface); }
.inner-hero { position:relative; overflow:hidden; min-height:72vh; display:flex; align-items:flex-end; padding:110px 0 90px; background:var(--navy); color:#fff; }
.inner-hero::before { content:""; position:absolute; inset:0; opacity:.18; background-image:linear-gradient(rgba(255,255,255,.1) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.1) 1px,transparent 1px); background-size:72px 72px; mask-image:linear-gradient(90deg,transparent,#000 32%,#000); }
.inner-hero::after { content:""; position:absolute; width:540px; height:540px; right:-170px; top:-220px; border:110px solid rgba(235,195,67,.13); border-radius:50%; }
.inner-hero .shell { position:relative; z-index:1; }
.breadcrumbs { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin-bottom:34px; color:#aeb9c4; font-size:10px; font-weight:750; letter-spacing:.1em; text-transform:uppercase; }
.breadcrumbs a:hover { color:#fff; }
.breadcrumbs i { color:var(--accent); font-style:normal; }
.inner-hero h1 { max-width:920px; margin:18px 0 24px; font-family:var(--font-display); font-size:clamp(50px,6vw,88px); font-weight:400; line-height:.9; letter-spacing:-.06em; }
.inner-hero h1 strong { display:block; color:var(--accent-bright); font-weight:400; }
.inner-hero p { max-width:720px; margin:0; color:#c4ccd4; font-size:16px; line-height:1.75; }
.inner-actions { display:flex; flex-wrap:wrap; gap:12px; margin-top:38px; }

.content-section { position:relative; padding:88px 0; background:var(--surface); }
.content-section.alt { background:var(--surface-alt); }
.section-heading { display:grid; grid-template-columns:minmax(0,1.2fr) minmax(280px,.8fr); gap:70px; align-items:end; margin-bottom:58px; }
.section-heading h2 { max-width:820px; margin:18px 0 0; font-family:var(--font-display); font-size:clamp(38px,4.4vw,64px); font-weight:400; line-height:.95; letter-spacing:-.05em; }
.section-heading p { margin:0; color:var(--text-soft); font-size:14px; line-height:1.8; }

.depth-grid { display:grid; grid-template-columns:repeat(12,1fr); gap:18px; }
.depth-card { position:relative; min-height:360px; grid-column:span 6; display:flex; flex-direction:column; justify-content:space-between; padding:34px; overflow:hidden; border:1px solid var(--line-light); background:var(--surface-raised); transition:transform .35s var(--ease), border-color .3s, box-shadow .3s; }
.depth-card:hover { transform:translateY(-6px); border-color:rgba(235,195,67,.5); box-shadow:0 26px 68px rgba(0,0,0,.1); }
.depth-card .num { color:var(--accent); font-size:10px; font-weight:850; letter-spacing:.14em; }
.depth-card h3 { max-width:560px; margin:42px 0 16px; font-family:var(--font-display); font-size:clamp(36px,4vw,56px); font-weight:400; line-height:.96; letter-spacing:-.045em; }
.depth-card p { max-width:520px; margin:0; color:var(--text-soft); font-size:14px; line-height:1.75; }
.depth-card .card-link { display:flex; justify-content:space-between; align-items:center; gap:20px; margin-top:36px; padding-top:18px; border-top:1px solid var(--line-light); font-size:9px; font-weight:850; letter-spacing:.13em; text-transform:uppercase; }
.depth-card .card-link b { color:var(--accent); font-family:var(--font-display); font-size:24px; font-weight:400; }

.detail-layout { display:grid; grid-template-columns:minmax(260px,.62fr) minmax(0,1.38fr); gap:90px; align-items:start; }
.detail-aside { position:sticky; top:112px; }
.detail-aside h2 { margin:22px 0 18px; font-family:var(--font-display); font-size:clamp(42px,4.8vw,68px); font-weight:400; line-height:.94; letter-spacing:-.05em; }
.detail-aside p { color:var(--text-soft); font-size:14px; line-height:1.8; }
.detail-body { display:grid; gap:0; border-top:1px solid var(--line-light); }
.detail-block { display:grid; grid-template-columns:74px 1fr; gap:24px; padding:34px 0; border-bottom:1px solid var(--line-light); }
.detail-block > span { color:var(--accent); font-size:10px; font-weight:850; letter-spacing:.13em; }
.detail-block h3 { margin:0 0 12px; font-family:var(--font-display); font-size:30px; font-weight:400; line-height:1.05; }
.detail-block p { max-width:720px; margin:0; color:var(--text-soft); font-size:14px; line-height:1.8; }
.detail-block ul { margin:16px 0 0; padding-left:18px; color:var(--text-soft); font-size:14px; line-height:1.8; }

.keyword-cloud { display:flex; flex-wrap:wrap; gap:9px; margin-top:28px; }
.keyword-cloud span { padding:9px 12px; border:1px solid var(--line-light); color:var(--text-soft-strong); font-size:9px; font-weight:800; letter-spacing:.09em; text-transform:uppercase; }

.faq-page-list { border-top:1px solid var(--line-light); }
.faq-page-list details { border-bottom:1px solid var(--line-light); }
.faq-page-list summary { position:relative; cursor:pointer; list-style:none; padding:28px 58px 28px 0; font-family:var(--font-display); font-size:clamp(21px,2.3vw,30px); line-height:1.2; }
.faq-page-list summary::-webkit-details-marker { display:none; }
.faq-page-list summary::after { content:"+"; position:absolute; right:8px; top:24px; color:var(--accent); font-family:Inter,sans-serif; font-size:28px; font-weight:300; transition:transform .25s; }
.faq-page-list details[open] summary::after { transform:rotate(45deg); }
.faq-page-list .faq-answer { max-width:850px; padding:0 50px 30px 0; color:var(--text-soft); font-size:14px; line-height:1.85; }

.notice-box { padding:26px 28px; border-left:3px solid var(--accent); background:var(--surface-alt); color:var(--text-soft); font-size:13px; line-height:1.75; }
.notice-box strong { color:var(--text); }

.cta-band { position:relative; overflow:hidden; padding:92px 0; background:var(--navy); color:#fff; }
.cta-band::after { content:""; position:absolute; width:440px; height:440px; right:-160px; bottom:-250px; border:90px solid rgba(235,195,67,.14); border-radius:50%; }
.cta-band .shell { position:relative; z-index:1; display:grid; grid-template-columns:1fr auto; gap:50px; align-items:end; }
.cta-band h2 { max-width:820px; margin:18px 0 0; font-family:var(--font-display); font-size:clamp(44px,5vw,72px); font-weight:400; line-height:.94; letter-spacing:-.055em; }
.cta-band p { max-width:620px; margin:20px 0 0; color:#aeb9c4; font-size:14px; line-height:1.75; }

.project-detail-card { min-height:430px; grid-column:span 6; }
.project-detail-card-solo,
.depth-card-solo { grid-column:span 12; }
.project-detail-card .monogram { position:absolute; right:26px; top:18px; color:var(--accent); opacity:.08; font-family:var(--font-display); font-size:150px; line-height:1; }

/* IDesign showreel: personal-portfolio teaser, own block within the Projetos grid */
.project-showreel-card { grid-column:span 12; min-height:auto; padding:0; overflow:hidden; }
.project-showreel-layout { display:grid; grid-template-columns:1.1fr 0.9fr; min-height:380px; }
.project-showreel-media { position:relative; overflow:hidden; background:var(--navy-2); }
.project-showreel-video,
.project-showreel-fallback { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.project-showreel-fallback { z-index:1; }
.project-showreel-video { z-index:2; opacity:0; transition:opacity .6s var(--ease); }
.project-showreel-media.is-ready .project-showreel-video { opacity:1; }
.project-showreel-media.is-empty .project-showreel-video,
.project-showreel-media.is-empty .project-showreel-fallback { opacity:0; }
.project-showreel-body { position:relative; z-index:1; padding:34px; display:flex; flex-direction:column; justify-content:center; gap:14px; background:var(--surface-raised); }
.project-showreel-body .num { color:var(--accent); font-size:10px; font-weight:850; letter-spacing:.14em; text-transform:uppercase; }
.project-showreel-body h3 { margin:0; font-family:var(--font-display); font-size:clamp(32px,3.4vw,48px); font-weight:400; line-height:.98; letter-spacing:-.045em; }
.project-showreel-body p { margin:0; max-width:420px; color:var(--text-soft); font-size:14px; line-height:1.75; }
.card-link-pending { cursor:default; color:var(--text-soft); }

/* ===================================================================
   /marcas/ — showcase editorial. Ambiente sempre escuro (independente
   do tema claro/escuro do site, tal como .inner-hero e .cta-band).
   Cada marca é apresentada como uma grande capa (.brand-cover), inspirada
   no ritmo/escala de páginas de portefólio: fundo dark, logótipo oficial
   como elemento principal com bastante espaço negativo, e a informação
   textual (nome, categoria, descrição, acesso) sempre em hierarquia
   secundária, abaixo da capa — nunca a competir com ela. Escopo desta
   página apenas — não afeta o preview de Marcas na Home (.brand-panel*)
   nem o resto do site.
   =================================================================== */
.brand-showcase {
  position: relative;
  padding: 0 0 140px;
  background: var(--navy);
  color: #fff;
}

.brand-showcase-heading {
  max-width: 620px;
  margin: 0 0 84px;
}

.brand-showcase-heading .eyebrow { color: #c7d0d9; }

.brand-showcase-heading h2 {
  margin: 16px 0 18px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(34px, 3.8vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.brand-showcase-heading p {
  margin: 0;
  max-width: 460px;
  color: #a7b1bc;
  font-size: 15px;
  line-height: 1.75;
}

.brand-covers {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 44px;
}

.brand-cover {
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
}

.brand-cover:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 8px;
  border-radius: 8px;
}

/* Capa: elemento principal do card. A arte final (logo oficial + indicação
   de rodapé) já vem pronta nos ficheiros -cover.webp — o CSS apenas
   enquadra a imagem, nunca desenha logo, texto ou geometria por cima dela.
   aspect-ratio replica exatamente a proporção dos ficheiros (1448×1086)
   para a imagem nunca ser cortada, em nenhuma largura de ecrã. */
.brand-cover-frame {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  aspect-ratio: 1448 / 1086;
  border-radius: 6px;
  background: var(--navy-2);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.3);
  transition: transform 0.5s var(--ease), filter 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.brand-cover[data-brand="idesign"] .brand-cover-frame { background: var(--navy-3); }

.brand-cover:hover .brand-cover-frame,
.brand-cover:focus-visible .brand-cover-frame {
  transform: translateY(-4px);
  filter: brightness(1.07);
  box-shadow: 0 36px 80px rgba(0, 0, 0, 0.34);
}

.brand-cover-art {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.brand-cover:hover .brand-cover-art,
.brand-cover:focus-visible .brand-cover-art { transform: scale(1.02); }

/* Meta: nome, categoria, descrição e acesso — hierarquia secundária,
   sempre abaixo da capa, nunca sobreposta. */
.brand-cover-meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 26px 6px 0;
}

.brand-cover-category {
  color: var(--accent);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.brand-cover-meta h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(24px, 2vw, 28px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: #fff;
}

.brand-cover-meta p {
  margin: 0;
  max-width: 42ch;
  color: #a7b0ba;
  font-size: 14px;
  line-height: 1.7;
}

.brand-cover-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
  color: #fff;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.brand-cover-cta b {
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 400;
  transition: transform 0.3s;
}

.brand-cover:hover .brand-cover-cta b,
.brand-cover:focus-visible .brand-cover-cta b { transform: translate(3px, -3px); }

@media (max-width: 900px) {
  .brand-covers { grid-template-columns: 1fr; gap: 64px; }
}

@media (max-width: 640px) {
  .brand-showcase { padding-bottom: 90px; }
  .brand-showcase-heading { margin-bottom: 56px; }
  .brand-covers { gap: 48px; }
  .brand-cover-frame { border-radius: 4px; }
  .brand-cover-meta { padding-top: 22px; }
}

.simulator-standalone { max-width:900px; margin-inline:auto; padding:42px; border:1px solid rgba(255,255,255,.12); background:var(--navy); color:#fff; box-shadow:0 34px 90px rgba(0,0,0,.22); }
.sim-grid { display:grid; grid-template-columns:1fr 1fr; gap:24px; }
.sim-field { padding:18px 0; border-bottom:1px solid rgba(255,255,255,.12); }
.sim-field label { display:flex; justify-content:space-between; gap:20px; color:#c3ccd5; font-size:12px; }
.sim-field output { color:#fff; font-weight:800; }
.sim-field input[type="range"] { width:100%; margin-top:18px; accent-color:var(--accent); }
.sim-field input[type="number"] { width:100%; margin-top:12px; padding:14px; border:1px solid rgba(255,255,255,.18); background:#101c28; color:#fff; }
.sim-results { display:grid; grid-template-columns:repeat(3,1fr); gap:1px; margin-top:28px; background:rgba(255,255,255,.12); }
.sim-results div { padding:20px; background:var(--navy); }
.sim-results small { display:block; color:#8f9eac; font-size:9px; letter-spacing:.12em; text-transform:uppercase; }
.sim-results strong { display:block; margin-top:8px; font-family:var(--font-display); font-size:26px; font-weight:400; }

.simple-contact-grid { display:grid; grid-template-columns:1fr 1fr; gap:18px; }
.simple-contact-card { padding:34px; border:1px solid var(--line-light); background:var(--surface-raised); }
.simple-contact-card small { color:var(--text-soft); font-size:9px; font-weight:850; letter-spacing:.13em; text-transform:uppercase; }
.simple-contact-card strong { display:block; margin-top:12px; font-family:var(--font-display); font-size:clamp(28px,3vw,42px); font-weight:400; }

.page-main + .site-footer .footer-brand { color:#fff; }
.site-header.inner-header { background:var(--header-bg); color:var(--text); border-bottom-color:var(--line-light); backdrop-filter:blur(18px); }
.site-header.inner-header .desktop-nav a { color:var(--text-soft-strong); border-left-color:var(--line-light); }
.site-header.inner-header .desktop-nav a:last-child { border-right-color:var(--line-light); }
.site-header.inner-header .language-toggle,
.site-header.inner-header .icon-button,
.site-header.inner-header .menu-toggle { color:var(--text); border-color:var(--line-light); background:rgba(127,127,127,.04); }
.site-header.inner-header .desktop-nav a.is-active { color:var(--text); background:rgba(235,195,67,.07); }

@media (max-width: 900px) {
  .inner-hero { min-height:auto; padding:88px 0 72px; }
  .section-heading, .detail-layout, .cta-band .shell { grid-template-columns:1fr; gap:36px; }
  .detail-aside { position:static; }
  .depth-card, .project-detail-card { grid-column:span 12; }
  .project-showreel-layout { grid-template-columns:1fr; }
  .project-showreel-media { aspect-ratio:16/9; }
  .sim-grid, .simple-contact-grid { grid-template-columns:1fr; }
  .sim-results { grid-template-columns:1fr; }
}
@media (max-width: 620px) {
  .page-main { padding-top:74px; }
  .inner-hero { padding:70px 0 58px; }
  .inner-hero h1 { font-size:clamp(38px,11vw,52px); }
  .content-section { padding:60px 0; }
  .section-heading { margin-bottom:40px; }
  .depth-card { min-height:330px; padding:26px; }
  .detail-block { grid-template-columns:46px 1fr; gap:14px; }
  .simulator-standalone { padding:24px; }
}
