/* =========================================================
   Renascer das Cinzas — folha de estilos
   Paleta: cinza/papel quente + brasa (CTA) + azul-confiança
   ========================================================= */

/* ---------- 1. Tokens ---------- */
:root {
  /* cores */
  --paper:        #FBF7F2;
  --paper-2:      #F4EDE4;
  --paper-3:      #EBE0D2;
  --ink:          #14100D;
  --ink-2:        #221B16;
  --ink-3:        #3A2F26;
  --muted:        #6B5D51;
  --muted-dark:   #C6B8A9;
  --line:         #E4D8C8;
  --line-dark:    rgba(255, 255, 255, .15);

  --ember:        #C2410C;   /* 5.18:1 com branco  */
  --ember-hot:    #EA580C;
  --ember-deep:   #9A330A;
  --ember-soft:   #FCEADD;
  --trust:        #0E7490;
  --ash:          #57534E;

  /* tipografia */
  --font-head: 'Newsreader', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --fs-xs:   0.8125rem;
  --fs-sm:   0.9375rem;
  --fs-base: 1.0625rem;
  --fs-md:   1.1875rem;
  --fs-lg:   clamp(1.25rem, 0.9rem + 1.1vw, 1.5rem);
  --fs-h3:   clamp(1.35rem, 1.1rem + 1vw, 1.75rem);
  --fs-h2:   clamp(1.9rem, 1.25rem + 2.6vw, 3.1rem);
  --fs-h1:   clamp(3.2rem, 1.6rem + 8vw, 7.5rem);

  /* espaço */
  --sp-1: .25rem;  --sp-2: .5rem;   --sp-3: .75rem;  --sp-4: 1rem;
  --sp-5: 1.5rem;  --sp-6: 2rem;    --sp-7: 3rem;    --sp-8: 4rem;
  --sp-9: 6rem;
  --section-y: clamp(3.5rem, 2rem + 7vw, 7rem);

  /* forma */
  --shell: 1180px;
  --gutter: clamp(1rem, 0.6rem + 1.6vw, 2rem);
  --r-sm: 8px;  --r-md: 14px;  --r-lg: 22px;  --r-pill: 999px;
  --header-h: 68px;

  --shadow-sm: 0 1px 2px rgba(20, 16, 13, .06), 0 2px 8px rgba(20, 16, 13, .05);
  --shadow-md: 0 2px 6px rgba(20, 16, 13, .07), 0 12px 32px rgba(20, 16, 13, .09);
  --shadow-lg: 0 8px 20px rgba(20, 16, 13, .10), 0 28px 64px rgba(20, 16, 13, .16);

  --ease: cubic-bezier(.22, .61, .36, 1);
  --t-fast: 150ms;  --t-base: 240ms;  --t-slow: 420ms;
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, canvas, svg, video { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 var(--sp-4);
  text-wrap: balance;
}

p { margin: 0 0 var(--sp-4); text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0; padding: 0; }
li { list-style: none; }

a { color: inherit; }

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

strong, b { font-weight: 600; }

:focus-visible {
  outline: 3px solid var(--trust);
  outline-offset: 3px;
  border-radius: 4px;
}
.section--dark :focus-visible,
.section--ember :focus-visible,
.lightbox :focus-visible { outline-color: #FFD9A8; }

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

/* ---------- 3. Utilitários ---------- */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.ico {
  width: 1.15em; height: 1.15em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.skip-link {
  position: absolute; left: 50%; top: 0;
  transform: translate(-50%, -120%);
  z-index: 200;
  background: var(--ink); color: #fff;
  padding: .7rem 1.2rem; border-radius: 0 0 var(--r-sm) var(--r-sm);
  text-decoration: none; font-size: var(--fs-sm); font-weight: 600;
  transition: transform var(--t-base) var(--ease);
}
.skip-link:focus-visible { transform: translate(-50%, 0); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--ember);
  margin-bottom: var(--sp-3);
}
.section--dark .eyebrow { color: #F0A570; }
.section--ember .eyebrow { color: var(--ember-deep); }

.lede { font-size: var(--fs-md); line-height: 1.6; }

.note {
  font-size: var(--fs-sm);
  color: var(--muted);
  background: var(--paper-2);
  border-left: 3px solid var(--ember);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  padding: var(--sp-4);
}
.note--dark { background: rgba(255,255,255,.06); color: var(--muted-dark); }

/* ---------- 4. Barra de progresso ---------- */
.progress {
  position: fixed; inset: 0 0 auto 0;
  height: 3px; z-index: 120;
  background: transparent; pointer-events: none;
}
.progress__bar {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--ember-hot), var(--ember));
  transition: width 90ms linear;
}

/* ---------- 5. Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0;
  z-index: 110;
  background: rgba(20, 16, 13, 0);
  transition: background var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease);
}
.site-header.is-solid {
  background: rgba(17, 13, 11, .94);
  backdrop-filter: saturate(150%) blur(12px);
  -webkit-backdrop-filter: saturate(150%) blur(12px);
  box-shadow: 0 1px 0 rgba(255,255,255,.08);
}
.site-header__inner {
  min-height: var(--header-h);
  display: flex; align-items: center; gap: var(--sp-4);
}

.brand {
  display: flex; align-items: center; gap: .65rem;
  min-height: 44px;
  text-decoration: none; color: #fff;
  margin-right: auto; min-width: 0;
}
.brand__mark {
  width: 42px; height: 42px; flex: none;
  display: grid; place-items: center;
}
.brand__mark img {
  width: 100%; height: 100%;
  object-fit: contain;
}
.brand__text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand__text strong {
  font-family: var(--font-head); font-size: 1.06rem; font-weight: 600;
  letter-spacing: -.01em; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.brand__text small {
  font-size: .72rem; color: rgba(255,255,255,.78); white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}

.site-nav ul { display: flex; gap: .25rem; }
.site-nav a {
  display: block; padding: .55rem .7rem;
  font-size: var(--fs-sm); font-weight: 500;
  color: rgba(255,255,255,.78);
  text-decoration: none; border-radius: var(--r-sm);
  transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.site-nav a:hover { color: #fff; background: rgba(255,255,255,.1); }
.site-nav a.is-current { color: #fff; box-shadow: inset 0 -2px 0 var(--ember-hot); }

.site-header__actions { display: flex; align-items: center; gap: .5rem; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--r-sm);
  color: #fff;
}
.nav-toggle .ico { width: 22px; height: 22px; }

@media (max-width: 1040px) {
  .site-nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    background: rgba(17, 13, 11, .98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255,255,255,.1);
    padding: var(--sp-3) var(--gutter) var(--sp-5);
    transform: translateY(-8px);
    opacity: 0; visibility: hidden;
    transition: opacity var(--t-base) var(--ease), transform var(--t-base) var(--ease), visibility var(--t-base);
  }
  .site-nav.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav a {
    padding: .9rem .25rem; font-size: var(--fs-md);
    border-bottom: 1px solid rgba(255,255,255,.08);
    border-radius: 0;
  }
  .nav-toggle { display: flex; }
}
@media (max-width: 440px) {
  .site-header__inner { gap: .5rem; }
  .brand__text small { display: none; }
  .site-header__actions .btn--sm { padding-inline: .7rem; }
  /* em ecrãs muito estreitos o nome parte em duas linhas em vez de ser cortado */
  .brand__text strong {
    white-space: normal;
    overflow-wrap: anywhere;
    font-size: .94rem;
    line-height: 1.08;
  }
}

