/* ============================================================
   NOVA DOMUS — "Valor que fica"
   Paleta: espresso / osso / ouro champanhe / terracota (raro)
   ============================================================ */
:root {
  --ink: #0d0b08;
  --ink-2: #141109;
  --paper: #f2ece0;
  --bone: #d9d2c2;
  --mute: #8f8878;
  --gold: #c9a24e;
  --gold-soft: #e6d8a8;
  --clay: #b3572f;
  --line: rgba(217, 210, 194, 0.14);
  --serif: 'Fraunces', serif;
  --sans: 'Instrument Sans', sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--gold); color: var(--ink); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* Grão de filme sobre tudo */
body::after {
  content: '';
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  pointer-events: none;
  z-index: 9000;
  opacity: 0.05;
  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' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 8s steps(10) infinite;
}
@keyframes grain {
  0%,100% { transform: translate(0,0); }
  20% { transform: translate(-2%,2%); }
  40% { transform: translate(2%,-1%); }
  60% { transform: translate(-1%,-2%); }
  80% { transform: translate(1%,2%); }
}

/* Barra de progresso de scroll */
#progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--gold), var(--gold-soft));
  z-index: 8000;
}

/* Cursor dourado (só desktop com rato) */
#cursor {
  position: fixed;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--gold);
  pointer-events: none;
  z-index: 8500;
  transform: translate(-50%, -50%);
  transition: width 0.25s ease, height 0.25s ease, opacity 0.25s ease;
  opacity: 0;
  mix-blend-mode: difference;
}
body.cursor-on #cursor { opacity: 0.9; }
#cursor.big { width: 46px; height: 46px; opacity: 0.35; }
@media (hover: none) { #cursor { display: none; } }

/* ============ Preloader ============ */
#loader {
  position: fixed;
  inset: 0;
  background: var(--ink);
  z-index: 9500;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
#loader.done { opacity: 0; visibility: hidden; }
#loader .mark {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  letter-spacing: 0.34em;
  text-indent: 0.34em;
  color: var(--paper);
  overflow: hidden;
}
#loader .mark span { color: var(--gold); }
#loader .mark .inner {
  display: inline-block;
  transform: translateY(110%);
  animation: rise 1.6s cubic-bezier(0.22,1,0.36,1) 0.25s forwards;
}
#loader .bar {
  width: min(240px, 50vw);
  height: 1px;
  background: var(--line);
  overflow: hidden;
}
#loader .bar i {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  animation: sweep 1.9s cubic-bezier(0.65,0,0.35,1) 0.5s forwards;
}
@keyframes rise { to { transform: translateY(0); } }
@keyframes sweep { to { transform: scaleX(1); } }

/* ============ Navegação ============ */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 7000;
  padding: 26px 4vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease;
}
header.scrolled {
  background: rgba(13, 11, 8, 0.94);
  padding: 14px 4vw;
  box-shadow: 0 1px 0 var(--line);
}
/* backdrop-filter só em desktop: em mobile criaria um "containing block"
   que desposiciona o menu fixed de ecrã inteiro */
@media (min-width: 881px) {
  header.scrolled { background: rgba(13, 11, 8, 0.82); backdrop-filter: blur(14px); }
}
.logo {
  font-family: var(--serif);
  font-size: 1.05rem;
  letter-spacing: 0.28em;
  font-weight: 600;
}
.logo span { color: var(--gold); }
nav.links { display: flex; gap: 34px; align-items: center; }
nav.links a {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bone);
  position: relative;
  transition: color 0.25s ease;
}
nav.links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -6px;
  width: 100%; height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s cubic-bezier(0.65,0,0.35,1);
}
nav.links a:hover { color: var(--paper); }
nav.links a:hover::after { transform: scaleX(1); transform-origin: left; }
nav.links a.on { color: var(--paper); }
nav.links a.on::after { transform: scaleX(1); }
.cta-pill {
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink) !important;
  background: linear-gradient(115deg, var(--gold), var(--gold-soft));
  padding: 12px 24px;
  border-radius: 40px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.cta-pill:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(201,162,78,0.25); }
.cta-pill::after { display: none; }

