/* ====================================================
   EDGE 22 · site — scroll-driven 3D walkthrough
   ==================================================== */

:root {
  --ink: #050709;
  --ink-2: #0A0D12;
  --paper: #F5F2EC;
  --paper-2: #E9E3D6;
  --gold: #C8A36A;
  --gold-soft: #A78652;
  --white: #FFFFFF;

  --muted-on-ink: rgba(255,255,255,0.65);
  --line-on-ink: rgba(255,255,255,0.12);
  --muted-on-paper: rgba(14,22,32,0.6);
  --line-on-paper: rgba(14,22,32,0.12);

  --f-sans: 'Outfit', 'Inter', system-ui, sans-serif;
  --f-serif: 'Cormorant Garamond', 'EB Garamond', Georgia, serif;
  --f-mono: 'JetBrains Mono', ui-monospace, monospace;

  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  background: var(--ink);
  color: var(--white);
  font-family: var(--f-sans);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

html { scroll-behavior: smooth; }

body { overflow-x: hidden; }

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

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


/* ====================================================
   TYPOGRAPHY PRIMITIVES
   ==================================================== */

.eyebrow {
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted-on-ink);
}
.eyebrow.ink { color: var(--muted-on-paper); }
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--gold);
  margin-right: 12px;
  vertical-align: middle;
  margin-bottom: 2px;
}

.meta {
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted-on-ink);
}
.scene-paper .meta { color: var(--muted-on-paper); }
.meta.gold { color: var(--gold); }

.display {
  font-family: var(--f-sans);
  font-weight: 200;
  font-size: clamp(48px, 8vw, 128px);
  line-height: 0.95;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 24px 0 0;
}
.display.center { text-align: center; }

.lede {
  font-family: var(--f-serif);
  font-weight: 400;
  font-size: clamp(20px, 1.6vw, 26px);
  line-height: 1.5;
  color: var(--muted-on-ink);
  max-width: 640px;
}
.scene-paper .lede { color: var(--muted-on-paper); }
.lede em { font-style: italic; color: var(--gold); }

.rule {
  height: 1px;
  background: var(--line-on-ink);
  width: 100px;
  margin: 36px 0 28px;
}
.rule.gold { background: var(--gold); }
.rule.short { width: 56px; margin: 20px 0 20px; }
.rule.small { width: 48px; margin: 20px 0; }
.rule.center-rule { margin: 36px auto 32px; }

.gold { color: var(--gold); }
.muted { color: var(--muted-on-ink); }


/* ====================================================
   NAV
   ==================================================== */

.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 48px;
  pointer-events: none;
  transition: background 320ms ease, backdrop-filter 320ms ease;
}
.site-nav > * { pointer-events: auto; }

.site-nav.scrolled {
  background: rgba(5,7,9,0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.nav-logo {
  display: inline-flex; align-items: center;
  color: var(--white);
  line-height: 0;
}
.nav-logo-svg {
  width: 140px;
  height: auto;
  display: block;
}
.nav-logo-center { display: none; }

.nav-links {
  display: flex; gap: 32px;
  list-style: none; margin: 0; padding: 0;
}
.nav-links a {
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted-on-ink);
  position: relative;
  padding: 6px 0;
  transition: color 220ms ease;
}
.nav-links a:hover { color: var(--white); }
.nav-links a.active {
  color: var(--gold);
}
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--gold);
  transform-origin: left;
  animation: lineGrow 360ms var(--ease-out) forwards;
}
@keyframes lineGrow {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

/* ====================================================
   HAMBURGER + MOBILE MENU
   ==================================================== */

.nav-burger {
  display: none;
  position: relative;
  width: 38px;
  height: 38px;
  margin-left: auto;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 4px;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  transition: border-color 220ms ease, background 220ms ease;
  z-index: 130;
}
.nav-burger:hover { border-color: var(--gold); }
.nav-burger span {
  display: block;
  width: 18px;
  height: 1px;
  background: var(--white);
  transition: background 220ms ease;
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(5,7,9,0.96);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 360ms var(--ease-out), visibility 360ms;
}
.mobile-menu.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.mobile-menu-close {
  position: absolute;
  top: 22px;
  right: 24px;
  width: 38px;
  height: 38px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 4px;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mobile-menu-close span {
  position: absolute;
  width: 18px;
  height: 1px;
  background: var(--white);
}
.mobile-menu-close span:first-child { transform: rotate(45deg); }
.mobile-menu-close span:last-child  { transform: rotate(-45deg); }

.mobile-menu-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
  text-align: center;
}
.mobile-menu-links a {
  font-family: var(--f-mono);
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted-on-ink);
  padding: 8px 24px;
  transition: color 220ms ease;
}
.mobile-menu-links a:hover,
.mobile-menu-links a.active {
  color: var(--gold);
}
body.menu-open { overflow: hidden; }

