/* ============================================================
   ALMOVYA — planeamento privado e brokering
   Direcção: Carta de Navegação.
   A página é um percurso traçado: noite → dia mineral → noite.
   ============================================================ */

/* ── Tokens ─────────────────────────────────────────────── */
:root {
  /* Paleta: petróleo abissal, casco, verdete (cobre oxidado), calcário */
  --abyss:      #07141a;
  --hull:       #0e1f27;
  --hull-hi:    #16303a;
  --verdigris:  #6fae9a;
  --verd-deep:  #3f7a69;
  --limestone:  #e3e4df;
  --limestone-2:#d6d9d3;
  --salt:       #f0eee8;
  --slate:      #8fa3a5;
  --ink:        #0b1a20;

  --display: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --body:    "Archivo", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono:    "IBM Plex Mono", ui-monospace, "SFMono-Regular", monospace;

  --t-hero:  clamp(2.6rem, 7.6vw, 6.4rem);
  --t-h2:    clamp(1.9rem, 4.2vw, 3.4rem);
  --t-claim: clamp(1.6rem, 3.4vw, 2.9rem);

  --rail-w: 92px;
  --gut:    clamp(1.25rem, 5vw, 4rem);
  --sect-y: clamp(4.5rem, 10vw, 9.5rem);

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ── Base ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--abyss);
  color: var(--salt);
  font-family: var(--body);
  font-weight: 300;
  font-size: clamp(1rem, .96rem + .2vw, 1.075rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

/* O <picture> existe só para oferecer o WebP; não deve entrar no layout,
   senão quebra os `height: 100%` das imagens que preenchem o contentor. */
picture { display: contents; }
a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--verdigris);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip {
  position: fixed; top: -100px; left: var(--gut); z-index: 200;
  background: var(--verdigris); color: var(--abyss);
  padding: .7rem 1.1rem; font-family: var(--mono); font-size: .75rem;
  text-decoration: none; letter-spacing: .08em; text-transform: uppercase;
}
.skip:focus { top: 1rem; }

.wrap {
  width: min(1280px, 100%);
  margin-inline: auto;
  padding-inline: var(--gut);
}