/* Login embutido (entra diretamente no software de gestão) */
.login-dd { position: relative; }
.login-dd summary {
  list-style: none;
  cursor: pointer;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bone);
  transition: color 0.25s ease;
}
.login-dd summary::-webkit-details-marker { display: none; }
.login-dd summary::marker { content: ''; }
.login-dd summary:hover, .login-dd[open] summary { color: var(--gold); }
.login-panel {
  position: absolute;
  top: calc(100% + 18px);
  right: 0;
  width: 280px;
  background: var(--ink-2);
  border: 1px solid rgba(201, 162, 78, 0.3);
  border-radius: 6px;
  padding: 14px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  z-index: 7100;
}
.login-panel iframe {
  width: 100%;
  height: 215px;
  border: none;
  display: block;
  color-scheme: dark;
}
@media (max-width: 880px) {
  .login-dd { text-align: center; }
  .login-dd summary { font-size: 1.05rem; }
  .login-panel {
    position: static;
    width: min(320px, 84vw);
    margin: 16px auto 0;
    box-shadow: none;
  }
}

#menu-btn { display: none; }
@media (max-width: 880px) {
  nav.links {
    position: fixed;
    inset: 0;
    background: var(--ink);
    flex-direction: column;
    justify-content: center;
    gap: 30px;
    transform: translateY(-100%);
    visibility: hidden;
    transition: transform 0.5s cubic-bezier(0.65,0,0.35,1), visibility 0s linear 0.5s;
    z-index: -1;
    overflow-y: auto;
  }
  nav.links.open { transform: translateY(0); visibility: visible; transition-delay: 0s; }
  nav.links a { font-size: 1.05rem; }
  #menu-btn {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
  }
  #menu-btn span {
    width: 26px; height: 2px;
    background: var(--paper);
    transition: transform 0.3s ease, opacity 0.3s ease;
  }
  #menu-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  #menu-btn.open span:nth-child(2) { opacity: 0; }
  #menu-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ============ Hero (página inicial) ============ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  padding: 140px 4vw 0;
  background:
    radial-gradient(ellipse 60% 45% at 75% 20%, rgba(201,162,78,0.09), transparent),
    var(--ink);
}
.kicker {
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.kicker::before {
  content: '';
  width: 44px; height: 1px;
  background: var(--gold);
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(3rem, 10vw, 8.4rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
  max-width: 12ch;
}
.hero h1 .word {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}
.hero h1 .word i {
  font-style: normal;
  display: inline-block;
  transform: translateY(110%);
}
body.ready .hero h1 .word i { animation: rise 1s cubic-bezier(0.22,1,0.36,1) forwards; }
.hero h1 .gold { color: var(--gold); }
.hero h1 .clay { color: var(--clay); }
.hero .sub {
  margin-top: 34px;
  max-width: 400px;
  color: var(--bone);
  font-size: 1.02rem;
  opacity: 0;
  transform: translateY(20px);
}
body.ready .hero .sub { animation: fadeUp 0.9s ease 0.9s forwards; }
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

/* Selo 48h rotativo */
.badge48 {
  position: absolute;
  right: 7vw;
  top: 44%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
  opacity: 0;
  text-decoration: none;
}
body.ready .badge48 { animation: badgeIn 1s ease 1.3s forwards; }
@keyframes badgeIn { to { opacity: 1; } }
.badge48 .disc {
  position: relative;
  width: 168px;
  height: 168px;
  display: grid;
  place-items: center;
}
.badge48 svg.ring { position: absolute; inset: 0; animation: spin 22s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.badge48 .core {
  font-family: var(--serif);
  font-size: 1.9rem;
  color: var(--gold);
  text-align: center;
  line-height: 1;
}
.badge48 .core small {
  display: block;
  font-family: var(--sans);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  color: var(--mute);
  margin-top: 6px;
  text-transform: uppercase;
}
.badge48 .cap {
  font-family: var(--sans);
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--bone);
  letter-spacing: 0.02em;
}
.badge48 .cap .cap-cta {
  display: block;
  margin-top: 9px;
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.badge48:hover .cap-cta { text-decoration: underline; text-underline-offset: 5px; }
@media (max-width: 880px) {
  .badge48 { position: static; transform: none; margin: 56px auto 0; }
}

/* Marquee */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 20px 0;
  margin-top: 12vh;
  white-space: nowrap;
}
.marquee .track {
  display: inline-block;
  animation: marquee 26s linear infinite;
}
.marquee span {
  font-family: var(--serif);
  font-size: 1.15rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bone);
  margin: 0 34px;
}
.marquee b { color: var(--gold); font-weight: 400; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============ Hero de páginas interiores ============ */
.page-hero {
  padding: 200px 4vw 80px;
  background:
    radial-gradient(ellipse 55% 40% at 70% 0%, rgba(201,162,78,0.08), transparent),
    var(--ink);
}
.page-hero .inner { max-width: 1200px; margin: 0 auto; }
.page-hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.6rem, 7vw, 5.8rem);
  line-height: 1.05;
  max-width: 15ch;
}
.page-hero h1 .gold { color: var(--gold); }
.page-hero .lead {
  margin-top: 28px;
  max-width: 520px;
  color: var(--bone);
  font-size: 1.05rem;
}