/* Mobile nav layout — declarado depois das regras base para garantir
   que o display do hamburger sobrepõe o display:none por defeito. */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .site-nav {
    padding: 26px 24px 22px;
    justify-content: flex-end;
    min-height: 78px;
  }
  .nav-burger { display: inline-flex; }
  .nav-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
  .nav-logo-svg { width: 150px; }
  .nav-logo-left { display: none; }
  .nav-logo-center { display: block; }
}


/* ====================================================
   PROGRESS RAIL
   ==================================================== */

.progress-rail {
  position: fixed; top: 0; left: 0; right: 0;
  height: 2px;
  background: rgba(255,255,255,0.06);
  z-index: 101;
  pointer-events: none;
}
.progress-bar {
  height: 100%;
  background: var(--gold);
  width: 0;
  transition: width 80ms linear;
}


/* ====================================================
   SCENE base — every section is 100vh with 3D context
   ==================================================== */

main {
  perspective: 1600px;
  perspective-origin: 50% 50%;
}

.scene {
  position: relative;
  min-height: 100vh;
  width: 100%;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  transform-style: preserve-3d;
}

.scene-ink { background: var(--ink); color: var(--white); }
.scene-paper { background: var(--paper); color: var(--ink); }

/* ----- Scrub scene: tall section, sticky inner stage drives video time ---- */
.scrub-scene {
  height: 250vh;            /* lock distance = 150vh of scroll inside the section */
  min-height: 250vh;
  display: block;            /* override the centered flex from .scene */
  overflow: visible;         /* let the sticky child stick */
  transform-style: flat;     /* no 3D context — would break position: sticky */
  align-items: stretch; justify-content: stretch;
  background: #000;
}

/* Marca-fachada (orbital) — desktop fullscreen, scrub-scene standard.
   Removida a "parallax band" — agora ocupa o ecrã todo. */
.scrub-scene.parallax-band {
  background: var(--ink);
}
.scrub-scene.parallax-band .scrub-sticky {
  box-shadow: none;
}
@media (max-width: 720px) {
  /* Escondida no mobile — não estava a resultar */
  #marca-fachada { display: none; }
}

/* Disclaimer overlay on the marca-fachada orbital — canto inferior direito,
   texto branco sem fundo */
.fachada-disclaimer {
  position: absolute;
  right: 20px;
  bottom: 18px;
  margin: 0;
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  text-shadow: 0 1px 6px rgba(0,0,0,0.5);
  background: transparent;
  padding: 0;
  white-space: nowrap;
  pointer-events: none;
  z-index: 4;
}
@media (max-width: 720px) {
  .fachada-disclaimer { display: none; }
}
.scrub-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: #000;
}
.scrub-sticky .scene-bg,
.scrub-sticky .scene-video {
  inset: 0;
  width: 100%; height: 100%;
  transform: none;            /* scrub-driven motion comes from the video itself */
}
.scrub-sticky .scene-content {
  position: absolute;
  inset: 0;
  display: flex; flex-direction: column; justify-content: flex-end;
  z-index: 2;
}
.scene-paper .eyebrow { color: var(--muted-on-paper); }
.scene-paper .lede { color: var(--muted-on-paper); }
.scene-paper .rule { background: var(--line-on-paper); }
.scene-paper .rule.gold { background: var(--gold); }

/* Background image OR video with depth: starts behind, comes forward when active */
.scene-bg, .scene-video {
  position: absolute;
  inset: -8%;
  width: 116%; height: 116%;
  object-fit: cover;
  object-position: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: translateZ(-180px) scale(1.18);
  filter: brightness(0.85);
  transition: transform 1600ms var(--ease-out),
              filter 1600ms var(--ease-out),
              opacity 1200ms var(--ease-out);
  will-change: transform, filter;
}
.scene-video {
  pointer-events: none;
}
.scene-bg.dim { filter: brightness(0.55); }