/* ---------- 6. Botões ---------- */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  --btn-bd: transparent;
  display: inline-flex; align-items: center; justify-content: center;
  gap: .55rem;
  min-height: 44px;
  padding: .7rem 1.15rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1.5px solid var(--btn-bd);
  border-radius: var(--r-pill);
  font-size: var(--fs-sm);
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
  transition: transform var(--t-fast) var(--ease),
              background var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease),
              box-shadow var(--t-fast) var(--ease),
              color var(--t-fast) var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  --btn-bg: var(--ember); --btn-fg: #fff; --btn-bd: var(--ember);
  box-shadow: 0 2px 10px rgba(194, 65, 12, .35);
}
.btn--primary:hover { --btn-bg: var(--ember-deep); --btn-bd: var(--ember-deep); box-shadow: 0 6px 20px rgba(194, 65, 12, .45); }

.btn--dark { --btn-bg: var(--ink); --btn-fg: #fff; --btn-bd: var(--ink); }
.btn--dark:hover { --btn-bg: var(--ink-3); --btn-bd: var(--ink-3); }

.btn--outline { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--line); }
.btn--outline:hover { --btn-bd: var(--ink); background: var(--paper-2); }

.btn--outline-light { --btn-fg: #fff; --btn-bd: rgba(255,255,255,.4); }
.btn--outline-light:hover { --btn-bd: #fff; background: rgba(255,255,255,.1); }

.btn--ghost {
  --btn-fg: #fff; --btn-bd: rgba(255,255,255,.45);
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.btn--ghost:hover { --btn-bd: #fff; background: rgba(255,255,255,.18); }

.btn--sm { min-height: 44px; padding: .5rem 1rem; font-size: var(--fs-xs); }
.btn--lg { min-height: 54px; padding: .95rem 1.6rem; font-size: var(--fs-base); }
.btn--block { width: 100%; }

.btn.is-done { --btn-bg: #15803D; --btn-bd: #15803D; --btn-fg: #fff; }

/* ---------- 7. Hero ---------- */
.hero { position: relative; height: 340vh; background: var(--ink); }

.hero__stage {
  position: sticky; top: 0;
  height: 100svh; min-height: 560px;
  overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
}

.hero__media { position: absolute; inset: 0; }
.hero__canvas, .hero__fallback {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero__canvas { opacity: 0; transition: opacity var(--t-slow) var(--ease); }
.hero__canvas.is-ready { opacity: 1; }
.js .hero__fallback { transition: opacity var(--t-slow) var(--ease); }
.js .hero__fallback.is-hidden { opacity: 0; }

.hero__veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(12,9,7,.72) 0%, rgba(12,9,7,.28) 32%, rgba(12,9,7,.55) 66%, rgba(12,9,7,.93) 100%),
    radial-gradient(120% 80% at 20% 90%, rgba(12,9,7,.6), transparent 60%);
}
.hero__glow {
  position: absolute; inset: auto -20% -30% -20%; height: 60%;
  background: radial-gradient(50% 100% at 50% 100%, rgba(234, 88, 12, .30), transparent 70%);
  animation: emberPulse 7s ease-in-out infinite;
  pointer-events: none;
}
@keyframes emberPulse {
  0%, 100% { opacity: .55; transform: translateY(6%) scale(1); }
  50%      { opacity: .95; transform: translateY(0) scale(1.06); }
}

.hero__content {
  position: relative; z-index: 2;
  padding-bottom: clamp(4.5rem, 10vh, 7rem);
  padding-top: calc(var(--header-h) + 1rem);
  color: #fff;
  max-width: 900px;
}
.hero__eyebrow {
  color: #F5B98A;
  font-size: var(--fs-xs); font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: .5rem;
  margin-bottom: var(--sp-3);
}
.hero__title {
  font-size: var(--fs-h1);
  line-height: .92;
  letter-spacing: -.035em;
  margin: 0 0 var(--sp-4);
  text-shadow: 0 2px 30px rgba(0,0,0,.5);
}
.hero__lead {
  font-size: clamp(1.05rem, .95rem + .55vw, 1.4rem);
  line-height: 1.55;
  max-width: 41ch;
  color: rgba(255,255,255,.92);
  margin-bottom: var(--sp-3);
}
.hero__lead strong { color: #fff; font-weight: 600; }
.hero__kicker {
  display: inline-block;
  font-family: var(--font-head);
  font-size: clamp(1.1rem, 1rem + .6vw, 1.5rem);
  color: #FFD3AE;
  border-left: 3px solid var(--ember-hot);
  padding-left: .8rem;
  margin-bottom: var(--sp-5);
}
.hero__cta { display: flex; flex-wrap: wrap; gap: .75rem; }

.hero__chapter {
  position: absolute; z-index: 2;
  right: var(--gutter); bottom: clamp(4.5rem, 10vh, 7rem);
  max-width: 24ch;
  margin: 0;
  text-align: right;
  font-family: var(--font-head);
  font-size: 1.05rem;
  line-height: 1.35;
  color: rgba(255,255,255,.8);
  border-right: 2px solid var(--ember-hot);
  padding-right: .85rem;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease);
}
.hero__chapter.is-visible { opacity: 1; transform: translateY(0); }
@media (max-width: 900px) { .hero__chapter { display: none; } }

.hero__scroll {
  position: absolute; z-index: 2;
  left: 50%; bottom: 1.1rem; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: .2rem;
  color: rgba(255,255,255,.65);
  font-size: .68rem; letter-spacing: .22em; text-transform: uppercase;
  transition: opacity var(--t-base) var(--ease);
}
.hero__scroll .ico { width: 18px; height: 18px; animation: nudge 2.2s ease-in-out infinite; }
@keyframes nudge { 0%,100% { transform: translateY(0); } 50% { transform: translateY(5px); } }
.hero__stage.is-scrolled .hero__scroll { opacity: 0; }

.hero__loader {
  position: absolute; z-index: 3; left: 0; right: 0; bottom: 0;
  height: 2px; background: rgba(255,255,255,.12);
  transition: opacity var(--t-base) var(--ease);
}
.hero__loader span {
  display: block; height: 100%; width: 0%;
  background: var(--ember-hot);
  transition: width 200ms linear;
}
.hero__loader.is-done { opacity: 0; }

/* ---------- 8. Secções ---------- */
.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: clamp(2.5rem, 1.5rem + 4vw, 4.5rem); }
.section--paper { background: var(--paper); color: var(--ink); }
.section--dark { background: var(--ink); color: #F2EBE3; }
.section--dark .section__title { color: #fff; }
.section--ember {
  background:
    radial-gradient(90% 60% at 50% 0%, #FDE7D5 0%, transparent 60%),
    var(--paper-2);
}

.section__head { max-width: 62ch; margin-bottom: var(--sp-7); }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head--center .eyebrow { justify-content: center; }
.section__title { font-size: var(--fs-h2); margin-bottom: var(--sp-4); }
.section__sub { font-size: var(--fs-md); color: var(--muted); }
.section--dark .section__sub { color: var(--muted-dark); }

/* ---------- 9. História ---------- */
.story { display: grid; gap: var(--sp-7); align-items: start; }
@media (min-width: 900px) { .story { grid-template-columns: 1.35fr .9fr; gap: var(--sp-8); } }

.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}
.stat { background: var(--paper); padding: var(--sp-5) var(--sp-4); text-align: center; }
.stat__num {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(2.1rem, 1.5rem + 2.4vw, 3.1rem);
  font-weight: 600; line-height: 1;
  color: var(--ember);
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}
.stat__label {
  display: block; margin-top: .4rem;
  font-size: var(--fs-xs); color: var(--muted);
  letter-spacing: .04em;
}

.quote {
  margin: var(--sp-8) 0 0;
  padding: var(--sp-6) var(--sp-5) var(--sp-5);
  background: var(--paper-2);
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  position: relative;
  max-width: 62ch;
}
.quote::before {
  content: "\201C";
  position: absolute; top: -.05em; left: .3em;
  font-family: var(--font-head);
  font-size: 5.5rem; line-height: 1;
  color: var(--ember); opacity: .22;
}
.quote blockquote { margin: 0; position: relative; }
.quote blockquote p {
  font-family: var(--font-head);
  font-size: var(--fs-lg);
  line-height: 1.5;
  color: var(--ink-2);
}
.quote figcaption {
  margin-top: var(--sp-4);
  display: flex; align-items: baseline; gap: .55rem; flex-wrap: wrap;
  font-size: var(--fs-sm);
}
.quote__name { font-weight: 600; }
.quote__role { color: var(--muted); }
.quote__role::before { content: "— "; }

/* ---------- 10. Família ---------- */
.people { display: grid; gap: var(--sp-5); }
@media (min-width: 760px) { .people { grid-template-columns: repeat(3, 1fr); } }

.person {
  background: rgba(255,255,255,.045);
  border: 1px solid var(--line-dark);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
  transition: transform var(--t-base) var(--ease), border-color var(--t-base) var(--ease), background var(--t-base) var(--ease);
}
.person:hover { transform: translateY(-4px); border-color: rgba(255,255,255,.28); background: rgba(255,255,255,.07); }
.person__icons { display: flex; gap: .5rem; margin-bottom: var(--sp-4); }
.person__icons span {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: rgba(234, 88, 12, .16);
  color: #F7A76C;
}
.person__icons .ico { width: 22px; height: 22px; }
.person h3 { font-size: var(--fs-h3); color: #fff; margin-bottom: var(--sp-3); }
.person p { color: var(--muted-dark); font-size: var(--fs-sm); }
.person strong { color: #fff; }
.person__note {
  margin-top: var(--sp-4); padding-top: var(--sp-3);
  border-top: 1px solid var(--line-dark);
  font-family: var(--font-head);
  font-size: var(--fs-base) !important;
  color: #F5C39B !important;
}

/* ---------- 11. O chão ---------- */
.floor { display: grid; gap: var(--sp-6); align-items: center; }
@media (min-width: 900px) { .floor { grid-template-columns: .95fr 1.05fr; gap: var(--sp-8); } }

.floor__figure { margin: 0; }
.floor__figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
}
.floor__figure figcaption {
  margin-top: var(--sp-3);
  font-size: var(--fs-xs); color: var(--muted);
}

.pricetag {
  margin: var(--sp-5) 0;
  padding: var(--sp-5);
  background: var(--ink);
  color: #fff;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
}
.pricetag__label {
  font-size: var(--fs-xs); letter-spacing: .14em; text-transform: uppercase;
  color: #F0A570; margin-bottom: .2rem;
}
.pricetag__value {
  font-family: var(--font-head);
  font-size: clamp(3rem, 2rem + 6vw, 5rem);
  font-weight: 600; line-height: 1; letter-spacing: -.04em;
  margin-bottom: .35rem;
}
.pricetag__alt { font-size: var(--fs-sm); color: rgba(255,255,255,.72); margin: 0; }
.pricetag__alt span { color: rgba(255,255,255,.5); font-size: var(--fs-xs); }

.remaining {
  margin-top: var(--sp-5);
  padding: var(--sp-5);
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.remaining__title {
  font-size: var(--fs-lg);
  margin-bottom: var(--sp-2);
}
.remaining__intro { font-size: var(--fs-sm); color: var(--muted); margin-bottom: var(--sp-4); }
.remaining__list {
  display: flex; flex-wrap: wrap; gap: .5rem;
  margin-bottom: var(--sp-4);
}
.remaining__list li {
  display: inline-flex; align-items: center;
  padding: .35rem .8rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-size: var(--fs-sm);
  font-weight: 500;
}
.remaining__list li::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--ember); margin-right: .5rem; flex: none;
}
.remaining__note {
  margin: 0; padding-top: var(--sp-4);
  border-top: 1px solid var(--line);
  font-size: var(--fs-sm); color: var(--muted); line-height: 1.6;
}
.remaining__note strong { color: var(--ink); }

/* tópicos de custo */
.costs { display: grid; gap: .6rem; margin-bottom: var(--sp-4); }
.cost {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  column-gap: var(--sp-4);
  padding: .85rem 1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.cost__label {
  font-family: var(--font-head);
  font-size: var(--fs-md);
  line-height: 1.25;
  color: var(--ink);
}
.cost__value {
  font-family: var(--font-head);
  font-size: clamp(1.2rem, 1rem + .8vw, 1.6rem);
  font-weight: 600;
  letter-spacing: -.02em;
  color: var(--ember);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.cost__note {
  grid-column: 1 / -1;
  margin-top: .3rem;
  font-size: var(--fs-sm);
  color: var(--muted);
  line-height: 1.5;
}
.cost--key {
  background: var(--ink);
  border-color: var(--ink);
  box-shadow: var(--shadow-md);
}
.cost--key .cost__label { color: #fff; }
.cost--key .cost__value { color: #FFC08A; }
.cost--key .cost__note  { color: var(--muted-dark); }

/* ---------- 12. Simulador ---------- */
.calc {
  display: grid; gap: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
@media (min-width: 880px) { .calc { grid-template-columns: 1.05fr .95fr; } }

.calc__panel { padding: clamp(1.25rem, 3vw, 2rem); }
.calc__field { border: 0; padding: 0; margin: 0 0 var(--sp-6); }
.calc__field:last-child { margin-bottom: 0; }
.calc__legend {
  display: block; padding: 0; margin-bottom: var(--sp-3);
  font-size: var(--fs-xs); font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}

.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
  min-height: 44px; min-width: 60px;
  padding: .55rem 1.1rem;
  background: var(--paper-2);
  color: var(--ink);
  border: 1.5px solid var(--line);
  border-radius: var(--r-pill);
  font-size: var(--fs-sm); font-weight: 600;
  font-variant-numeric: tabular-nums;
  transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease),
              color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.chip:hover { border-color: var(--ember); transform: translateY(-1px); }
.chip.is-active {
  background: var(--ember); border-color: var(--ember); color: #fff;
  box-shadow: 0 2px 10px rgba(194,65,12,.3);
}
.chip--dark { background: rgba(255,255,255,.9); }

input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 44px;
  background: transparent; margin: 0;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 8px; border-radius: 999px;
  background: var(--paper-3);
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 28px; height: 28px; margin-top: -10px;
  border-radius: 50%;
  background: var(--ember);
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(20,16,13,.3);
}
input[type="range"]::-moz-range-track {
  height: 8px; border-radius: 999px; background: var(--paper-3);
}
input[type="range"]::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--ember); border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(20,16,13,.3);
}

.calc__rangefoot {
  display: flex; justify-content: space-between; align-items: center;
  gap: var(--sp-3); margin-top: .35rem;
  font-size: var(--fs-xs); color: var(--muted);
}
.calc__rangefoot output {
  font-size: var(--fs-sm); color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.calc__result {
  padding: clamp(1.25rem, 3vw, 2rem);
  background: var(--ink);
  color: #fff;
  display: flex; flex-direction: column; justify-content: center;
}
.calc__eq {
  font-size: var(--fs-sm); color: #F0A570;
  font-variant-numeric: tabular-nums; margin-bottom: .1rem;
}
.calc__total {
  font-family: var(--font-head);
  font-size: clamp(3rem, 2rem + 6vw, 4.8rem);
  font-weight: 600; line-height: 1; letter-spacing: -.04em;
  margin-bottom: .2rem;
  font-variant-numeric: tabular-nums;
}
.calc__brl {
  font-size: var(--fs-sm); color: rgba(255,255,255,.62);
  margin-bottom: var(--sp-5); font-variant-numeric: tabular-nums;
}
.calc__meter { margin-bottom: var(--sp-4); }
.calc__meterbar {
  position: relative;
  height: 10px; border-radius: 999px;
  background: rgba(255,255,255,.14); overflow: hidden;
}
.calc__mark {
  position: absolute; top: 0; bottom: 0;
  width: 2px;
  background: rgba(255,255,255,.55);
  transform: translateX(-1px);
}
.calc__goals {
  display: flex; justify-content: space-between;
  margin-top: .45rem;
  font-size: var(--fs-xs);
}
.calc__goals li {
  display: flex; flex-direction: column; line-height: 1.25;
}
.calc__goals li:last-child { align-items: flex-end; text-align: right; }
.calc__goals span   { color: rgba(255,255,255,.55); }
.calc__goals strong { color: rgba(255,255,255,.85); font-variant-numeric: tabular-nums; }
.calc__meterfill {
  display: block; height: 100%; width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--ember-hot), #FBBF24);
  transition: width var(--t-slow) var(--ease);
}
.calc__meterlabel {
  margin: .6rem 0 0; font-size: var(--fs-sm);
  color: rgba(255,255,255,.82); font-variant-numeric: tabular-nums;
}
.calc__meterlabel strong { color: #FFD3AE; }
.calc__disclaimer {
  margin: 0; padding-top: var(--sp-4);
  border-top: 1px solid rgba(255,255,255,.14);
  font-size: var(--fs-xs); color: rgba(255,255,255,.55); line-height: 1.5;
}
.calc.is-complete .calc__meterfill { background: linear-gradient(90deg, #22C55E, #86EFAC); }

/* ---------- 13. Galeria ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap: clamp(.5rem, 1.4vw, 1rem);
}
.gallery__item { position: relative; }
.gallery__btn {
  display: block; width: 100%; padding: 0;
  border: 0; background: #241d18;
  border-radius: var(--r-md);
  overflow: hidden;
  position: relative;
  transition: transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease);
}
.gallery__btn img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  transition: transform var(--t-slow) var(--ease), opacity var(--t-base) var(--ease);
  opacity: .92;
}
.gallery__btn:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.gallery__btn:hover img { transform: scale(1.05); opacity: 1; }
.gallery__cap {
  position: absolute; inset: auto 0 0 0;
  padding: 2.2rem .8rem .7rem;
  background: linear-gradient(to top, rgba(10,7,5,.92), transparent);
  color: #fff;
  font-size: var(--fs-xs);
  line-height: 1.4;
  text-align: left;
  pointer-events: none;
}

/* ---------- 14. Lightbox ---------- */
.lightbox {
  border: 0; padding: 0;
  max-width: 100vw; max-height: 100dvh;
  width: 100%; height: 100%;
  background: transparent;
  overflow: hidden;
}
.lightbox::backdrop { background: rgba(8, 6, 5, .94); }
.lightbox__inner {
  position: relative;
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: clamp(3.5rem, 8vw, 5rem) clamp(.75rem, 4vw, 4.5rem);
  gap: var(--sp-3);
}
.lightbox__img {
  max-width: 100%;
  max-height: calc(100dvh - 11rem);
  width: auto; height: auto;
  object-fit: contain;
  border-radius: var(--r-md);
  box-shadow: 0 20px 60px rgba(0,0,0,.6);
}
.lightbox__caption {
  margin: 0; max-width: 60ch; text-align: center;
  color: rgba(255,255,255,.88); font-size: var(--fs-sm); line-height: 1.5;
}
.lightbox__counter {
  position: absolute; top: 1rem; left: 1rem; margin: 0;
  font-size: var(--fs-xs); color: rgba(255,255,255,.6);
  font-variant-numeric: tabular-nums;
}
.lightbox__btn {
  position: absolute;
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.22);
  color: #fff;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: background var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.lightbox__btn:hover { background: rgba(255,255,255,.26); }
.lightbox__btn .ico { width: 22px; height: 22px; }
.lightbox__btn--close { top: .85rem; right: .85rem; }
.lightbox__btn--prev { left: .6rem; top: 50%; transform: translateY(-50%); }
.lightbox__btn--next { right: .6rem; top: 50%; transform: translateY(-50%); }
.lightbox__btn--prev:hover, .lightbox__btn--next:hover { transform: translateY(-50%) scale(1.06); }
@media (max-width: 640px) {
  .lightbox__btn--prev { left: .5rem; }
  .lightbox__btn--next { right: .5rem; }
}

/* ---------- 15. Como ajudar ---------- */
.help { display: grid; gap: var(--sp-5); align-items: start; }
@media (min-width: 900px) { .help { grid-template-columns: 1.15fr .925fr .925fr; } }

.help__card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(1.25rem, 3vw, 1.9rem);
  box-shadow: var(--shadow-sm);
  height: 100%;
}
.help__card--primary {
  border-color: var(--ember);
  box-shadow: var(--shadow-md), 0 0 0 4px var(--ember-soft);
}
.help__tag {
  display: inline-block;
  font-size: var(--fs-xs); font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--ember-deep);
  background: var(--ember-soft);
  padding: .25rem .65rem; border-radius: var(--r-pill);
  margin-bottom: var(--sp-3);
}
.help__title { font-size: var(--fs-h3); margin-bottom: var(--sp-2); }
.help__sub { font-size: var(--fs-sm); color: var(--muted); margin-bottom: var(--sp-5); }
.help__fineprint { margin-top: var(--sp-4); font-size: var(--fs-xs); color: var(--muted); line-height: 1.5; }

.mbway__label {
  font-size: var(--fs-xs); letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); margin-bottom: .1rem;
}
.mbway__number {
  font-family: var(--font-head);
  font-size: clamp(2rem, 1.4rem + 3vw, 2.9rem);
  font-weight: 600; letter-spacing: .01em; line-height: 1.1;
  margin-bottom: var(--sp-4);
  font-variant-numeric: tabular-nums;
}
.mbway__amounts {
  border: 0; padding: 0; margin: 0 0 var(--sp-4);
  display: flex; flex-wrap: wrap; gap: .5rem;
}
.mbway__feedback {
  margin: .7rem 0 0; min-height: 1.3rem;
  font-size: var(--fs-sm); font-weight: 600; color: #15803D;
  display: flex; align-items: center; gap: .35rem;
}
.mbway__steps {
  counter-reset: step;
  margin-top: var(--sp-5); padding-top: var(--sp-4);
  border-top: 1px solid var(--line);
  display: grid; gap: .6rem;
}
.mbway__steps li {
  counter-increment: step;
  display: flex; align-items: flex-start; gap: .65rem;
  font-size: var(--fs-sm); color: var(--muted);
}
.mbway__steps li::before {
  content: counter(step);
  flex: none;
  width: 24px; height: 24px; margin-top: .1rem;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--ink); color: #fff;
  font-size: .72rem; font-weight: 700;
}
.mbway__steps strong { color: var(--ink); }

.share { display: grid; gap: .55rem; }

/* agradecimento da família */
.thanks {
  margin-top: var(--sp-7);
  padding: clamp(1.75rem, 4vw, 2.75rem) clamp(1.25rem, 4vw, 3rem);
  background: var(--ink);
  color: #fff;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.thanks::after {
  content: "";
  position: absolute; inset: auto -10% -60% -10%; height: 90%;
  background: radial-gradient(50% 100% at 50% 100%, rgba(234, 88, 12, .30), transparent 70%);
  pointer-events: none;
}
.thanks > * { position: relative; z-index: 1; }
.thanks__mark {
  width: 48px; height: 48px;
  display: inline-grid; place-items: center;
  margin-bottom: var(--sp-3);
  border-radius: 50%;
  background: rgba(234, 88, 12, .22);
  color: #F7A76C;
}
.thanks__mark .ico { width: 24px; height: 24px; }
.thanks__eyebrow {
  font-size: var(--fs-xs); font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  color: #F0A570;
  margin-bottom: var(--sp-3);
}
.thanks__quote { margin: 0 auto; max-width: 46ch; }
.thanks__quote p {
  font-family: var(--font-head);
  font-size: clamp(1.25rem, 1rem + 1.4vw, 1.9rem);
  line-height: 1.4;
  color: #fff;
  margin: 0;
}
.thanks__quote p::before { content: "\201C"; }
.thanks__quote p::after  { content: "\201D"; }
.thanks__sign {
  margin: var(--sp-4) 0 0;
  font-size: var(--fs-sm); font-weight: 600;
  letter-spacing: .04em;
  color: #FFD3AE;
}
.thanks__sign::before { content: "— "; }
.thanks__note {
  margin: var(--sp-5) auto 0;
  max-width: 56ch;
  padding-top: var(--sp-4);
  border-top: 1px solid rgba(255,255,255,.14);
  font-size: var(--fs-sm);
  line-height: 1.6;
  color: var(--muted-dark);
}

.transparency {
  margin-top: var(--sp-5);
  padding: var(--sp-5);
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.transparency h3 {
  font-size: var(--fs-lg); margin-bottom: var(--sp-3);
  display: flex; align-items: center; gap: .5rem;
}
.transparency ul { display: grid; gap: .6rem; }
.transparency li {
  position: relative; padding-left: 1.5rem;
  font-size: var(--fs-sm); color: var(--muted); line-height: 1.55;
}
.transparency li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--ember);
}

/* ---------- 16. Contacto ---------- */
.contact { display: grid; gap: var(--sp-6); align-items: center; }
@media (min-width: 860px) { .contact { grid-template-columns: 1.3fr .7fr; gap: var(--sp-8); } }
.contact__text p { color: var(--muted-dark); }
.contact__actions { display: grid; gap: .65rem; }

/* ---------- 16b. Assinatura 3D ---------- */
.credit {
  background: var(--ink);
  border-top: 1px solid rgba(255,255,255,.08);
  padding-block: clamp(2rem, 5vw, 3.25rem);
  overflow: hidden;
  position: relative;
}
.credit__stage {
  position: relative;
  width: calc(100% - 2 * var(--gutter));
  max-width: 660px;
  margin-inline: auto;
  height: 132px;
  overflow: hidden;
  contain: paint;
  border-radius: var(--r-md);
  background: linear-gradient(165deg, rgba(234, 88, 12, .16), rgba(255, 255, 255, .03));
  box-shadow: inset 0 0 0 1px rgba(234, 88, 12, .32);
  perspective: 900px;
  perspective-origin: 50% 50%;
  display: none;
}
.credit__ring {
  position: absolute; inset: 0;
  transform-style: preserve-3d;
  will-change: transform;
}
.credit__panel {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  font-family: var(--font-head);
  font-size: clamp(1rem, .85rem + .55vw, 1.32rem);
  line-height: 1.45;
  color: #F7C8A2;
  padding: .85rem clamp(1rem, 4vw, 2rem);
  backface-visibility: hidden;
}
.credit__line { display: block; max-width: 46ch; }
.credit__panel strong { color: #FFE2C8; font-weight: 600; }

.credit__fallback {
  margin: 0 auto;
  max-width: 54ch;
  padding-inline: var(--gutter);
  text-align: center;
  font-family: var(--font-head);
  font-size: clamp(1.02rem, .9rem + .5vw, 1.3rem);
  line-height: 1.5;
  color: #F7C8A2;
}
.credit__fallback strong { color: #FFE2C8; }

/* quando o carrossel 3D arranca, o texto estático deixa de ser preciso no ecrã */
.credit.is-3d .credit__stage { display: block; }
.credit.is-3d .credit__fallback { display: none; }

@media (prefers-reduced-motion: reduce) {
  .credit.is-3d .credit__stage { display: none; }
  .credit.is-3d .credit__fallback { display: block; }
}

/* ---------- 17. Footer ---------- */
.site-footer {
  background: #0D0A08; color: rgba(255,255,255,.7);
  padding-block: var(--sp-7);
  border-top: 1px solid rgba(255,255,255,.08);
}
.site-footer__inner { display: grid; gap: var(--sp-5); }
.site-footer__brand { display: flex; gap: .85rem; align-items: flex-start; }
.site-footer__brand p { font-size: var(--fs-sm); line-height: 1.6; }
.site-footer__brand strong { color: #fff; font-family: var(--font-head); font-size: 1.05rem; }
.site-footer__nav { display: flex; flex-wrap: wrap; gap: .35rem 1.25rem; }
.site-footer__nav a {
  font-size: var(--fs-sm); color: rgba(255,255,255,.7);
  text-decoration: none;
  min-height: 44px; min-width: 44px;
  display: inline-flex; align-items: center;
  border-bottom: 1px solid transparent;
}
.site-footer__nav a:hover { color: #fff; border-bottom-color: var(--ember-hot); }
.site-footer__credit {
  margin: 0;
  padding-top: var(--sp-4);
  border-top: 1px solid rgba(255,255,255,.08);
  font-family: var(--font-head);
  font-size: var(--fs-base);
  line-height: 1.55;
  color: #F0B98F;
  max-width: 62ch;
}
.site-footer__credit strong { color: #FFE2C8; font-weight: 600; }

.site-footer__legal {
  font-size: var(--fs-xs); color: rgba(255,255,255,.56);
  margin: 0; max-width: 70ch;
}

/* ---------- 18. Barra fixa (mobile) ---------- */
.actionbar {
  position: fixed; z-index: 105;
  inset: auto 0 0 0;
  display: none; gap: .6rem;
  padding: .6rem var(--gutter);
  padding-bottom: calc(.6rem + env(safe-area-inset-bottom, 0px));
  background: rgba(17, 13, 11, .96);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255,255,255,.12);
  transform: translateY(110%);
  transition: transform var(--t-base) var(--ease);
}
.actionbar .btn--outline { --btn-fg: #fff; --btn-bd: rgba(255,255,255,.35); }
.actionbar .btn--outline:hover { background: rgba(255,255,255,.12); --btn-bd: #fff; }
.actionbar.is-visible { transform: translateY(0); }
@media (max-width: 900px) {
  .actionbar { display: flex; }
  body { padding-bottom: 0; }
  .site-footer { padding-bottom: calc(var(--sp-7) + 76px); }
}

/* ---------- 19. Reveal on scroll ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 460ms var(--ease), transform 460ms var(--ease);
  will-change: opacity, transform;
}
.js .reveal.is-in { opacity: 1; transform: none; will-change: auto; }

/* ---------- 20. Sem JavaScript ---------- */
.no-js .hero { height: auto; }
.no-js .hero__stage { position: relative; height: 100svh; }
.no-js .hero__canvas, .no-js .hero__loader, .no-js .hero__chapter { display: none; }
.no-js .nav-toggle { display: none; }

/* ---------- 21. Movimento reduzido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .hero { height: auto !important; }
  .hero__stage { position: relative; height: 100svh; }
  .hero__glow { animation: none; opacity: .7; }
  .hero__scroll .ico { animation: none; }
  .js .reveal { opacity: 1; transform: none; }
  .btn:hover, .person:hover, .gallery__btn:hover { transform: none; }
}

/* ---------- 22. Impressão ---------- */
@media print {
  .site-header, .actionbar, .progress, .hero__media, .hero__scroll, .lightbox { display: none !important; }
  .hero { height: auto; }
  .hero__stage { position: static; height: auto; min-height: 0; }
  .hero__content { color: #000; padding: 0; }
  body { background: #fff; color: #000; }
  .section--dark, .section--ember { background: #fff !important; color: #000 !important; }
}