/* ============ Secções genéricas ============ */
section { padding: 130px 4vw; position: relative; }
.inner { max-width: 1200px; margin: 0 auto; }
.eyebrow {
  font-size: 0.74rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}
.eyebrow::before { content: ''; width: 34px; height: 1px; background: var(--gold); }
h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 4.6vw, 3.6rem);
  line-height: 1.12;
  max-width: 20ch;
}
.rv { opacity: 0; transform: translateY(36px); transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.22,1,0.36,1); }
.rv.in { opacity: 1; transform: none; }
.rv.d1 { transition-delay: 0.12s; }
.rv.d2 { transition-delay: 0.24s; }
.rv.d3 { transition-delay: 0.36s; }

/* ============ Proposta 48h ============ */
#proposta { background: linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%); }
#proposta .wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
}
.steps { margin-top: 46px; display: grid; gap: 0; }
.step {
  display: flex;
  gap: 22px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  align-items: baseline;
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step .n {
  font-family: var(--serif);
  color: var(--gold);
  font-size: 0.95rem;
  min-width: 30px;
}
.step h3 { font-family: var(--sans); font-size: 0.98rem; font-weight: 600; margin-bottom: 4px; }
.step p { font-size: 0.88rem; color: var(--mute); }
.form-card {
  background: rgba(242, 236, 224, 0.03);
  border: 1px solid rgba(201, 162, 78, 0.28);
  border-radius: 6px;
  padding: 40px 38px;
  position: relative;
}
.form-card::before {
  content: '48H';
  position: absolute;
  top: -1px; right: 28px;
  background: linear-gradient(115deg, var(--gold), var(--gold-soft));
  color: var(--ink);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  padding: 8px 16px 7px;
  border-radius: 0 0 6px 6px;
}
.form-card.no-tag::before { display: none; }
.form-card h3 {
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 500;
  margin-bottom: 6px;
}
.form-card .hint { font-size: 0.85rem; color: var(--mute); margin-bottom: 28px; }
.form-card form { display: grid; gap: 16px; }
.form-card .r2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-card label {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mute);
  display: block;
  margin-bottom: 7px;
}
.form-card input, .form-card select, .form-card textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  padding: 10px 2px;
  color: var(--paper);
  font-size: 0.95rem;
  font-family: var(--sans);
  outline: none;
  border-radius: 0;
  transition: border-color 0.3s ease;
  resize: vertical;
}
.form-card select { appearance: none; cursor: pointer; }
.form-card select option { background: var(--ink-2); }
.form-card input:focus, .form-card select:focus, .form-card textarea:focus { border-color: var(--gold); }
.btn-gold {
  margin-top: 14px;
  background: linear-gradient(115deg, var(--gold), var(--gold-soft));
  color: var(--ink);
  border: none;
  padding: 17px 30px;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-radius: 40px;
  cursor: pointer;
  display: inline-block;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(201,162,78,0.3); }
.btn-line {
  display: inline-block;
  margin-top: 14px;
  padding: 15px 30px;
  border: 1px solid rgba(201, 162, 78, 0.5);
  border-radius: 40px;
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}
.btn-line:hover { background: var(--gold); color: var(--ink); transform: translateY(-2px); }
.form-card .fine { font-size: 0.72rem; color: var(--mute); text-align: center; margin-top: 8px; }