.scene.is-active .scene-bg {
  transform: translateZ(0) scale(1.04);
  filter: brightness(1);
}
.scene.is-active .scene-bg.dim {
  filter: brightness(0.55);
}

/* Ken Burns subtle drift while active */
.scene.is-active .scene-bg::after {
  /* keep crisp */
}
.scene.is-active .scene-bg {
  animation: kenburns 28s var(--ease-in-out) infinite alternate;
  animation-delay: 600ms;
}
@keyframes kenburns {
  0%   { background-position: 50% 50%; }
  100% { background-position: 52% 48%; }
}

/* Veil over bg for legibility (gradient mask at bottom) */
.scene-veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(5,7,9,0.4) 0%, rgba(5,7,9,0) 25%, rgba(5,7,9,0) 65%, rgba(5,7,9,0.7) 100%);
  z-index: 1;
}
.scene-veil.bottom {
  background:
    linear-gradient(180deg, rgba(5,7,9,0.55) 0%, rgba(5,7,9,0) 22%, rgba(5,7,9,0) 60%, rgba(5,7,9,0.78) 100%);
}

/* Content layer — animates in from depth */
.scene-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1320px;
  padding: 120px 64px 80px;
  opacity: 0;
  transform: translateY(48px) translateZ(0);
  transition: opacity 900ms var(--ease-out) 200ms,
              transform 1000ms var(--ease-out) 200ms;
  will-change: opacity, transform;
}
.scene.is-active .scene-content {
  opacity: 1;
  transform: translateY(0) translateZ(0);
}

@media (max-width: 720px) {
  .scene-content { padding: 90px 24px 60px; }
}


/* ====================================================
   01 — HERO
   ==================================================== */

.scene-hero {
  background: var(--ink);
  text-align: left;
}
.scene-hero .scene-veil {
  background:
    linear-gradient(180deg, rgba(5,7,9,0.45) 0%, rgba(5,7,9,0.1) 35%, rgba(5,7,9,0.85) 100%);
}

.hero-content {
  display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 80vh;
}

.hero-mark {
  display: flex; flex-direction: column; align-items: flex-start;
  margin: 24px 0;
  color: #fff;
}
.hero-mark-svg {
  width: clamp(280px, 38vw, 560px);
  height: auto;
  display: block;
  filter: drop-shadow(0 8px 32px rgba(0,0,0,0.45));
}

.hero-sub {
  font-family: var(--f-serif);
  font-weight: 400;
  font-style: normal;
  font-size: clamp(22px, 2vw, 32px);
  line-height: 1.4;
  color: rgba(255,255,255,0.9);
  max-width: 540px;
  margin-top: 40px;
}
.hero-sub em { font-style: italic; color: var(--gold); }

.scroll-hint {
  position: absolute;
  left: 50%; bottom: 36px;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  z-index: 3;
  opacity: 0;
  transition: opacity 600ms ease 1.4s;
}
.scene.is-active .scroll-hint { opacity: 1; }
.scroll-hint span {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--muted-on-ink);
}
.scroll-arrow {
  width: 1px; height: 36px;
  background: var(--gold);
  position: relative;
  animation: scrollPulse 1.8s var(--ease-in-out) infinite;
}
@keyframes scrollPulse {
  0%, 100% { transform: scaleY(1); opacity: 0.6; }
  50% { transform: scaleY(0.4) translateY(8px); opacity: 1; }
}


/* ====================================================
   02 — POSICIONAMENTO
   ==================================================== */

.posicionamento-content {
  display: flex; flex-direction: column; gap: 36px;
  max-width: 1200px;
}

.trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 16px;
}
.trio-item {
  border: 1px solid var(--line-on-paper);
  padding: 32px 28px;
}
.trio-item h4 {
  font-family: var(--f-sans);
  font-weight: 300;
  font-size: 28px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.1;
  margin: 14px 0 0;
  color: var(--ink);
}

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


/* ====================================================
   03 — LOCALIZAÇÃO
   ==================================================== */