/* Registos de cor: cada secção declara o seu. */
[data-register="dark"]  { --bg: var(--abyss);     --fg: var(--salt); --dim: var(--slate);  --rule: rgba(240,238,232,.14); }
[data-register="light"] { --bg: var(--limestone); --fg: var(--ink);  --dim: #5c6f72;       --rule: rgba(11,26,32,.16); }

.section {
  position: relative;
  background: var(--bg);
  color: var(--fg);
  padding-block: var(--sect-y);
}

/* Folga para o masthead fixo quando se salta para uma âncora */
section[id] { scroll-margin-top: 5.5rem; }

/* ── Tipografia partilhada ──────────────────────────────── */
.eyebrow {
  margin: 0 0 1.6rem;
  font-family: var(--mono);
  font-size: .69rem;
  font-weight: 500;
  letter-spacing: .19em;
  text-transform: uppercase;
  color: var(--verdigris);
}

.secthead { max-width: 46ch; margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }

.secthead__title {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: var(--t-h2);
  line-height: 1.04;
  letter-spacing: -.022em;
  text-wrap: balance;
}

.secthead__lede {
  margin: 1.4rem 0 0;
  max-width: 44ch;
  color: var(--dim);
  font-size: 1.02rem;
}

/* ── Botões ─────────────────────────────────────────────── */
.btn {
  --btn-pad: .95rem 1.7rem;
  display: inline-flex; align-items: center; justify-content: center;
  padding: var(--btn-pad);
  font-family: var(--mono); font-size: .74rem; font-weight: 500;
  letter-spacing: .13em; text-transform: uppercase; text-decoration: none;
  border: 1px solid transparent; border-radius: 2px;
  cursor: pointer; white-space: nowrap;
  transition: background-color .35s var(--ease), color .35s var(--ease),
              border-color .35s var(--ease), transform .35s var(--ease);
}
.btn--solid { background: var(--verdigris); color: var(--abyss); }
.btn--solid:hover { background: var(--salt); transform: translateY(-2px); }

.btn--ghost { border-color: currentColor; color: inherit; opacity: .85; }
.btn--ghost:hover { opacity: 1; border-color: var(--verdigris); color: var(--verdigris); transform: translateY(-2px); }

/* ── Masthead ───────────────────────────────────────────── */
.masthead {
  position: fixed; inset: 0 0 auto; z-index: 90;
  display: flex; align-items: center; gap: 1.5rem;
  padding: 1.15rem var(--gut);
  color: var(--mast-fg, var(--salt));
  transition: background-color .4s var(--ease), color .4s var(--ease),
              box-shadow .4s var(--ease), padding .4s var(--ease);
}
body[data-register="light"] .masthead { --mast-fg: var(--ink);  --mast-bg: rgba(227,228,223,.90); }
body[data-register="dark"]  .masthead { --mast-fg: var(--salt); --mast-bg: rgba(7,20,26,.86); }

.masthead.is-stuck {
  background: var(--mast-bg);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  box-shadow: 0 1px 0 var(--rule, rgba(255,255,255,.1));
  padding-block: .8rem;
}

/* Wordmark: serifa em maiúsculas, muito espaçada. Sem brasão — o nome basta. */
.mark {
  position: relative; display: inline-block; text-decoration: none; margin-right: auto;
}
.mark__word {
  display: block;
  font-family: var(--display); font-weight: 400;
  font-size: clamp(.98rem, .92rem + .22vw, 1.16rem);
  text-transform: uppercase;
  letter-spacing: .3em;
  text-indent: .3em;          /* devolve ao centro o espaço que o tracking acrescenta à direita */
  line-height: 1.4;
}
.mark::after {
  content: ""; position: absolute; left: 0; right: .3em; bottom: -.15em; height: 1px;
  background: var(--verdigris);
  transform: scaleX(0); transform-origin: left;
  transition: transform .55s var(--ease);
}
.mark:hover::after, .mark:focus-visible::after { transform: scaleX(1); }

.mainnav { display: flex; gap: 2rem; }
.mainnav a {
  font-family: var(--mono); font-size: .73rem; letter-spacing: .1em;
  text-transform: uppercase; text-decoration: none; opacity: .72;
  transition: opacity .3s var(--ease), color .3s var(--ease);
}
.mainnav a:hover, .mainnav a.is-active { opacity: 1; color: var(--verdigris); }

.masthead__end { display: flex; align-items: center; gap: 1.15rem; }

.lang { display: inline-flex; align-items: center; gap: .3rem; font-family: var(--mono); font-size: .72rem; }
.lang__btn {
  background: none; border: 0; padding: .2rem .1rem; cursor: pointer;
  color: inherit; opacity: .5; font: inherit; letter-spacing: .08em;
  text-decoration: none;
  transition: opacity .3s var(--ease), color .3s var(--ease);
}
.lang__btn:hover { opacity: .9; }
.lang__btn.is-on { opacity: 1; color: var(--verdigris); }
.lang__sep { opacity: .35; }

.burger {
  display: none; width: 40px; height: 34px; padding: 0;
  background: none; border: 0; cursor: pointer; color: inherit;
  flex-direction: column; justify-content: center; gap: 7px; align-items: flex-end;
}
.burger span {
  display: block; height: 1px; width: 24px; background: currentColor;
  transition: transform .35s var(--ease), width .35s var(--ease), opacity .25s var(--ease);
}
.burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child  { transform: translateY(-4px) rotate(-45deg); width: 24px; }

/* ── Gaveta (mobile) ────────────────────────────────────── */
.drawer {
  position: fixed; inset: 0; z-index: 85;
  background: var(--abyss);
  display: flex; flex-direction: column; justify-content: center; gap: 2.5rem;
  padding: 5rem var(--gut) 3rem;
  opacity: 0; transition: opacity .35s var(--ease);
}
.drawer.is-open { opacity: 1; }
.drawer__nav { display: flex; flex-direction: column; gap: 1.4rem; }
.drawer__nav a {
  font-family: var(--display); font-size: clamp(2rem, 9vw, 3rem);
  line-height: 1.1; text-decoration: none; color: var(--salt);
}
.drawer__nav a:hover { color: var(--verdigris); }
.drawer__cta { align-self: flex-start; }

/* ── Rail: a linha de rumo, espinha da página ───────────── */
.rail {
  position: fixed; left: 0; top: 50%; transform: translateY(-50%);
  z-index: 80; width: var(--rail-w);
  padding-left: calc(var(--gut) * .55);
  color: var(--mast-fg, var(--salt));
  transition: color .4s var(--ease);
}
body[data-register="light"] .rail { --mast-fg: var(--ink); }
body[data-register="dark"]  .rail { --mast-fg: var(--salt); }

.rail__line {
  position: absolute; left: calc(var(--gut) * .55 + 3.5px); top: 6px; bottom: 6px;
  width: 1px; background: currentColor; opacity: .22;
}
.rail__fill {
  position: absolute; inset: 0 0 auto; width: 1px; height: 0;
  background: var(--verdigris); opacity: 1;
  transition: height .25s linear;
}
.rail__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1.45rem; }
.rail__list a {
  position: relative; display: flex; align-items: center; gap: .8rem;
  text-decoration: none; color: inherit;
}
.rail__dot {
  width: 8px; height: 8px; flex: none; border-radius: 50%;
  border: 1px solid currentColor; background: var(--bg-solid, transparent);
  opacity: .5;
  transition: background-color .35s var(--ease), border-color .35s var(--ease),
              opacity .35s var(--ease), transform .35s var(--ease);
}
.rail__tag {
  font-family: var(--mono); font-size: .63rem; letter-spacing: .13em;
  text-transform: uppercase; white-space: nowrap;
  opacity: 0; transform: translateX(-6px);
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.rail__list a:hover .rail__tag,
.rail__list a:focus-visible .rail__tag,
.rail__list a.is-active .rail__tag { opacity: .95; transform: none; }
.rail__list a:hover .rail__dot { opacity: 1; transform: scale(1.25); }
.rail__list a.is-active .rail__dot {
  background: var(--verdigris); border-color: var(--verdigris); opacity: 1; transform: scale(1.35);
}

/* ── Herói ──────────────────────────────────────────────── */
.hero {
  position: relative; isolation: isolate;
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
  padding: clamp(7rem, 16vh, 11rem) 0 clamp(1.5rem, 4vh, 2.5rem);
  background: var(--abyss);
  overflow: hidden;
}

/* Assinatura: o percurso mostrado em quatro planos, um de cada vez */
.hero__stage { position: absolute; inset: 0; z-index: -1; overflow: hidden; }

.hero__slide {
  position: absolute; inset: 0; margin: 0;
  opacity: 0; transition: opacity 1.6s var(--ease);
}
.hero__slide.is-on { opacity: 1; }

.hero__slide img {
  width: 100%; height: 100%; object-fit: cover;
  object-position: center 45%;
  filter: saturate(1.04) contrast(1.02);
}

/* Em ecrã largo, o motivo de cada plano puxa-se para a direita,
   longe da coluna de tipografia */
@media (min-width: 961px) {
  .hero__slide[data-slide="0"] img { object-position: 55% 55%; }
  .hero__slide[data-slide="1"] img { object-position: 50% 50%; }
  .hero__slide[data-slide="2"] img { object-position: 64% 50%; }
  .hero__slide[data-slide="3"] img { object-position: 58% 72%; }
}

/* Uma deriva muito lenta, só no plano activo, que acaba parada */
.hero__slide.is-on img { animation: hero-drift 13s var(--ease) forwards; }
@keyframes hero-drift { from { transform: scale(1.055); } to { transform: scale(1); } }

.hero__stage::after {
  content: ""; position: absolute; inset: 0;
  background:
    /* Cama escura só onde a tipografia assenta. Sem ela, um casco branco
       ou água clara por baixo do título deitavam o contraste abaixo. */
    radial-gradient(92% 72% at 20% 50%, rgba(7,20,26,.78) 0%, rgba(7,20,26,.56) 48%, rgba(7,20,26,.10) 86%, rgba(7,20,26,0) 100%),
    linear-gradient(101deg, rgba(7,20,26,.86) 0%, rgba(7,20,26,.50) 34%, rgba(7,20,26,.10) 68%, rgba(7,20,26,.28) 100%),
    linear-gradient(to bottom, rgba(7,20,26,.60) 0%, rgba(7,20,26,0) 24%, rgba(7,20,26,0) 50%, rgba(7,20,26,.86) 100%);
}

.hero__inner {
  position: relative; align-self: center;
  width: min(1280px, 100%); margin-inline: auto;
  padding-inline: var(--gut);
}

.hero__title {
  margin: 0;
  font-family: var(--display); font-weight: 400;
  font-size: var(--t-hero); line-height: .98; letter-spacing: -.028em;
  max-width: 15ch;
}
/* O itálico distingue-se pela forma, não pela cor: sobre fotografia
   qualquer acento colorido acaba por cair num sítio claro e perder-se. */
.hero__title em { font-style: italic; }

.hero__lede {
  margin: clamp(1.5rem, 3vw, 2.2rem) 0 0;
  max-width: 52ch; color: #c3ccca; font-size: clamp(1rem, .95rem + .3vw, 1.16rem);
}

.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: clamp(2rem, 4vw, 3rem); }