/* Consentimento RGPD */
.consent {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  margin-top: 6px;
}
.consent input[type="checkbox"] {
  width: 17px;
  height: 17px;
  min-width: 17px;
  margin-top: 2px;
  accent-color: var(--gold);
  cursor: pointer;
}
.consent label {
  font-size: 0.78rem;
  line-height: 1.55;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 400;
  color: var(--mute);
  margin: 0;
  cursor: pointer;
}
.consent a { color: var(--gold); text-decoration: underline; }
/* Honeypot: invisível para pessoas, preenchido por robôs */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
@media (max-width: 880px) {
  #proposta .wrap { grid-template-columns: 1fr; gap: 50px; }
  .form-card { padding: 32px 24px; }
}

/* ============ Números ============ */
#numeros { padding-top: 60px; padding-bottom: 60px; }
#numeros .grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 1200px;
  margin: 0 auto;
}
#numeros .cell {
  padding: 34px 20px;
  border-left: 1px solid var(--line);
  text-align: center;
}
#numeros .cell:first-child { border-left: none; }
#numeros .num {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4.4vw, 3.6rem);
  color: var(--paper);
}
#numeros .num em { font-style: normal; color: var(--gold); }
#numeros .lab {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mute);
  margin-top: 8px;
}
@media (max-width: 880px) {
  #numeros .grid { grid-template-columns: 1fr 1fr; }
  #numeros .cell:nth-child(3) { border-left: none; }
  #numeros .cell { border-top: 1px solid var(--line); }
  #numeros .cell:nth-child(-n+2) { border-top: none; }
}

/* ============ Serviços — lista editorial (home) ============ */
.svc-list .item {
  border-top: 1px solid var(--line);
  padding: 44px 0;
  display: grid;
  grid-template-columns: 80px 1fr 1.1fr;
  gap: 30px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  transition: padding 0.35s ease;
  cursor: default;
}
.svc-list .item:last-of-type { border-bottom: 1px solid var(--line); }
.svc-list .item .idx { font-family: var(--serif); color: var(--mute); font-size: 1rem; }
.svc-list .item .name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.7rem, 3.6vw, 2.9rem);
  transition: color 0.3s ease, transform 0.35s ease;
}
.svc-list .item p {
  color: var(--mute);
  font-size: 0.95rem;
  max-width: 46ch;
  transition: color 0.3s ease;
}
.svc-list .item:hover .name { color: var(--gold); transform: translateX(10px); }
.svc-list .item:hover p { color: var(--bone); }
@media (max-width: 880px) {
  .svc-list .item { grid-template-columns: 1fr; gap: 12px; padding: 34px 0; }
  .svc-list .item .idx { display: none; }
}

/* ============ Serviços — página detalhada ============ */
.svc-detail {
  border-top: 1px solid var(--line);
  padding: 70px 0;
  display: grid;
  grid-template-columns: 90px 1fr 1fr;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}
.svc-detail:last-of-type { border-bottom: 1px solid var(--line); }
.svc-detail .idx { font-family: var(--serif); color: var(--gold); font-size: 1.1rem; }
.svc-detail h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.8rem, 3.8vw, 3rem);
  line-height: 1.1;
  margin-bottom: 18px;
}
.svc-detail .desc { color: var(--bone); font-size: 0.98rem; max-width: 50ch; }
.svc-detail ul { list-style: none; margin-top: 6px; }
.svc-detail li {
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  color: var(--mute);
  font-size: 0.92rem;
  display: flex;
  gap: 14px;
  align-items: baseline;
}
.svc-detail li::before { content: '—'; color: var(--gold); flex-shrink: 0; }
@media (max-width: 880px) {
  .svc-detail { grid-template-columns: 1fr; gap: 20px; padding: 50px 0; }
}