.loc-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 80px;
  align-items: start;
}
.loc-left {
  display: flex; flex-direction: column;
}
.address {
  margin-top: 56px;
}
.address-line {
  font-family: var(--f-sans);
  font-weight: 300;
  font-size: 24px;
  letter-spacing: 0.04em;
  line-height: 1.4;
  margin-top: 16px;
}
.address-line .muted { font-size: 18px; }

.loc-right { display: flex; flex-direction: column; }

.poi-list {
  list-style: none; padding: 0; margin: 24px 0 0;
  display: flex; flex-direction: column;
}
.poi-list li {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 22px 0;
  border-bottom: 1px solid var(--line-on-ink);

  /* staggered reveal */
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 600ms var(--ease-out), transform 700ms var(--ease-out);
}
.scene.is-active .poi-list li {
  opacity: 1;
  transform: translateX(0);
}
.scene.is-active .poi-list li:nth-child(1) { transition-delay: 480ms; }
.scene.is-active .poi-list li:nth-child(2) { transition-delay: 560ms; }
.scene.is-active .poi-list li:nth-child(3) { transition-delay: 640ms; }
.scene.is-active .poi-list li:nth-child(4) { transition-delay: 720ms; }
.scene.is-active .poi-list li:nth-child(5) { transition-delay: 800ms; }
.scene.is-active .poi-list li:nth-child(6) { transition-delay: 880ms; }