/* Leitura de instrumento */
.readout {
  position: relative;
  width: min(1280px, 100%); margin-inline: auto;
  padding-inline: var(--gut);
}
.readout__label {
  margin: 0 0 .8rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  font-family: var(--mono); font-size: .64rem; letter-spacing: .2em;
  text-transform: uppercase; color: var(--slate);
}

/* Indicadores da sequência: quatro traços, como escala de instrumento */
.readout__dots { display: inline-flex; gap: .45rem; flex: none; }
.readout__dot {
  width: 26px; height: 16px; padding: 0; border: 0; background: none;
  display: grid; align-items: center; cursor: pointer;
}
.readout__dot::before {
  content: ""; display: block; height: 2px;
  background: rgba(240,238,232,.26);
  transition: background-color .5s var(--ease);
}
.readout__dot:hover::before { background: rgba(240,238,232,.55); }
.readout__dot.is-on::before { background: var(--verdigris); }
.readout__body {
  display: flex; align-items: center; gap: 1rem;
  border-top: 1px solid rgba(240,238,232,.16);
  padding-top: .95rem;
}
.readout__nav {
  flex: none; width: 34px; height: 34px; border-radius: 50%;
  background: none; border: 1px solid rgba(240,238,232,.28); color: var(--salt);
  cursor: pointer; font-size: .8rem; line-height: 1;
  transition: border-color .3s var(--ease), color .3s var(--ease), background-color .3s var(--ease);
}
.readout__nav:hover { border-color: var(--verdigris); color: var(--verdigris); }
.readout__text { flex: 1 1 auto; min-width: 0; }
.readout__coord {
  margin: 0; font-family: var(--mono); font-size: clamp(.85rem, 2vw, 1.05rem);
  font-weight: 500; letter-spacing: .06em; color: var(--verdigris);
}
.readout__note {
  margin: .25rem 0 0; font-size: .88rem; color: #b7c2c1;
  overflow: hidden; text-overflow: ellipsis;
}
.readout__note b { font-weight: 500; color: var(--salt); }