/* ============ Antes / Depois ============ */
.compare {
  position: relative;
  max-width: 1100px;
  margin: 60px auto 0;
  aspect-ratio: 16 / 8.5;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--line);
  user-select: none;
}
.compare .layer {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: center;
}
.compare .antes { justify-items: start; padding-left: 7%; }
.compare .depois { justify-items: end; padding-right: 7%; }
.compare .antes {
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.02) 0 12px, transparent 12px 24px),
    linear-gradient(150deg, #241f17, #17130d 70%);
}
.compare .depois {
  background:
    radial-gradient(ellipse at 30% 20%, rgba(201,162,78,0.22), transparent 55%),
    linear-gradient(150deg, #3a2f1c, #1d1710 75%);
  clip-path: inset(0 0 0 50%);
}
.compare .tag {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 3vw, 2.4rem);
  letter-spacing: 0.3em;
  text-indent: 0.3em;
  text-transform: uppercase;
  color: rgba(242,236,224,0.5);
}
.compare .depois .tag { color: var(--gold); }
.compare .handle {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 2px;
  background: var(--gold);
  transform: translateX(-50%);
  pointer-events: none;
}
.compare .handle::after {
  content: '⟷';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--ink);
  display: grid;
  place-items: center;
  font-size: 1.05rem;
}
.compare input[type="range"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
  margin: 0;
}
.compare-note {
  text-align: center;
  color: var(--mute);
  font-size: 0.8rem;
  margin-top: 18px;
  letter-spacing: 0.08em;
}

/* ============ Projetos ============ */
.rail-wrap { padding-right: 0; }
.rail {
  display: flex;
  gap: 26px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 60px 4vw 30px 0;
  scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.rail .proj { flex: 0 0 min(420px, 78vw); scroll-snap-align: start; }
.proj {
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: var(--ink-2);
  transition: transform 0.35s ease, border-color 0.35s ease;
}
.proj:hover { transform: translateY(-8px); border-color: rgba(201,162,78,0.4); }
.proj .ph {
  aspect-ratio: 4 / 2.7;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--mute);
  background: linear-gradient(160deg, #2b2416, #15100a);
}
.proj .ph.v2 { background: linear-gradient(160deg, #24201a, #120f0b); }
.proj .ph.v3 { background: linear-gradient(160deg, #2d2115, #170f08); }
.proj .ph.v4 { background: linear-gradient(160deg, #262019, #14100b); }
.proj .ph img { width: 100%; height: 100%; object-fit: cover; }
.proj .info { padding: 24px 26px 28px; }
.proj .info h3 { font-family: var(--serif); font-weight: 500; font-size: 1.4rem; }
.proj .info .meta {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mute);
}
.proj .info .meta .st { color: var(--gold); }

/* Página de projetos: filtros + grelha */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 50px auto 0;
  max-width: 1200px;
}
.fbtn {
  background: none;
  border: 1px solid var(--line);
  color: var(--bone);
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 11px 22px;
  border-radius: 40px;
  cursor: pointer;
  transition: all 0.25s ease;
}
.fbtn:hover { border-color: rgba(201,162,78,0.5); color: var(--gold); }
.fbtn.active {
  background: linear-gradient(115deg, var(--gold), var(--gold-soft));
  border-color: transparent;
  color: var(--ink);
}
.pgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 26px;
  max-width: 1200px;
  margin: 50px auto 0;
}

/* ============ Timeline (Sobre) ============ */
.timeline { max-width: 1200px; margin: 60px auto 0; }
.t-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 40px;
  padding: 40px 0;
  border-top: 1px solid var(--line);
}
.t-item:last-of-type { border-bottom: 1px solid var(--line); }
.t-item .year {
  font-family: var(--serif);
  font-size: 1.8rem;
  color: var(--gold);
  line-height: 1;
}
.t-item h3 { font-family: var(--sans); font-size: 1.02rem; font-weight: 600; margin-bottom: 6px; }
.t-item p { color: var(--mute); font-size: 0.95rem; max-width: 60ch; }
@media (max-width: 880px) {
  .t-item { grid-template-columns: 1fr; gap: 10px; padding: 32px 0; }
}

/* Valores (Sobre) */
.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  max-width: 1200px;
  margin: 60px auto 0;
}
.value {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 36px 30px;
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.value:hover { border-color: rgba(201,162,78,0.4); transform: translateY(-6px); }
.value .v-idx { font-family: var(--serif); color: var(--gold); margin-bottom: 18px; }
.value h3 { font-family: var(--serif); font-weight: 500; font-size: 1.35rem; margin-bottom: 10px; }
.value p { color: var(--mute); font-size: 0.92rem; }
@media (max-width: 880px) { .values { grid-template-columns: 1fr; } }

/* ============ Testemunho ============ */
.quote-sec { text-align: center; }
.quote-sec blockquote {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.5rem, 3.4vw, 2.6rem);
  line-height: 1.35;
  max-width: 22ch;
  margin: 0 auto;
}
.quote-sec blockquote::before {
  content: '“';
  display: block;
  font-size: 5rem;
  line-height: 0.6;
  color: var(--gold);
  margin-bottom: 26px;
}
.quote-sec cite {
  display: block;
  margin-top: 30px;
  font-style: normal;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mute);
}

/* ============ Contacto ============ */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 70px;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
}
.cinfo .ci {
  border-top: 1px solid var(--line);
  padding: 26px 0;
}
.cinfo .ci:last-child { border-bottom: 1px solid var(--line); }
.cinfo .ci .lab {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 8px;
}
.cinfo .ci .val {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2.2vw, 1.7rem);
  color: var(--paper);
}
.cinfo .ci .val a:hover { color: var(--gold); }
@media (max-width: 880px) {
  .contact-wrap { grid-template-columns: 1fr; gap: 50px; }
}