.poi-num {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.28em;
  color: var(--gold);
}
.poi-name {
  font-family: var(--f-sans);
  font-weight: 300;
  font-size: 22px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.poi-time {
  font-family: var(--f-mono);
  font-size: 13px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

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


/* ====================================================
   04 — EM SÍNTESE
   ==================================================== */

.sintese-content {
  display: flex; flex-direction: column; align-items: center;
}
.metrics {
  width: 100%; max-width: 1120px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 64px;
  margin-top: 56px;
}
.metric {
  text-align: center;
  padding: 32px 0;
  border-top: 1px solid var(--line-on-paper);

  opacity: 0;
  transform: translateY(28px);
  transition: opacity 600ms var(--ease-out), transform 700ms var(--ease-out);
}
.metric:nth-last-child(-n+3) { border-bottom: 1px solid var(--line-on-paper); }
.scene.is-active .metric { opacity: 1; transform: translateY(0); }
.scene.is-active .metric:nth-child(1) { transition-delay: 420ms; }
.scene.is-active .metric:nth-child(2) { transition-delay: 500ms; }
.scene.is-active .metric:nth-child(3) { transition-delay: 580ms; }
.scene.is-active .metric:nth-child(4) { transition-delay: 660ms; }
.scene.is-active .metric:nth-child(5) { transition-delay: 740ms; }
.scene.is-active .metric:nth-child(6) { transition-delay: 820ms; }

.metric-value {
  display: block;
  font-family: var(--f-sans);
  font-weight: 200;
  font-size: clamp(48px, 5vw, 88px);
  line-height: 1;
  color: var(--ink);
  margin-top: 16px;
  letter-spacing: 0.02em;
}
.metric-value.sm {
  font-size: clamp(28px, 3vw, 48px);
  letter-spacing: 0.04em;
}

@media (max-width: 720px) {
  .metrics { grid-template-columns: 1fr 1fr; column-gap: 32px; }
}


/* ====================================================
   05 — TIPOLOGIAS
   ==================================================== */

.tipologias-content { width: 100%; max-width: 1320px; }

.tipo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 40px;
}
.tipo-card {
  border: 1px solid var(--line-on-ink);
  padding: 40px 36px;
  display: flex; flex-direction: column;
  background: transparent;

  opacity: 0;
  transform: translateY(40px) rotateX(8deg);
  transform-origin: top center;
  transition: opacity 800ms var(--ease-out), transform 900ms var(--ease-out);
}
.tipo-card.featured { background: var(--ink-2); }
.scene.is-active .tipo-card { opacity: 1; transform: translateY(0) rotateX(0); }
.scene.is-active .tipo-card:nth-child(1) { transition-delay: 380ms; }
.scene.is-active .tipo-card:nth-child(2) { transition-delay: 480ms; }
.scene.is-active .tipo-card:nth-child(3) { transition-delay: 580ms; }

.tipo-num {
  font-family: var(--f-sans);
  font-weight: 200;
  font-size: clamp(96px, 10vw, 168px);
  line-height: 0.9;
  letter-spacing: 0.02em;
  color: #fff;
  margin-top: 14px;
}
.tipo-num.gold { color: var(--gold); }

.tipo-card p {
  font-family: var(--f-serif);
  font-weight: 400;
  font-size: 19px;
  line-height: 1.45;
  color: var(--muted-on-ink);
  margin: 0 0 28px;
  flex: 1;
}
.tipo-stats {
  display: flex; flex-direction: column; gap: 14px;
  padding-top: 22px;
  border-top: 1px solid var(--line-on-ink);
}
.tipo-stats > div {
  display: flex; justify-content: space-between; align-items: baseline;
}
.tipo-stats strong {
  font-family: var(--f-sans);
  font-weight: 300;
  font-size: 18px;
  letter-spacing: 0.04em;
  color: #fff;
}
.tipo-stats strong.gold { color: var(--gold); font-weight: 400; }

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


/* ====================================================
   06 — WALKTHROUGH INTRO
   ==================================================== */

.intro-walk { text-align: center; }
.walk-intro-content {
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
}
.walk-intro-content .rule.gold { margin-left: auto; margin-right: auto; }


/* ====================================================
   07-13 — ROOMS (full bleed)
   ==================================================== */

.scene-room { background: #000; }
.scene-room .scene-content {
  display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 92vh;
  max-width: 1320px;
}

.room-num {
  font-family: var(--f-mono);
  font-size: 13px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;

  opacity: 0;
  transform: translateY(-12px);
  transition: opacity 700ms var(--ease-out) 400ms, transform 800ms var(--ease-out) 400ms;
}
.scene.is-active .room-num { opacity: 1; transform: translateY(0); }

.room-title {
  font-family: var(--f-sans);
  font-weight: 200;
  font-size: clamp(56px, 7vw, 120px);
  line-height: 0.95;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 18px 0 0;
  color: #fff;

  opacity: 0;
  transform: translateY(48px);
  transition: opacity 900ms var(--ease-out) 480ms, transform 1000ms var(--ease-out) 480ms;
}
.scene.is-active .room-title { opacity: 1; transform: translateY(0); }

.room-content p {
  font-family: var(--f-serif);
  font-weight: 400;
  font-size: clamp(20px, 1.4vw, 24px);
  line-height: 1.5;
  color: rgba(255,255,255,0.88);
  max-width: 560px;

  opacity: 0;
  transform: translateY(28px);
  transition: opacity 800ms var(--ease-out) 720ms, transform 900ms var(--ease-out) 720ms;
}
.scene.is-active .room-content p { opacity: 1; transform: translateY(0); }

.room-content .rule {
  opacity: 0;
  width: 0;
  transition: opacity 600ms ease 600ms, width 700ms var(--ease-out) 600ms;
}
.scene.is-active .room-content .rule { opacity: 1; width: 56px; }


/* ====================================================
   14 — PREÇOS
   ==================================================== */

.precos-content {
  width: 100%; max-width: 1320px;
  display: flex; flex-direction: column;
}
.precos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.preco-card {
  border: 1px solid var(--line-on-paper);
  padding: 36px 32px;
  display: flex; flex-direction: column; gap: 10px;
  background: rgba(255,255,255,0.4);

  opacity: 0;
  transform: translateY(40px);
  transition: opacity 700ms var(--ease-out), transform 800ms var(--ease-out);
}
.preco-card.featured {
  background: rgba(200,163,106,0.10);
  border-color: var(--gold);
}
.scene.is-active .preco-card { opacity: 1; transform: translateY(0); }
.scene.is-active .preco-card:nth-child(1) { transition-delay: 380ms; }
.scene.is-active .preco-card:nth-child(2) { transition-delay: 460ms; }
.scene.is-active .preco-card:nth-child(3) { transition-delay: 540ms; }

.preco-mod {
  font-family: var(--f-sans);
  font-weight: 200;
  font-size: 44px;
  line-height: 1;
  letter-spacing: 0.04em;
  color: var(--ink);
}
.preco-desc {
  font-family: var(--f-sans);
  font-weight: 300;
  font-size: 22px;
  letter-spacing: 0.04em;
  margin-top: 4px;
}
.preco-foot {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted-on-paper);
  margin-top: 8px;
}

.precos-cta { margin-top: 48px; text-align: center; }
.btn {
  display: inline-block;
  padding: 18px 36px;
  border: 1px solid var(--ink);
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink);
  transition: background 240ms ease, color 240ms ease;
}
.btn:hover { background: var(--ink); color: var(--paper); }

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