/* ── Manifesto ──────────────────────────────────────────── */
.manifesto { background: var(--hull); }
.manifesto__claim {
  margin: 0; max-width: 20ch;
  font-family: var(--display); font-weight: 400;
  font-size: var(--t-claim); line-height: 1.08; letter-spacing: -.02em;
  text-wrap: balance;
}
.manifesto__cols {
  display: grid; gap: 1.6rem 3rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 26ch), 1fr));
  max-width: 78ch; margin-top: clamp(2rem, 4vw, 3rem);
}
.manifesto__cols p { margin: 0; color: #b7c2c1; }

.facts {
  list-style: none; margin: clamp(3rem, 6vw, 4.5rem) 0 0; padding: 0;
  display: grid; gap: 1.6rem 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20ch), 1fr));
  border-top: 1px solid var(--rule); padding-top: clamp(1.75rem, 3vw, 2.5rem);
}
.facts li { display: flex; flex-direction: column; gap: .45rem; }
.facts b {
  font-family: var(--mono); font-size: .7rem; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; color: var(--verdigris);
}
.facts span { color: #b7c2c1; font-size: .95rem; }

/* ── Serviços ───────────────────────────────────────────── */
.svc {
  display: grid; gap: clamp(2rem, 3.5vw, 3rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
}
.svc__card { display: flex; flex-direction: column; }
.svc__fig { margin: 0 0 1.6rem; overflow: hidden; border-radius: 2px; background: var(--limestone-2); }
.svc__fig img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  transition: transform 1.1s var(--ease), filter 1.1s var(--ease);
  filter: saturate(.82);
}
.svc__card:hover .svc__fig img { transform: scale(1.045); filter: saturate(1); }

.svc__name {
  margin: 0; font-family: var(--display); font-weight: 400;
  font-size: clamp(1.65rem, 2.5vw, 2.15rem); line-height: 1.1; letter-spacing: -.015em;
}
.svc__claim { margin: .3rem 0 1.25rem; color: var(--verd-deep); font-size: .98rem; }
.svc__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.svc__list li {
  padding: .7rem 0 .7rem 1.15rem; position: relative;
  border-bottom: 1px solid var(--rule);
  font-size: .93rem; color: var(--dim);
}
.svc__list li::before {
  content: ""; position: absolute; left: 0; top: 1.55em;
  width: 5px; height: 1px; background: var(--verd-deep);
}

/* ── Processo (contagem decrescente) ────────────────────── */
.proc { list-style: none; margin: 0; padding: 0; max-width: 66rem; border-top: 1px solid var(--rule); }
.proc__step {
  display: grid; gap: .5rem 2.5rem;
  grid-template-columns: 6.5rem 1fr;
  padding: clamp(1.6rem, 3vw, 2.4rem) 0;
  border-bottom: 1px solid var(--rule);
}
.proc__t {
  margin: 0; font-family: var(--mono); font-size: .95rem; font-weight: 500;
  letter-spacing: .06em; color: var(--verd-deep);
  padding-top: .2rem;
}
.proc__body { max-width: 58ch; }
.proc__body h3 {
  margin: 0 0 .5rem; font-family: var(--display); font-weight: 400;
  font-size: clamp(1.35rem, 2.2vw, 1.85rem); line-height: 1.15; letter-spacing: -.015em;
}
.proc__body p { margin: 0; color: var(--dim); }

/* ── Perguntas ──────────────────────────────────────────── */
.faq__list {
  margin: 0; padding: 0;
  max-width: 74rem;
  border-top: 1px solid var(--rule);
}
.faq__item {
  display: grid; gap: .5rem 3rem;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  padding: clamp(1.5rem, 2.8vw, 2.2rem) 0;
  border-bottom: 1px solid var(--rule);
}
.faq__item dt {
  margin: 0;
  font-family: var(--display); font-weight: 400;
  font-size: clamp(1.2rem, 1.9vw, 1.55rem); line-height: 1.18; letter-spacing: -.012em;
  text-wrap: balance;
}
.faq__item dd { margin: 0; color: var(--dim); font-size: .96rem; }

/* ── Excerto ────────────────────────────────────────────── */
.excerpt { background: var(--hull); }
.excerpt__wrap {
  display: grid; gap: clamp(2.5rem, 5vw, 4.5rem);
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  align-items: start;
}
.excerpt__text .secthead__title { margin-bottom: 0; }

.legs { list-style: none; margin: clamp(2.5rem, 4vw, 3.5rem) 0 0; padding: 0; border-top: 1px solid var(--rule); }
.leg {
  display: grid; gap: .15rem 1.5rem;
  grid-template-columns: 4.2rem 10.5rem 1fr;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--rule);
}
.leg__time, .leg__coord {
  margin: 0; font-family: var(--mono); font-size: .78rem; letter-spacing: .04em;
}
.leg__time { color: var(--verdigris); font-weight: 500; }
.leg__coord { color: var(--slate); }
.leg__body { display: flex; flex-direction: column; gap: .2rem; }
.leg__body b { font-weight: 500; font-size: .95rem; }
.leg__body span { color: #a9b5b4; font-size: .89rem; line-height: 1.55; }

.excerpt__foot {
  margin: 1.75rem 0 0; font-family: var(--mono); font-size: .72rem;
  letter-spacing: .1em; text-transform: uppercase; color: var(--slate);
}

.excerpt__fig { margin: 0; overflow: hidden; border-radius: 2px; position: sticky; top: 7rem; }
.excerpt__fig img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; filter: saturate(.85); }