/* ============ CTA final ============ */
.cta-final {
  text-align: center;
  background: linear-gradient(180deg, var(--ink) 0%, #171207 100%);
}
.cta-final h2 { margin: 0 auto 40px; max-width: 16ch; }
.cta-final .mag { display: inline-block; }

/* ============ Footer ============ */
footer {
  border-top: 1px solid var(--line);
  padding: 70px 4vw 40px;
  position: relative;
  overflow: hidden;
}
footer .water {
  position: absolute;
  bottom: -6vw;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--serif);
  font-size: 16vw;
  letter-spacing: 0.06em;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(217,210,194,0.06);
  pointer-events: none;
}
footer .cols {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}
footer h4 {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 16px;
}
footer li { list-style: none; margin-bottom: 10px; font-size: 0.9rem; color: var(--bone); }
footer li a:hover { color: var(--gold); }
footer .bottom {
  max-width: 1200px;
  margin: 60px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.74rem;
  color: var(--mute);
  position: relative;
}
@media (max-width: 880px) { footer .cols { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}


/* ===== Ecrã de entrada: wordmark dourado com ornamentos ===== */
#loader .mark {
  font-size: clamp(1.9rem, 5.2vw, 3.4rem);
  font-weight: 500;
  letter-spacing: 0.3em;
  text-indent: 0.3em;
}
#loader .mark span {
  background: linear-gradient(115deg, #a07f35 0%, #e8c766 45%, #f6e6ae 50%, #e8c766 55%, #a07f35 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: brilho 2.4s ease-in-out infinite;
}
@keyframes brilho { 0%,100% { background-position: 0% 0; } 50% { background-position: 100% 0; } }
#loader .orn {
  display: flex; align-items: center; gap: 14px;
  margin: 0 0 26px; opacity: 0;
  animation: fadeOrn 1.3s ease .7s forwards;
}
#loader .orn.flip { margin: 26px 0 34px; }
#loader .orn i { display: block; width: min(120px, 24vw); height: 1px; }
#loader .orn i:first-child { background: linear-gradient(90deg, transparent, #8a7a4e); }
#loader .orn i:last-child { background: linear-gradient(90deg, #8a7a4e, transparent); }
#loader .orn b { width: 5px; height: 5px; transform: rotate(45deg); background: var(--gold); display: block; }
#loader .since {
  margin-top: 20px; font-size: 0.62rem; letter-spacing: 0.42em; text-indent: 0.42em;
  color: #8f8878; opacity: 0; animation: fadeOrn 1.4s ease 1.3s forwards;
}
@keyframes fadeOrn { to { opacity: 1; } }

/* ===== Logo do cabeçalho com mais presença ===== */
#hdr .logo {
  font-size: 1.38rem;
  letter-spacing: 0.3em;
  font-weight: 600;
}
#hdr .logo span {
  background: linear-gradient(115deg, #a07f35, #e8c766 50%, #a07f35);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
#hdr .logo:hover span {
  background: linear-gradient(115deg, #e8c766, #f6e6ae 50%, #e8c766);
  -webkit-background-clip: text;
  background-clip: text;
}