/* ====================================================
   15 — CONTACTO
   ==================================================== */

.contacto-content {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 80px;
  align-items: center;
  max-width: 1200px;
}
.contacto-mark {
  width: 140px;
  color: var(--gold);
}
.contacto-mark svg { width: 100%; height: auto; display: block; }

.contacto-info { margin-top: 32px; }
.contacto-name {
  font-family: var(--f-sans);
  font-weight: 300;
  font-size: 28px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: 14px;
}
.contacto-detail {
  font-family: var(--f-sans);
  font-weight: 350;
  font-size: 24px;
  line-height: 1.6;
  letter-spacing: 0.02em;
  color: rgba(255,255,255,0.78);
  margin-top: 18px;
}
.contacto-detail a {
  position: relative;
  transition: color 200ms ease;
}
.contacto-detail a:hover { color: var(--gold); }
.contacto-detail a::after {
  content: "";
  position: absolute; left: 0; bottom: -2px;
  width: 100%; height: 1px;
  background: currentColor;
  opacity: 0.4;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 320ms var(--ease-out), opacity 240ms ease;
}
.contacto-detail a:hover::after { transform: scaleX(1); opacity: 1; }

.site-footer {
  position: absolute; bottom: 48px; left: 0; right: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 0 64px;
}
.footer-partners {
  display: flex; align-items: center; justify-content: center;
  gap: 56px;
  padding: 28px 48px;
  border-top: 1px solid var(--line-on-ink);
  border-bottom: 1px solid var(--line-on-ink);
  max-width: 720px; width: 100%;
}
.footer-partner {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.footer-partner .meta {
  font-size: 10px;
  letter-spacing: 0.32em;
  color: rgba(255,255,255,0.30);
}
.footer-partner img {
  height: 32px; width: auto;
  opacity: 0.5;
  filter: brightness(0) invert(1);     /* logos a branco sobre Edge Ink */
  transition: opacity 240ms ease;
}
.footer-partner img:hover { opacity: 0.85; }
.footer-divider {
  width: 1px; height: 36px;
  background: var(--line-on-ink);
}

@media (max-width: 720px) {
  .contacto-content { grid-template-columns: 1fr; gap: 32px; }
  .contacto-mark { width: 96px; }
  .site-footer { padding: 0 24px; bottom: 32px; }
  .footer-partners { gap: 24px; padding: 20px 24px; }
  .footer-partner img { height: 24px; }
  .footer-divider { height: 28px; }
}


/* ====================================================
   LOCALIZAÇÃO V2 — sidebar + mapa Leaflet
   ==================================================== */

.scene-loc { background: var(--ink); }

.loc-v2 {
  display: flex; flex-direction: column;
  gap: 56px;
  max-width: 1440px; width: 100%;
}

.loc-head {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: end;
}
.loc-lede {
  color: rgba(255,255,255,0.72);
  max-width: 520px;
  margin: 0 0 12px;
}

.loc-body {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 48px;
  align-items: stretch;
  min-height: 560px;
}

.loc-sidebar {
  display: flex; flex-direction: column;
  gap: 28px;
}
.loc-sidebar .address { margin-top: 0; }
.poi-heading { margin-top: 8px; }

.loc-sidebar .poi-list {
  list-style: none; padding: 0; margin: 8px 0 0;
}
.loc-sidebar .poi-list li {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--line-on-ink);
  cursor: pointer;
  transition: background 200ms ease, padding-left 240ms var(--ease-out);
  border-radius: 2px;
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 600ms var(--ease-out), transform 700ms var(--ease-out),
              background 200ms ease, padding-left 240ms var(--ease-out);
}
.scene.is-active .loc-sidebar .poi-list li {
  opacity: 1; transform: translateX(0);
}
.scene.is-active .loc-sidebar .poi-list li:nth-child(1) { transition-delay: 220ms; }
.scene.is-active .loc-sidebar .poi-list li:nth-child(2) { transition-delay: 290ms; }
.scene.is-active .loc-sidebar .poi-list li:nth-child(3) { transition-delay: 360ms; }
.scene.is-active .loc-sidebar .poi-list li:nth-child(4) { transition-delay: 430ms; }
.scene.is-active .loc-sidebar .poi-list li:nth-child(5) { transition-delay: 500ms; }
.scene.is-active .loc-sidebar .poi-list li:nth-child(6) { transition-delay: 570ms; }
.scene.is-active .loc-sidebar .poi-list li:nth-child(7) { transition-delay: 640ms; }