/* ── Discrição ──────────────────────────────────────────── */
.discretion {
  background: var(--abyss); color: var(--salt);
  padding-block: clamp(3rem, 6vw, 4.5rem);
  border-top: 1px solid rgba(240,238,232,.1);
  border-bottom: 1px solid rgba(240,238,232,.1);
}
.discretion .eyebrow { margin-bottom: 1rem; }
.discretion__text { margin: 0; max-width: 64ch; color: var(--slate); font-size: .96rem; }

/* ── Contacto ───────────────────────────────────────────── */
.contact { position: relative; isolation: isolate; overflow: hidden; }
.contact__media { position: absolute; inset: 0; z-index: -1; }
.contact__media img { width: 100%; height: 100%; object-fit: cover; }
.contact__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(7,20,26,.94) 0%, rgba(7,20,26,.62) 42%, rgba(7,20,26,.78) 72%, rgba(7,20,26,.96) 100%);
}
.contact__wrap {
  display: grid; gap: clamp(2.5rem, 5vw, 5rem);
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: start;
}
.contact__intro .secthead__title { margin-bottom: 0; }

.coords {
  margin: clamp(2.5rem, 4vw, 3.5rem) 0 0;
  display: grid; gap: 1.5rem 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
}
.coords div { display: flex; flex-direction: column; gap: .4rem; }
.coords dt {
  font-family: var(--mono); font-size: .66rem; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase; color: var(--verdigris);
}
.coords dd { margin: 0; font-size: .95rem; color: #c3ccca; line-height: 1.55; }
.coords a { text-decoration: none; border-bottom: 1px solid rgba(111,174,154,.4); }
.coords a:hover { color: var(--verdigris); border-bottom-color: var(--verdigris); }

/* ── Formulário ─────────────────────────────────────────── */
.form {
  position: relative;
  display: grid; gap: 1.35rem 1.25rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  background: rgba(14,31,39,.72);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(240,238,232,.13);
  border-radius: 3px;
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
}
.field { grid-column: 1 / -1; display: flex; flex-direction: column; gap: .5rem; }
.field--half { grid-column: span 1; }

.field label {
  font-family: var(--mono); font-size: .67rem; font-weight: 500;
  letter-spacing: .15em; text-transform: uppercase; color: #a9b5b4;
}
.field__opt { text-transform: none; letter-spacing: .04em; opacity: .65; }

.field input, .field select, .field textarea {
  width: 100%; padding: .8rem .9rem;
  background: rgba(7,20,26,.6);
  border: 1px solid rgba(240,238,232,.18);
  border-radius: 2px;
  color: var(--salt);
  font-family: var(--body); font-size: .97rem; font-weight: 300;
  transition: border-color .3s var(--ease), background-color .3s var(--ease);
}
.field textarea { resize: vertical; min-height: 7rem; line-height: 1.6; }
.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #8fa3a5 50%), linear-gradient(135deg, #8fa3a5 50%, transparent 50%);
  background-position: calc(100% - 18px) 1.35rem, calc(100% - 13px) 1.35rem;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 2.5rem;
}
.field select option { background: var(--hull); color: var(--salt); }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(240,238,232,.32); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--verdigris); background: rgba(7,20,26,.85);
  box-shadow: 0 0 0 3px rgba(111,174,154,.16);
}
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #d98b6a; }