.loc-sidebar .poi-list li:hover,
.loc-sidebar .poi-list li.is-active {
  background: rgba(200,163,106,0.08);
  padding-left: 8px;
}
.loc-sidebar .poi-list li[data-poi="edge"] {
  background: rgba(200,163,106,0.14);
  padding-left: 8px;
}
.loc-sidebar .poi-num {
  font-family: var(--f-mono); font-size: 11px;
  letter-spacing: 0.28em; color: var(--gold);
}
.loc-sidebar .poi-name {
  font-family: var(--f-sans); font-weight: 300;
  font-size: 17px; letter-spacing: 0.06em;
  text-transform: uppercase;
}
.loc-sidebar .poi-time {
  font-family: var(--f-mono); font-size: 12px;
  letter-spacing: 0.18em; text-transform: uppercase;
}

.loc-map-wrap {
  position: relative;
  border: 1px solid var(--line-on-ink);
  background: #0a0d12;
  overflow: hidden;
  min-height: 560px;
}
.loc-map { width: 100%; height: 100%; min-height: 560px; }
.loc-map-legend {
  position: absolute;
  bottom: 16px; left: 16px;
  display: flex; flex-direction: column; gap: 4px;
  pointer-events: none;
  z-index: 500;
}
.loc-map-legend .meta { font-size: 10px; }

/* Leaflet customisation — dark theme overrides */
.leaflet-container { background: #0a0d12 !important; font-family: var(--f-sans) !important; }
.leaflet-tile { filter: brightness(0.55) contrast(1.05) saturate(0.65) hue-rotate(-12deg); }
.leaflet-control-attribution { background: rgba(5,7,9,0.7) !important; color: var(--muted-on-ink) !important; padding: 2px 6px; }
.leaflet-control-attribution a { color: var(--gold) !important; }
.leaflet-control-zoom a {
  background: rgba(5,7,9,0.85) !important;
  color: #fff !important;
  border: 1px solid var(--line-on-ink) !important;
}
.leaflet-control-zoom a:hover { background: var(--gold) !important; color: var(--ink) !important; }

/* Custom marker — Edge Gold dot */
.poi-marker {
  width: 18px; height: 18px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(200,163,106,0.18);
  cursor: pointer;
  transition: transform 220ms var(--ease-out), box-shadow 260ms ease;
}
.poi-marker.edge {
  width: 24px; height: 24px;
  background: var(--gold);
  box-shadow: 0 0 0 6px rgba(200,163,106,0.22), 0 0 24px rgba(200,163,106,0.55);
  animation: pulse 2s ease-in-out infinite;
}
.poi-marker:hover { transform: scale(1.18); box-shadow: 0 0 0 6px rgba(200,163,106,0.32); }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 6px rgba(200,163,106,0.22), 0 0 24px rgba(200,163,106,0.55); }
  50%      { box-shadow: 0 0 0 14px rgba(200,163,106,0.06), 0 0 36px rgba(200,163,106,0.85); }
}

.leaflet-tooltip.poi-tip {
  background: rgba(5,7,9,0.92) !important;
  color: #fff !important;
  border: 1px solid var(--gold) !important;
  border-radius: 0 !important;
  font-family: var(--f-mono) !important;
  font-size: 11px !important;
  letter-spacing: 0.22em !important;
  text-transform: uppercase !important;
  padding: 8px 14px !important;
  box-shadow: 0 8px 28px rgba(0,0,0,0.5) !important;
}
.leaflet-tooltip.poi-tip::before { display: none !important; }

@media (max-width: 900px) {
  .loc-head { grid-template-columns: 1fr; gap: 24px; }
  .loc-body { grid-template-columns: 1fr; }
  .loc-map-wrap { min-height: 420px; }
}


/* ====================================================
   HERO — multi-layer parallax + mouse tracking
   ==================================================== */

.scene-hero .scene-bg {
  /* JS-driven X/Y offsets via CSS variables */
  transform: translate3d(var(--px, 0px), var(--py, 0px), 0) scale(var(--ps, 1.04));
  transition: none;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-content {
  --hpx: 0px; --hpy: 0px;
  transform: translate3d(var(--hpx), var(--hpy), 0);
  will-change: transform;
}


/* ====================================================
   CURSOR SPOTLIGHT — golden glow follows mouse on dark
   ==================================================== */

.scene-ink::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle 360px at var(--cx, 50%) var(--cy, 50%),
      rgba(200,163,106,0.10) 0%,
      rgba(200,163,106,0.04) 35%,
      transparent 70%);
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity 320ms ease;
}
.scene-ink.has-cursor::before { opacity: 1; }


/* ====================================================
   FILM GRAIN — subtle SVG noise overlay site-wide
   ==================================================== */

.film-grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.045;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  animation: grainShift 1.4s steps(6) infinite;
}
@keyframes grainShift {
  0%   { transform: translate(0,0); }
  10%  { transform: translate(-3%, -2%); }
  20%  { transform: translate(2%, -4%); }
  30%  { transform: translate(-1%, 3%); }
  40%  { transform: translate(4%, 1%); }
  50%  { transform: translate(-2%, -1%); }
  60%  { transform: translate(1%, 4%); }
  70%  { transform: translate(-4%, 2%); }
  80%  { transform: translate(3%, -3%); }
  90%  { transform: translate(-2%, 2%); }
  100% { transform: translate(0,0); }
}


/* ====================================================
   MAGNETIC BUTTONS
   ==================================================== */

.btn-magnetic {
  --mx: 0px; --my: 0px;
  transform: translate(var(--mx), var(--my));
  transition: transform 380ms var(--ease-out), background 240ms ease, color 240ms ease;
  will-change: transform;
}


/* ====================================================
   MOBILE — ajustes para touch + viewport reduzido
   ==================================================== */

@media (max-width: 720px) {
  /* Scrub mais curto: menos scroll preso, vídeo mais rápido */
  .scrub-scene { height: 180vh; min-height: 180vh; }
  /* Esconde film grain se ainda aparecer */
  .film-grain { display: none !important; }
  /* Hero text menor */
  .scene-content { padding: 70px 20px 40px; }
  /* Hero: texto centrado a ~35% da altura, escondido por defeito;
     o JS adiciona .text-revealed à scene quando o scroll passa dos 78%. */
  #hero.scene .scrub-sticky .hero-content {
    padding: 35vh 20px 0;
    align-items: center;
    justify-content: flex-start;
    min-height: 0;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 600ms var(--ease-out), transform 700ms var(--ease-out);
    will-change: opacity, transform;
  }
  #hero.text-revealed .scrub-sticky .hero-content {
    opacity: 1;
    transform: translateY(0);
  }
  #hero .scrub-sticky .hero-content .eyebrow { align-self: center; }
  #hero .scrub-sticky .hero-content .hero-sub { text-align: center; }
  .hero-sub {
    font-size: 18px;
    line-height: 1.45;
    max-width: 92%;
    margin-top: 18px;
  }
  /* Scroll-hint sempre visível em mobile */
  /* Vídeo 9:16 ocupa o ecrã inteiro perfeitamente */
  .scrub-sticky .scene-video { object-fit: cover; }
  /* Nav mobile — logo maior e mais para baixo */
  .site-nav { padding: 22px 18px 18px; min-height: 72px; }
  .nav-logo-svg { width: 140px; }
  /* Progress bar */
  .progress-rail { height: 3px; }
}


/* ====================================================
   Reduced motion — disable transforms/animations
   ==================================================== */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .scene-bg { transform: none; }
  .scene-content { opacity: 1; transform: none; }
}