.field__hint { margin: 0; font-size: .82rem; color: var(--slate); }
.field__err { margin: 0; font-family: var(--mono); font-size: .7rem; letter-spacing: .04em; color: #e2a184; }

.field--check {
  flex-direction: row; align-items: flex-start; gap: .75rem; flex-wrap: wrap;
}
.field--check input {
  appearance: none; -webkit-appearance: none;
  width: 18px; height: 18px; flex: none; margin: .18rem 0 0; padding: 0;
  border: 1px solid rgba(240,238,232,.32); border-radius: 2px;
  background: rgba(7,20,26,.6); cursor: pointer;
  display: grid; place-content: center;
  transition: background-color .25s var(--ease), border-color .25s var(--ease);
}
.field--check input::before {
  content: ""; width: 10px; height: 6px;
  border-left: 1.6px solid var(--abyss); border-bottom: 1.6px solid var(--abyss);
  transform: rotate(-45deg) scale(0); transform-origin: center;
  transition: transform .2s var(--ease);
}
.field--check input:checked { background: var(--verdigris); border-color: var(--verdigris); }
.field--check input:checked::before { transform: rotate(-45deg) scale(1); }
.field--check input:hover { border-color: rgba(240,238,232,.55); }
.field--check label {
  flex: 1 1 14rem; font-family: var(--body); font-size: .88rem;
  letter-spacing: 0; text-transform: none; color: #b7c2c1; line-height: 1.55;
}
.field--check .field__err { flex: 1 0 100%; }

.form__submit { grid-column: 1 / -1; justify-self: start; margin-top: .35rem; }
/* Isco para robôs: fora do ecrã, mas não display:none — há robôs que
   ignoram campos escondidos por completo e este apanha-os na mesma. */
.hpot { position: absolute; left: -9999px; top: 0; width: 1px; height: 1px; overflow: hidden; }

.form__status {
  grid-column: 1 / -1; margin: 0;
  font-family: var(--mono); font-size: .74rem; letter-spacing: .06em;
  line-height: 1.5; color: var(--verdigris); min-height: 1.2em;
}
.form__status.is-error { color: #e2a184; }

/* ── Rodapé ─────────────────────────────────────────────── */
.foot {
  background: var(--abyss); color: var(--slate);
  padding-block: clamp(3rem, 5vw, 4rem);
  border-top: 1px solid rgba(240,238,232,.1);
}
.foot__wrap { display: flex; flex-wrap: wrap; align-items: baseline; gap: 1rem 2.5rem; }
.foot__mark {
  margin: 0; color: var(--salt);
  font-family: var(--display); font-size: 1.05rem;
  text-transform: uppercase; letter-spacing: .3em; text-indent: .3em;
}
.foot__line { margin: 0; flex: 1 1 18rem; font-size: .88rem; }
.foot__legal {
  margin: 0; display: flex; flex-wrap: wrap; gap: 1.25rem;
  font-family: var(--mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase;
}
.foot__legal a { text-decoration: none; opacity: .8; }
.foot__legal a:hover { color: var(--verdigris); opacity: 1; }

/* ── Revelação ao scroll ────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(20px); }
.reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}

/* ── Adaptação ──────────────────────────────────────────── */
/* Com o rail visível, o conteúdo afasta-se dele — mas as imagens
   continuam a sangrar de margem a margem, com o rail por cima. */
@media (min-width: 1100px) {
  .wrap, .hero__inner, .readout {
    width: min(calc(1280px + var(--rail-w)), 100%);
    padding-left: calc(var(--gut) + var(--rail-w));
  }
}

@media (max-width: 1099px) {
  .rail { display: none; }
}

@media (max-width: 960px) {
  .excerpt__wrap { grid-template-columns: 1fr; }
  .excerpt__fig { position: static; order: -1; }
  .excerpt__fig img { aspect-ratio: 16 / 10; }
  .contact__wrap { grid-template-columns: 1fr; }
}

@media (max-width: 960px) {
  /* Num ecrã estreito o degradê lateral tapava a imagem inteira.
     Uma janela de luz no alto, e um véu radial só por baixo do texto. */
  .hero__stage::after {
    background:
      radial-gradient(135% 52% at 38% 54%, rgba(7,20,26,.80) 0%, rgba(7,20,26,.52) 58%, rgba(7,20,26,0) 100%),
      linear-gradient(to bottom,
        rgba(7,20,26,.78) 0%, rgba(7,20,26,.16) 15%,
        rgba(7,20,26,.30) 34%, rgba(7,20,26,.84) 66%, rgba(7,20,26,.97) 100%);
  }
}

@media (max-width: 860px) {
  .mainnav, .masthead__cta { display: none; }
  .burger { display: flex; }
  .hero__title { max-width: 100%; }
}

@media (max-width: 760px) {
  .faq__item { grid-template-columns: 1fr; gap: .6rem; }
}

@media (max-width: 620px) {
  .proc__step { grid-template-columns: 1fr; gap: .35rem; }
  .proc__t { padding-top: 0; }
  .leg { grid-template-columns: 4.2rem 1fr; }
  .leg__coord { grid-column: 2; }
  .leg__body { grid-column: 1 / -1; margin-top: .4rem; }
  .field--half { grid-column: 1 / -1; }
  .readout__nav { width: 30px; height: 30px; }
  .form__submit { justify-self: stretch; }
}

@media (max-width: 420px) {
  .readout__label { font-size: .58rem; }
}

/* Ecrãs largos: o herói respira mais */
@media (min-width: 1600px) {
  .hero__title { max-width: 14ch; }
}

/* ── 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;
  }
  .hero__slide.is-on img { animation: none; }
  .reveal { opacity: 1; transform: none; }
  .svc__card:hover .svc__fig img { transform: none; }
}

/* ── Impressão ──────────────────────────────────────────── */
@media print {
  .masthead, .rail, .drawer, .hero__stage, .contact__media, .form { display: none; }
  body { background: #fff; color: #000; }
}

/* ── Páginas de documento (termos, privacidade) ─────────── */
.doc { background: var(--limestone); color: var(--ink); min-height: 100vh; }

.docbar {
  position: sticky; top: 0; z-index: 90;
  display: flex; align-items: center; gap: 1.5rem;
  padding: 1.1rem var(--gut);
  background: rgba(227,228,223,.92);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid rgba(11,26,32,.14);
  color: var(--ink);
}
.docbar .mark { margin-right: auto; }
.docbar__back {
  font-family: var(--mono); font-size: .72rem; letter-spacing: .12em;
  text-transform: uppercase; text-decoration: none; opacity: .72;
  transition: opacity .3s var(--ease), color .3s var(--ease);
}
.docbar__back:hover { opacity: 1; color: var(--verd-deep); }

.doc__wrap {
  width: min(46rem, 100%);
  margin-inline: auto;
  padding: clamp(3rem, 8vw, 6rem) var(--gut) clamp(4rem, 9vw, 7rem);
}

.doc__title {
  margin: 0;
  font-family: var(--display); font-weight: 400;
  font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.03; letter-spacing: -.022em;
}
.doc__meta {
  margin: 1.25rem 0 0;
  font-family: var(--mono); font-size: .68rem; letter-spacing: .14em;
  text-transform: uppercase; color: #5c6f72;
}
.doc__lede {
  margin: 2rem 0 0; font-size: 1.05rem; color: #3d4f52;
  padding-bottom: clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid rgba(11,26,32,.16);
}

.doc__wrap h2 {
  margin: clamp(2.5rem, 5vw, 3.5rem) 0 .9rem;
  font-family: var(--display); font-weight: 400;
  font-size: clamp(1.3rem, 2.4vw, 1.7rem); line-height: 1.15; letter-spacing: -.014em;
}
.doc__wrap h3 {
  margin: 1.8rem 0 .5rem;
  font-family: var(--mono); font-size: .7rem; font-weight: 500;
  letter-spacing: .15em; text-transform: uppercase; color: var(--verd-deep);
}
.doc__wrap p, .doc__wrap li { color: #3d4f52; }
.doc__wrap p { margin: 0 0 1rem; }
.doc__wrap ul { margin: 0 0 1rem; padding-left: 1.15rem; }
.doc__wrap li { margin-bottom: .5rem; }
.doc__wrap a { color: var(--verd-deep); text-decoration-thickness: 1px; text-underline-offset: .2em; }
.doc__wrap strong { font-weight: 500; color: var(--ink); }

.doc__wrap dl { margin: 0 0 1rem; }
.doc__wrap dt {
  font-family: var(--mono); font-size: .72rem; font-weight: 500;
  letter-spacing: .08em; color: var(--ink); margin-top: .9rem;
}
.doc__wrap dd { margin: .15rem 0 0; color: #3d4f52; }

/* Campo por preencher: tem de doer aos olhos até alguém lá pôr o valor certo */
.todo {
  background: #f6e0c8; color: #7a4a1c;
  padding: .05em .4em; border-radius: 2px;
  font-family: var(--mono); font-size: .82em; font-weight: 500;
  box-decoration-break: clone; -webkit-box-decoration-break: clone;
}

.doc__note {
  margin: clamp(2.5rem, 5vw, 3.5rem) 0 0;
  padding: 1.25rem 1.4rem;
  border: 1px solid rgba(11,26,32,.18); border-radius: 3px;
  background: rgba(11,26,32,.03);
  font-size: .92rem; color: #3d4f52;
}
.doc__note p:last-child { margin-bottom: 0; }
