/* Level 20 · site público */

:root {
  --ink: #131a2b;
  --ink-2: #394257;
  --muted: #5f6679;
  --navy-950: #0a1530;
  --navy-900: #10203f;
  --navy: #1f3a6b;
  --navy-700: #2b4a83;
  --sky: #a9c6ea;
  --sky-300: #c7dbf3;
  --sky-100: #e7eff9;
  --white: #ffffff;
  --tint: #f4f7fb;
  --tint-2: #e6edf6;
  --paper: #f7f4ee;
  --line: rgba(19, 26, 43, .1);
  --line-light: rgba(231, 239, 249, .14);
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --nav-h: 76px;
  --nav-h-scrolled: 66px;
  --gutter: clamp(20px, 4vw, 48px);
  --shadow: 0 1px 0 rgba(16, 32, 63, .04), 0 24px 50px -36px rgba(16, 32, 63, .35);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
section[id], main [id] { scroll-margin-top: calc(var(--nav-h) - 8px); }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: fixed; left: 16px; top: -60px; z-index: 100; padding: 10px 16px;
  background: var(--navy); color: #fff; border-radius: 10px; font-weight: 700; text-decoration: none;
  transition: top .2s;
}
.skip:focus { top: 16px; }
:focus-visible { outline: 2px solid var(--navy-700); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }

/* Tipografia */
.eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--navy);
  display: flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ""; width: 28px; height: 1.5px; background: currentColor; opacity: .55; }
.h2 {
  font-family: var(--serif); font-weight: 380; font-size: clamp(2.2rem, 4.6vw, 4rem);
  line-height: 1.04; letter-spacing: -.022em; font-variation-settings: "opsz" 144, "SOFT" 30;
  margin-top: 18px; text-wrap: balance;
}
.h2 em, .hero-title em { font-style: italic; font-variation-settings: "opsz" 144, "SOFT" 100; }
.h2 em { color: var(--navy-700); }
.lead { font-size: 19px; line-height: 1.6; color: var(--ink-2); margin-top: 22px; max-width: 34em; }

/* Botões */
.btn {
  --bh: 48px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--bh); padding: 0 22px; border-radius: 999px; border: 1.5px solid transparent;
  font: 700 15px/1 var(--sans); letter-spacing: .01em; text-decoration: none; cursor: pointer;
  transition: transform .35s var(--ease-out), background-color .25s, color .25s, border-color .25s, box-shadow .35s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; transition: transform .35s var(--ease-out); }
.btn:hover svg { transform: translateX(3px); }
.btn-sm { --bh: 40px; padding: 0 18px; font-size: 14px; }
.btn-lg { --bh: 56px; padding: 0 28px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-700); transform: translateY(-2px); box-shadow: 0 16px 30px -14px rgba(31, 58, 107, .7); }
.btn-ghost { color: var(--navy); border-color: rgba(31, 58, 107, .22); background: rgba(255, 255, 255, .6); }
.btn-ghost:hover { border-color: var(--navy); transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }

/* Marca */
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy-950); }
.brand-emblem { width: 44px; height: 44px; color: currentColor; flex: none; transition: transform .6s var(--ease-out); }
.brand:hover .brand-emblem { transform: rotate(-8deg) scale(1.04); }
.brand-word { display: grid; grid-template-columns: auto auto; align-items: baseline; column-gap: 6px; line-height: 1; }
.brand-level { font-weight: 600; font-size: 22px; letter-spacing: -.02em; }
.brand-word b { font-weight: 800; font-size: 22px; letter-spacing: -.03em; }
.brand-word small { grid-column: 1 / -1; justify-self: end; font-size: 10.5px; font-weight: 600; letter-spacing: .28em; margin-top: 4px; margin-right: -.28em; opacity: .85; }

/* Navegação */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav-h);
  transition: background-color .4s, box-shadow .4s, height .4s;
  color: var(--navy-950);
}
.nav-inner { height: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); display: flex; align-items: center; gap: 28px; }
.nav .brand { color: inherit; margin-right: auto; }
.nav-links { display: flex; gap: 6px; }
.nav-links a {
  position: relative; padding: 8px 12px; font-size: 14.5px; font-weight: 600; text-decoration: none; opacity: .8; transition: opacity .2s; white-space: nowrap;
}
.nav-links a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 1.5px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease-out);
}
.nav-links a:hover, .nav-links a.is-active { opacity: 1; }
.nav-links a:hover::after, .nav-links a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav.is-scrolled {
  --nav-h: var(--nav-h-scrolled);
  background: rgba(255, 255, 255, .86);
  -webkit-backdrop-filter: saturate(1.4) blur(16px); backdrop-filter: saturate(1.4) blur(16px);
  box-shadow: 0 1px 0 var(--line);
}
.nav-toggle {
  display: none; width: 44px; height: 44px; border: 0; background: none; color: inherit; cursor: pointer; position: relative; border-radius: 12px;
}
.nav-toggle i { position: absolute; left: 11px; right: 11px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .4s var(--ease-out), top .4s var(--ease-out); }
.nav-toggle i:first-of-type { top: 17px; }
.nav-toggle i:last-of-type { top: 25px; }
.nav-toggle[aria-expanded="true"] i:first-of-type { top: 21px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] i:last-of-type { top: 21px; transform: rotate(-45deg); }
body.menu-open .nav { background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }

.menu {
  position: fixed; inset: 0; z-index: 40; background: var(--white); color: var(--navy-950);
  display: flex; flex-direction: column; justify-content: center; gap: 40px; padding: 100px var(--gutter) 40px;
  opacity: 0; transition: opacity .4s var(--ease);
  background-image: linear-gradient(rgba(31, 58, 107, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(31, 58, 107, .045) 1px, transparent 1px);
  background-size: 32px 32px;
}
.menu.is-open { opacity: 1; }
.menu nav { display: grid; gap: 4px; }
.menu nav a {
  font-family: var(--serif); font-size: clamp(2rem, 9vw, 3rem); font-weight: 360; text-decoration: none; line-height: 1.25;
  display: flex; align-items: baseline; gap: 16px;
  transform: translateY(16px); opacity: 0; transition: transform .6s var(--ease-out), opacity .6s;
}
.menu nav a span { font: 600 12px var(--sans); letter-spacing: .2em; color: var(--navy-700); }
.menu.is-open nav a { transform: none; opacity: 1; }
.menu.is-open nav a:nth-child(2) { transition-delay: .05s; }
.menu.is-open nav a:nth-child(3) { transition-delay: .1s; }
.menu.is-open nav a:nth-child(4) { transition-delay: .15s; }
.menu.is-open nav a:nth-child(5) { transition-delay: .2s; }

/* Abertura */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center;
  background:
    radial-gradient(900px 640px at 78% 46%, rgba(169, 198, 234, .38), transparent 62%),
    radial-gradient(700px 500px at 0% 100%, rgba(231, 239, 249, .9), transparent 60%),
    var(--white);
  color: var(--ink); overflow: hidden; padding: calc(var(--nav-h) + 40px) 0 90px;
}
.hero-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(31, 58, 107, .075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 58, 107, .075) 1px, transparent 1px),
    linear-gradient(rgba(31, 58, 107, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 58, 107, .035) 1px, transparent 1px);
  background-size: 128px 128px, 128px 128px, 32px 32px, 32px 32px;
  background-position: -1px -1px;
  -webkit-mask-image: radial-gradient(ellipse 80% 75% at 65% 45%, #000 20%, transparent 78%);
  mask-image: radial-gradient(ellipse 80% 75% at 65% 45%, #000 20%, transparent 78%);
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: 40px; }
.hero-title {
  font-family: var(--serif); font-weight: 340; font-size: clamp(3rem, 7.2vw, 6.6rem); line-height: .98;
  letter-spacing: -.035em; margin: 26px 0 0; font-variation-settings: "opsz" 144, "SOFT" 20; color: var(--navy-950);
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.hero-title .line > span { display: inline-block; transition: transform 1.1s var(--ease-out); }
.js:not(.is-loaded) .hero-title .line > span { transform: translateY(105%); }
.hero-title .line:nth-child(2) > span { transition-delay: .09s; }
.hero-title .line:nth-child(3) > span { transition-delay: .18s; }
.hero-title em { color: var(--navy-700); font-weight: 420; padding-right: .04em; }
.hero-lead { margin-top: 28px; font-size: clamp(17px, 1.5vw, 19.5px); line-height: 1.6; color: var(--ink-2); max-width: 31em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-brand { font-size: clamp(4.2rem, 11vw, 9.6rem); line-height: .92; letter-spacing: -.045em; }
.hero-brand em { margin-left: .14em; }
.hero-subjects { list-style: none; padding: 0; margin: 30px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 0; }
.hero-subjects li { display: flex; align-items: center; }
.hero-subjects li + li::before { content: ""; width: 6px; height: 6px; margin: 0 18px; border-radius: 50%; background: var(--sky); box-shadow: 0 0 0 3px rgba(169, 198, 234, .3); }
.hero-subjects button {
  border: 0; background: none; padding: 4px 0; cursor: pointer; color: var(--navy-950);
  font-family: var(--serif); font-size: clamp(1.45rem, 2.6vw, 2.1rem); font-weight: 380; letter-spacing: -.015em;
  background-image: linear-gradient(var(--navy-700), var(--navy-700)); background-size: 0 1.5px; background-repeat: no-repeat; background-position: 0 100%;
  transition: background-size .45s var(--ease-out), color .2s;
}
.hero-subjects button:hover, .hero-subjects button:focus-visible { background-size: 100% 1.5px; color: var(--navy-700); }

.hero-emblem { position: relative; justify-self: center; width: min(100%, 520px); aspect-ratio: 1 / 1.08; display: grid; place-items: start center; }
.hero-glow {
  position: absolute; left: 50%; top: 46%; width: 72%; aspect-ratio: 1; transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(169, 198, 234, .55), rgba(169, 198, 234, 0) 66%); filter: blur(10px);
  transition: opacity 2s var(--ease);
}
.js:not(.is-loaded) .hero-glow { opacity: 0; }
.h-svg { width: 100%; height: auto; color: var(--navy); overflow: visible; transition: transform .8s var(--ease-out); }
.h-orbit { fill: none; stroke: rgba(31, 58, 107, .2); stroke-width: 1; stroke-dasharray: 2 6; transform-origin: 150px 150px; animation: orbit 90s linear infinite; }
@keyframes orbit { to { transform: rotate(360deg); } }
.h-tick { stroke: rgba(31, 58, 107, .14); stroke-width: 3.2; stroke-linecap: round; transition: stroke .3s, filter .3s; }
.h-tick.is-on { stroke: var(--navy-700); filter: drop-shadow(0 0 3px rgba(169, 198, 234, .9)); }
.h-tick[data-v="20"].is-on { stroke: var(--navy); }
.h-svg .e-disc, .h-svg .e-ring, .h-svg .e-grid { transform-origin: 150px 150px; transform-box: view-box; }
.h-svg .e-disc { transition: transform 1.2s var(--ease-out), opacity .8s; }
.h-svg .e-ring { transition: opacity 1s .3s; }
.h-svg .e-grid { transition: opacity 1.4s .4s; }
.h-svg .e-arrow { transition: transform 1.4s .5s var(--ease-out), opacity 1s .5s; }
.h-svg .l-stem { stroke-dasharray: 220; stroke-dashoffset: 0; transition: stroke-dashoffset 2.2s .4s var(--ease); }
.h-svg .l-leaf { transform-box: view-box; transition: transform .7s var(--ease-out), opacity .5s; transition-delay: calc(.55s + var(--i) * .1s); }
.js:not(.is-loaded) .h-svg .e-disc { transform: scale(.86); opacity: 0; }
.js:not(.is-loaded) .h-svg .e-ring, .js:not(.is-loaded) .h-svg .e-grid { opacity: 0; }
.js:not(.is-loaded) .h-svg .e-arrow { transform: translateY(16px); opacity: 0; }
.js:not(.is-loaded) .h-svg .l-stem { stroke-dashoffset: 220; }
.js:not(.is-loaded) .h-svg .l-leaf { transform: scale(0); opacity: 0; }
.hero-emblem.is-done .e-arrow { animation: bob 5s ease-in-out 1s infinite; }
@keyframes bob { 50% { transform: translateY(-4px); } }

.hero-level { margin-top: -2%; display: flex; flex-direction: column; align-items: center; line-height: 1; }
.hero-level-label { font-size: 11px; font-weight: 700; letter-spacing: .34em; text-transform: uppercase; color: var(--muted); margin-right: -.34em; }
.hero-level-num {
  font-family: var(--serif); font-weight: 300; font-size: clamp(3.4rem, 6vw, 5rem); font-variant-numeric: tabular-nums lining-nums;
  margin-top: 6px; color: var(--navy-950); font-variation-settings: "opsz" 144; transition: color .6s, text-shadow .6s;
}
.hero-emblem.is-done .hero-level-num { color: var(--navy-700); text-shadow: 0 0 34px rgba(169, 198, 234, .9); }

.hero-scroll {
  position: absolute; left: 50%; bottom: 26px; width: 26px; height: 42px; margin-left: -13px; border-radius: 14px;
  border: 1.5px solid rgba(31, 58, 107, .25);
}
.hero-scroll span { position: absolute; left: 50%; top: 9px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--navy-700); animation: scrolly 2.2s var(--ease) infinite; }
@keyframes scrolly { 0% { transform: translateY(0); opacity: 0; } 30% { opacity: 1; } 80% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

/* Faixa */
.ticker { background: var(--tint); border-block: 1px solid var(--tint-2); overflow: hidden; padding: 18px 0; }
.ticker-track { display: flex; width: max-content; animation: ticker 60s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker ul { display: flex; list-style: none; margin: 0; padding: 0; }
.ticker li {
  font-family: var(--serif); font-style: italic; font-size: 22px; font-weight: 360; color: var(--navy); white-space: nowrap;
  display: flex; align-items: center; font-variation-settings: "opsz" 48, "SOFT" 100;
}
.ticker li::after { content: ""; width: 7px; height: 7px; margin: 0 28px; border: 1.5px solid var(--navy); border-radius: 50%; opacity: .45; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* Secções */
.section { position: relative; padding: clamp(88px, 12vw, 150px) 0; }
.section-head { max-width: 760px; margin-bottom: clamp(44px, 6vw, 72px); }
/* No computador, cada secção ocupa pelo menos o ecrã abaixo da barra, com o conteúdo ao centro:
   ao escolher uma secção no menu, não se vê nada das outras, seja qual for a altura da janela. */
@media (min-width: 881px) {
  .section { min-height: calc(100vh - var(--nav-h-scrolled)); display: flex; flex-direction: column; justify-content: center; }
}

/* História */
.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.story-body { display: grid; gap: 20px; padding-top: 44px; font-size: 18px; color: var(--ink-2); }
.story-body p:first-child::first-letter {
  font-family: var(--serif); float: left; font-size: 4.1em; line-height: .82; padding: 6px 12px 0 0; color: var(--navy); font-weight: 400;
}
.facts { margin: clamp(56px, 7vw, 88px) 0 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.facts > div { padding: 28px 24px 0 0; }
.facts > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.facts dt { font-family: var(--serif); font-size: clamp(2.2rem, 3.6vw, 3.2rem); font-weight: 340; line-height: 1; letter-spacing: -.03em; color: var(--navy); }
.facts dd { margin: 10px 0 0; color: var(--muted); font-size: 15px; max-width: 16em; }

/* Quem somos: a seguir à história, no mesmo fundo branco, separada por um filete */
.story { padding-bottom: clamp(56px, 7vw, 88px); }
.about { padding-top: 0; }
.about-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; padding-top: clamp(56px, 7vw, 88px); border-top: 1px solid var(--line); }
/* fotografia sem fundo, sobre um fundo azul-claro com a quadrícula da marca */
.about-foto {
  margin: 20px 0 clamp(26px, 3vw, 34px); max-width: 420px; aspect-ratio: 3 / 4; border-radius: 24px; overflow: hidden;
  background:
    linear-gradient(rgba(31, 58, 107, .07) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, rgba(31, 58, 107, .07) 1px, transparent 1px) 0 0 / 28px 28px,
    radial-gradient(110% 75% at 50% 30%, #fff 0%, var(--sky-100) 50%, var(--sky-300) 100%);
  box-shadow: 0 40px 70px -46px rgba(10, 21, 48, .55);
}
.about-foto picture { display: block; height: 100%; }
.about-foto img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center bottom; }
.about-notas { list-style: none; margin: clamp(28px, 4vw, 44px) 0 0; padding: 0; border-top: 1px solid var(--line); }
.about-notas li { display: flex; align-items: baseline; gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.about-notas b { flex: none; min-width: 2.6em; font-family: var(--serif); font-weight: 340; font-size: clamp(2.2rem, 3.4vw, 2.9rem); line-height: 1; letter-spacing: -.03em; color: var(--navy); }
.about-notas small { font-size: .42em; letter-spacing: 0; color: var(--muted); margin-left: 2px; }
.about-notas span { color: var(--muted); font-size: 15px; }
.about-body { display: grid; gap: 20px; padding-top: 44px; font-size: 18px; color: var(--ink-2); }
/* no computador, "Quem somos" cabe numa só vista: a fotografia à esquerda, ajustada à altura da janela, e à direita
   o nome, as notas lado a lado e o texto; no telemóvel fica tudo em coluna, como antes */
@media (min-width: 881px) {
  .about-grid { grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto auto 1fr; grid-template-areas: "rotulo rotulo" "foto nome" "foto notas" "foto texto"; column-gap: clamp(36px, 5vw, 80px); row-gap: 0; }
  .about-head { display: contents; }
  .about-head > .eyebrow { grid-area: rotulo; }
  .about-foto { grid-area: foto; width: min(420px, 32vw, max(260px, calc((100vh - 200px) * .75))); max-width: none; margin: 22px 0 0; }
  .about-head > .h2 { grid-area: nome; margin-top: 22px; font-size: clamp(2.2rem, 3.6vw, 3.4rem); }
  .about-notas { grid-area: notas; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 28px; margin: 20px 0 0; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .about-notas li { flex-direction: column; align-items: flex-start; gap: 6px; padding: 0; border-bottom: 0; }
  .about-notas b { min-width: 0; font-size: clamp(2rem, 2.6vw, 2.5rem); }
  .about-body { grid-area: texto; padding-top: 22px; gap: 16px; font-size: 17px; max-width: 72ch; }
}
/* janelas baixas (portáteis pequenos): menos espaço em branco por cima, para continuar a caber tudo */
@media (min-width: 881px) and (max-height: 780px) {
  .about-grid { padding-top: 36px; }
  .about-head > .h2 { margin-top: 16px; }
  .about-notas { margin-top: 14px; padding: 10px 0; }
  .about-body { padding-top: 16px; gap: 12px; font-size: 16px; }
}

/* Painel de cada disciplina */
.drawer {
  position: fixed; inset: 0 0 0 auto; margin: 0; width: min(540px, 100vw); max-width: 100vw; height: 100%; max-height: 100vh; max-height: 100dvh;
  padding: 0; border: 0; background: var(--white); color: var(--ink); overflow-y: auto; box-shadow: -30px 0 80px -30px rgba(10, 21, 48, .45);
}
.drawer::backdrop { background: rgba(10, 21, 48, .38); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.drawer[open] { animation: drawer-in .5s var(--ease-out); }
.drawer[open]::backdrop { animation: fade-in .4s var(--ease); }
@keyframes drawer-in { from { transform: translateX(40px); opacity: 0; } }
@keyframes fade-in { from { opacity: 0; } }
.drawer-close {
  position: absolute; top: 18px; right: 18px; z-index: 2; width: 42px; height: 42px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; background: rgba(255, 255, 255, .14); color: #fff; transition: background-color .2s;
}
.drawer-close:hover { background: rgba(255, 255, 255, .26); }
.drawer-close svg { width: 20px; height: 20px; }
.drawer-head {
  position: relative; padding: 38px 32px 30px; color: var(--paper);
  background: radial-gradient(120% 80% at 100% 0%, var(--navy-700), var(--navy-950) 70%);
  background-image: linear-gradient(rgba(169, 198, 234, .09) 1px, transparent 1px), linear-gradient(90deg, rgba(169, 198, 234, .09) 1px, transparent 1px), radial-gradient(120% 80% at 100% 0%, var(--navy-700), var(--navy-950) 70%);
  background-size: 24px 24px, 24px 24px, auto;
}
.drawer-head .card-num { color: var(--sky); margin-right: 12px; }
.drawer-head .chip { background: rgba(169, 198, 234, .16); color: var(--sky-100); }
.drawer-head h2 { font-family: var(--serif); font-size: clamp(2.4rem, 6vw, 3.2rem); font-weight: 400; letter-spacing: -.025em; line-height: 1.05; margin-top: 34px; }
.drawer-years { margin-top: 10px; font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: rgba(231, 239, 249, .65); }
.drawer[open] { display: flex; flex-direction: column; }
.drawer-head, .drawer-foot { flex: none; }
.drawer-body { flex: 1 0 auto; padding: 28px 32px 30px; }
.drawer-foot {
  position: sticky; bottom: 0; z-index: 2; padding: 16px 32px calc(18px + env(safe-area-inset-bottom));
  background: var(--white); border-top: 1px solid var(--line); box-shadow: 0 -18px 30px -26px rgba(16, 32, 63, .35);
}
.drawer-lead { font-size: 18px; color: var(--ink-2); }
.drawer-body h3 { font-size: 12px; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; color: var(--navy); margin: 30px 0 4px; }
.drawer-body .card-list { margin-top: 10px; }
.drawer-body .card-tags { margin: 14px 0 0; }
/* ecrãs mais baixos: o painel cabe sem deslizar, com o botão sempre à vista */
@media (max-height: 860px) {
  .drawer-head { padding-top: 30px; padding-bottom: 24px; }
  .drawer-head h2 { margin-top: 22px; font-size: clamp(2.3rem, 5vw, 2.8rem); }
  .drawer-body { padding-top: 22px; padding-bottom: 24px; }
  .drawer-body h3 { margin-top: 22px; }
  .drawer-body .card-list li { padding: 9px 0; }
  .drawer-foot { padding-top: 14px; padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
}

/* Disciplinas */
.subjects { background: var(--tint); }
.subjects::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(31, 58, 107, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(31, 58, 107, .05) 1px, transparent 1px);
  background-size: 32px 32px; -webkit-mask-image: linear-gradient(#000, transparent 50%); mask-image: linear-gradient(#000, transparent 50%);
}
.cards { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@supports (grid-template-rows: subgrid) {
  .cards { grid-template-rows: repeat(5, auto); }
  .cards > .card { display: grid; grid-row: span 5; grid-template-rows: subgrid; row-gap: 0; }
}
.card {
  position: relative; display: flex; flex-direction: column; padding: 30px 30px 26px; border-radius: 24px; overflow: hidden; isolation: isolate;
  background: var(--white); border: 1px solid rgba(31, 58, 107, .1); box-shadow: var(--shadow);
  transition: transform .6s var(--ease-out), box-shadow .6s var(--ease-out), color .5s, border-color .5s;
}
.card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background:
    linear-gradient(rgba(169, 198, 234, .09) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, rgba(169, 198, 234, .09) 1px, transparent 1px) 0 0 / 24px 24px,
    radial-gradient(120% 80% at 100% 0%, var(--navy-700), var(--navy-950) 70%);
  clip-path: circle(0% at 90% 8%); transition: clip-path .8s var(--ease-out);
}
.card:hover { transform: translateY(-8px); box-shadow: 0 40px 70px -40px rgba(10, 21, 48, .6); color: var(--paper); border-color: transparent; }
.card:hover::before { clip-path: circle(150% at 90% 8%); }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card-num { font-family: var(--serif); font-size: 15px; font-weight: 500; letter-spacing: .1em; color: var(--navy-700); transition: color .5s; }
.chip {
  font-size: 12px; font-weight: 700; letter-spacing: .04em; padding: 6px 12px; border-radius: 999px;
  background: var(--sky-100); color: var(--navy); transition: background-color .5s, color .5s;
}
.card h3 {
  font-family: var(--serif); font-size: clamp(2rem, 3vw, 2.6rem); font-weight: 400; letter-spacing: -.025em; line-height: 1.05; margin: 54px 0 14px;
  font-variation-settings: "opsz" 144;
}
.card-desc { color: var(--ink-2); font-size: 16px; transition: color .5s; }
.card-list { list-style: none; margin: 22px 0 0; padding: 0; border-top: 1px solid var(--line); transition: border-color .5s; }
.card-list li { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-weight: 600; font-size: 15px; transition: border-color .5s; }
.card-list li::before { content: ""; flex: none; width: 14px; height: 14px; background: currentColor; opacity: .7;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' d='M12 19V5M6 11l6-6 6 6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' d='M12 19V5M6 11l6-6 6 6'/%3E%3C/svg%3E") center / contain no-repeat;
}
.card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 22px 0 26px; }
.card-tags span {
  font-family: var(--serif); font-style: italic; font-size: 14.5px; padding: 4px 11px; border-radius: 999px;
  border: 1px solid rgba(31, 58, 107, .18); color: var(--navy); transition: border-color .5s, color .5s;
}
.card-open { all: unset; cursor: pointer; }
.card-open::after { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: 1; }
.card-open:focus-visible::after { outline: 2px solid var(--navy-700); outline-offset: -4px; }
.card-more { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font-size: 14px; font-weight: 800; color: var(--navy-700); transition: color .5s; }
.card-more svg { width: 18px; height: 18px; transition: transform .4s var(--ease-out); }
.card:hover .card-more { color: var(--sky); }
.card:hover .card-more svg { transform: translateX(4px); }
.card-years { margin-top: 22px; font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); transition: color .5s; }
.card:hover .card-num, .card:hover .card-tags span { color: var(--sky); }
.card:hover .chip { background: rgba(169, 198, 234, .16); color: var(--sky-100); }
.card:hover .card-desc { color: rgba(247, 244, 238, .78); }
.card:hover .card-list, .card:hover .card-list li { border-color: var(--line-light); }
.card:hover .card-tags span { border-color: rgba(169, 198, 234, .3); }
.card:hover .card-years { color: rgba(231, 239, 249, .6); }

/* Método: degraus que sobem */
.stairs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; align-items: end; }
.stairs li {
  position: relative; padding: 24px 22px 26px; border-radius: 22px; background: var(--white);
  border: 1px solid rgba(31, 58, 107, .12); box-shadow: var(--shadow);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.stairs li:hover { transform: translateY(-6px); box-shadow: 0 1px 0 rgba(16, 32, 63, .04), 0 34px 60px -36px rgba(16, 32, 63, .5); }
.stairs li:nth-child(2) { margin-bottom: 36px; }
.stairs li:nth-child(3) { margin-bottom: 72px; }
.stairs li:nth-child(4) { margin-bottom: 108px; }
.stairs li:nth-child(5) { margin-bottom: 144px; background: var(--navy-950); color: var(--paper); border-color: var(--navy-950);
  background-image: radial-gradient(260px 200px at 100% 0%, rgba(43, 74, 131, .9), transparent 70%), linear-gradient(rgba(169, 198, 234, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(169, 198, 234, .07) 1px, transparent 1px);
  background-size: auto, 22px 22px, 22px 22px; }
.stairs li:nth-child(5) .step-n { background: var(--sky); color: var(--navy-950); }
.stairs li:nth-child(5) p { color: rgba(247, 244, 238, .75); }
.stairs li::after {
  content: ""; position: absolute; left: 22px; right: 22px; bottom: -14px; height: 3px; border-radius: 3px; background: var(--tint-2);
}
.step-n {
  display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; background: var(--navy); color: #fff;
  font-family: var(--serif); font-size: 16px; font-weight: 500; letter-spacing: .02em;
}
.stairs h3 { font-family: var(--serif); font-size: 21px; font-weight: 440; letter-spacing: -.01em; line-height: 1.2; margin: 18px 0 8px; }
.stairs p { color: var(--muted); font-size: 15px; }
.stairs p strong { color: var(--navy); font-weight: 700; }

/* Acompanhamento */
.tracking { overflow: hidden; background: var(--tint); }
.tracking-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.feature-list { list-style: none; padding: 0; margin: 38px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 28px 32px; }
.feature-list li { padding-top: 18px; border-top: 1.5px solid var(--navy); }
.feature-list h3 { font-family: var(--serif); font-size: 21px; font-weight: 450; letter-spacing: -.01em; }
.feature-list p { margin-top: 6px; color: var(--muted); font-size: 15px; }

.docs { position: relative; height: clamp(420px, 46vw, 560px); perspective: 1600px; }
.doc {
  position: absolute; left: 50%; top: 50%; width: min(330px, 66%); aspect-ratio: 1 / 1.414; padding: 16px 16px 14px;
  background: #fff; border-radius: 6px; box-shadow: 0 1px 0 rgba(16, 32, 63, .06), 0 30px 60px -28px rgba(16, 32, 63, .4);
  transition: transform 1.1s var(--ease-out); font-family: var(--sans); color: var(--navy); overflow: hidden;
}
.doc-1 { transform: translate(-50%, -50%) rotate(-1deg); z-index: 3; }
.doc-2 { transform: translate(-50%, -50%) rotate(2deg); z-index: 2; }
.doc-3 { transform: translate(-50%, -50%) rotate(-3deg); z-index: 1; }
.docs.is-in .doc-1 { transform: translate(-22%, -46%) rotate(5deg); }
.docs.is-in .doc-2 { transform: translate(-56%, -52%) rotate(-2deg); }
.docs.is-in .doc-3 { transform: translate(-94%, -57%) rotate(-9deg); }
.docs.is-in:hover .doc-1 { transform: translate(-14%, -44%) rotate(8deg); }
.docs.is-in:hover .doc-3 { transform: translate(-102%, -58%) rotate(-12deg); }
.doc-head { background: var(--navy); color: #fff; padding: 11px 12px; border-radius: 2px; }
.doc-head b { display: block; font-size: 12.5px; font-weight: 800; letter-spacing: .02em; }
.doc-sec { margin: 14px 0 7px; padding-bottom: 4px; border-bottom: 1px solid var(--navy); }
.doc-sec i { display: block; width: 38%; height: 5px; border-radius: 2px; background: var(--navy); opacity: .75; }
.doc-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; margin-top: 12px; }
.doc-fields-4 { grid-template-columns: repeat(4, 1fr); }
.doc-fields i, .doc-lines i { display: block; height: 10px; border-bottom: 1px solid #c9ced8; }
.doc-lines { display: grid; gap: 5px; }
.doc-box { background: #f1ece3; height: 58px; border-radius: 2px; }
.doc-table b { display: block; height: 11px; background: var(--navy); border-radius: 1px; }
.doc-table i { display: block; height: 12px; border-bottom: 1px solid #c9ced8; }
.doc-steps { display: grid; }
.doc-steps span { display: grid; grid-template-columns: 26px 1fr; gap: 8px; align-items: center; padding: 5px 0; border-bottom: 1px solid #dfe3ea; }
.doc-steps b { height: 9px; background: #f1ece3; border-radius: 1px; }
.doc-steps i { height: 4px; width: 70%; background: #d7dce6; border-radius: 2px; }
.doc-steps span:nth-child(2n) i { width: 52%; }
.doc-chart { margin: 14px 0 10px; }
.doc-chart svg { width: 100%; height: auto; overflow: visible; }
.dc-goal { stroke: var(--sky); stroke-width: 1.4; stroke-dasharray: 4 3; }
.dc-grid { stroke: #e3e7ee; stroke-width: 1; }
.dc-line { fill: none; stroke: var(--navy); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 220; stroke-dashoffset: 220; transition: stroke-dashoffset 1.8s .5s var(--ease-out); }
.doc-chart circle { fill: #fff; stroke: var(--navy); stroke-width: 1.6; }
.docs.is-in .dc-line { stroke-dashoffset: 0; }

/* Perguntas */
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.faq-note { margin-top: 22px; color: var(--muted); }
.faq-note a { color: var(--navy); font-weight: 700; text-underline-offset: 4px; }
.faq-list { border-top: 1px solid rgba(31, 58, 107, .2); }
.faq-list details { border-bottom: 1px solid rgba(31, 58, 107, .2); }
.faq-list summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 24px 0; font-family: var(--serif); font-size: clamp(1.15rem, 1.8vw, 1.4rem); font-weight: 420; letter-spacing: -.01em;
  -webkit-tap-highlight-color: transparent;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: ""; flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid rgba(31, 58, 107, .3);
  background:
    linear-gradient(var(--navy), var(--navy)) center / 12px 1.6px no-repeat,
    linear-gradient(var(--navy), var(--navy)) center / 1.6px 12px no-repeat;
  transition: transform .45s var(--ease-out), background-color .3s;
}
.faq-list details[open] summary::after { transform: rotate(45deg); background-color: var(--sky); border-color: var(--sky); }
.faq-list details p { padding: 0 64px 26px 0; color: var(--ink-2); }
.faq-list summary:hover { color: var(--navy-700); }

/* Contactos */
.contact { background: var(--tint); overflow: hidden; }
.contact-grid-bg { -webkit-mask-image: radial-gradient(ellipse 70% 80% at 20% 30%, #000 10%, transparent 75%); mask-image: radial-gradient(ellipse 70% 80% at 20% 30%, #000 10%, transparent 75%); }
.contact-grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.contact-grid:has(> form[hidden]) { grid-template-columns: 1fr; }
.contact-grid:has(> form[hidden]) .channels { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 820px; }
.channels { display: grid; gap: 12px; margin-top: 40px; max-width: 520px; }
.channel {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; padding: 16px 20px 16px 16px;
  border-radius: 20px; border: 1px solid rgba(31, 58, 107, .12); background: var(--white); text-decoration: none; box-shadow: var(--shadow);
  transition: background-color .35s, border-color .35s, transform .5s var(--ease-out);
}
.channel:hover { border-color: var(--navy); transform: translateY(-3px); }
.channel-icon { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; background: var(--navy); color: #fff; }
.channel-icon svg { width: 25px; height: 25px; }
.channel-text { display: grid; gap: 2px; min-width: 0; }
.channel-text small { font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.channel-text b { font-family: var(--serif); font-size: clamp(1.2rem, 2vw, 1.5rem); font-weight: 400; letter-spacing: -.005em; line-height: 1.25; overflow-wrap: anywhere; }
.channel-go { width: 22px; height: 22px; color: var(--navy); transition: transform .4s var(--ease-out); }
.channel:hover .channel-go { transform: translateX(4px); }

.request {
  padding: clamp(24px, 3vw, 36px); border-radius: 28px; background: var(--white); color: var(--ink);
  border: 1px solid rgba(31, 58, 107, .1); box-shadow: 0 50px 90px -60px rgba(16, 32, 63, .55);
}
.request h3 { font-family: var(--serif); font-size: 28px; font-weight: 420; letter-spacing: -.015em; }
.request-sub { color: var(--muted); font-size: 15px; margin-top: 4px; }
.field { display: grid; gap: 8px; margin: 20px 0 0; padding: 0; border: 0; min-width: 0; }
.field > span, .field > legend { font-size: 11.5px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--navy); padding: 0; }
.field > span em { font-style: normal; font-weight: 600; letter-spacing: .06em; text-transform: none; color: var(--muted); }
.field legend { margin-bottom: 8px; }
.field input[type="text"], .field textarea {
  width: 100%; font: 500 16px/1.4 var(--sans); color: var(--ink); background: var(--tint);
  border: 1.5px solid rgba(31, 58, 107, .14); border-radius: 14px; padding: 13px 15px; transition: border-color .2s, box-shadow .2s; resize: vertical;
}
.field input[type="text"]:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(169, 198, 234, .45); }
.field.has-error input { border-color: #b3261e; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span {
  display: inline-flex; align-items: center; height: 42px; padding: 0 16px; border-radius: 999px; border: 1.5px solid rgba(31, 58, 107, .18);
  font-weight: 700; font-size: 14.5px; color: var(--navy); background: var(--white); transition: background-color .2s, color .2s, border-color .2s;
}
.seg input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.seg input:focus-visible + span { box-shadow: 0 0 0 4px rgba(169, 198, 234, .6); }
.seg-multi input:checked + span::before { content: ""; width: 12px; height: 12px; margin-right: 8px; background: var(--sky);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round' d='M4 12.5l5 5L20 6.5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round' d='M4 12.5l5 5L20 6.5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.request-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
/* disponibilidade e mensagem: duas caixas iguais, com três linhas à vista; o resto desliza dentro da caixa */
.request-grid textarea { height: calc(4.2em + 29px); resize: none; overflow-y: auto; }
/* os nomes ficam alinhados em cima e cada caixa cresce para baixo */
.request-grid:has(textarea) { grid-template-rows: auto auto; }
.request-grid:has(textarea) > .field { grid-row: span 2; grid-template-rows: subgrid; align-content: normal; }
.request-grid .field { align-content: end; }
.field input[type="tel"], .field input[type="email"] {
  width: 100%; font: 500 16px/1.4 var(--sans); color: var(--ink); background: var(--tint);
  border: 1.5px solid rgba(31, 58, 107, .14); border-radius: 14px; padding: 13px 15px; transition: border-color .2s, box-shadow .2s;
}
.field input[type="tel"]:focus, .field input[type="email"]:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(169, 198, 234, .45); }
.field.has-error input { border-color: #b3261e; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.request { position: relative; }
.request-note { margin-top: 12px; font-size: 13px; color: var(--muted); text-align: center; }
.request-done-t { font-family: var(--serif); font-size: 24px; font-weight: 420; color: var(--navy); margin-bottom: 6px; }
.request.is-sent > :not([data-request-done]) { display: none; }
.request.is-sent .request-done { margin-top: 0; padding: 28px 24px; text-align: center; }
.btn[disabled] { opacity: .6; pointer-events: none; }
.request-done { margin-top: 16px; padding: 16px; border-radius: 16px; background: var(--sky-100); }
.request-done p { font-size: 14.5px; color: var(--navy); }
.request-done textarea { width: 100%; margin-top: 10px; font: 500 13.5px/1.5 var(--sans); color: var(--ink-2); background: var(--white); border: 1px solid var(--tint-2); border-radius: 10px; padding: 10px 12px; resize: none; }
.request-done .btn { margin-top: 8px; }
.request-error { min-height: 22px; margin: 16px 0 8px; color: #b3261e; font-size: 14.5px; font-weight: 600; }
.request .btn svg { width: 20px; height: 20px; }
.request .btn:hover svg { transform: none; }

.facts-contact { position: relative; grid-template-columns: repeat(4, 1fr); margin-top: clamp(56px, 7vw, 80px); }
.facts-contact dt { font-size: clamp(1.9rem, 3vw, 2.6rem); white-space: nowrap; }

/* Rodapé */
.footer { background: var(--navy-950); color: rgba(247, 244, 238, .7); padding: 64px 0 28px; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer .brand { color: var(--paper); }
.footer-brand p { margin-top: 18px; max-width: 26em; font-size: 15px; }
.footer-nav, .footer-contact { display: grid; gap: 10px; align-content: start; font-size: 15px; }
.footer a { text-decoration: none; transition: color .2s; }
.footer-nav a:hover, .footer-contact a:hover, .footer-base a:hover { color: var(--sky); }
.footer-base { display: flex; justify-content: space-between; gap: 20px; margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--line-light); font-size: 13.5px; }

/* Botão flutuante */
.float-wa {
  position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 45; width: 58px; height: 58px; border-radius: 50%;
  display: none; place-items: center; background: var(--navy); color: #fff; box-shadow: 0 18px 34px -12px rgba(10, 21, 48, .55);
  transform: translateY(120px); transition: transform .6s var(--ease-out);
}
.float-wa svg { width: 28px; height: 28px; }
.float-wa.is-visible { transform: none; }

/* Ecrã largo: cada secção cabe inteira num ecrã ao carregar no menu */
@media (min-width: 1081px) {
  .method .section-head { max-width: none; margin-bottom: 48px; }
  .faq-list summary { padding: 19px 0; }
  .contact-grid { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(40px, 5vw, 72px); }
  .contact .h2 { font-size: clamp(2.2rem, 3.4vw, 3.1rem); }
  .contact .lead { font-size: 17px; margin-top: 18px; }
  .channels { margin-top: 28px; gap: 10px; }
  .channel { padding: 12px 18px 12px 12px; }
  .channel-icon { width: 46px; height: 46px; border-radius: 13px; }
  .channel-text b { font-size: 1.25rem; }
  /* formulário em duas colunas, com as opções ao lado do nome de cada pergunta */
  .request { padding: 26px 28px 24px; }
  .request h3 { font-size: 24px; }
  .request-sub { font-size: 13.5px; }
  .request .field { margin-top: 12px; gap: 6px; }
  .request .field > input, .request .field > textarea { padding: 11px 14px; }
  .request-grid textarea { height: calc(4.2em + 25px); }
  .request fieldset.field { display: block; margin-top: 10px; }
  .request fieldset.field legend { float: left; width: 128px; min-height: 38px; display: flex; align-items: center; margin: 0 12px 0 0; }
  .request .seg span { height: 38px; padding: 0 14px; font-size: 14px; }
  .request-error:empty { min-height: 0; margin: 8px 0 0; }
  .request-actions { display: flex; flex-direction: row-reverse; align-items: center; gap: 18px; margin-top: 4px; }
  .request-actions .btn-block { width: auto; flex: none; padding-inline: 28px; }
  .request-actions .request-note { flex: 1; margin: 0; text-align: left; }
}
/* portáteis: um pouco mais compacto */
@media (min-width: 1081px) and (max-height: 820px) {
  .h2 { font-size: clamp(2.2rem, 3.8vw, 3.4rem); }
  .section-head { margin-bottom: 40px; }
  .stairs li { padding: 20px 20px 22px; }
  .stairs h3 { margin: 14px 0 6px; }
  .stairs li:nth-child(2) { margin-bottom: 28px; }
  .stairs li:nth-child(3) { margin-bottom: 56px; }
  .stairs li:nth-child(4) { margin-bottom: 84px; }
  .stairs li:nth-child(5) { margin-bottom: 112px; }
  .card { padding: 26px 26px 22px; }
  .faq-list summary { padding: 16px 0; }
  .request { padding: 22px 28px 20px; }
  .request .field { margin-top: 10px; }
  .request fieldset.field { margin-top: 8px; }
}
/* portáteis com pouca altura (por exemplo, 1366 × 768 com a barra do navegador) */
@media (min-width: 1081px) and (max-height: 700px) {
  .h2, .contact .h2 { font-size: clamp(2rem, 3.2vw, 2.8rem); margin-top: 14px; }
  .section-head { margin-bottom: 30px; }
  .card h3 { margin-top: 30px; }
  .card-years { margin-top: 16px; }
  .stairs li:nth-child(2) { margin-bottom: 20px; }
  .stairs li:nth-child(3) { margin-bottom: 40px; }
  .stairs li:nth-child(4) { margin-bottom: 60px; }
  .stairs li:nth-child(5) { margin-bottom: 80px; }
  .faq-list summary { padding: 13px 0; }
  .contact .lead { margin-top: 14px; }
  .channels { margin-top: 22px; }
  .request { padding: 16px 24px 14px; }
  .request h3 { font-size: 21px; }
  .request-sub { margin-top: 2px; }
  .request .field { margin-top: 7px; gap: 5px; }
  .request .field > input, .request .field > textarea { padding: 9px 13px; }
  .request-grid textarea { height: calc(4.2em + 21px); }
  .request fieldset.field { margin-top: 6px; }
  .request fieldset.field legend { min-height: 33px; }
  .request .seg span { height: 33px; }
  .request-error:empty { margin-top: 6px; }
  .request-actions { margin-top: 2px; }
  .request-actions .btn { --bh: 48px; }
}

/* Revelação ao deslizar */
.reveal { transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out), filter 1s var(--ease-out); transition-delay: var(--d, 0s); }
.js .reveal:not(.is-in) { opacity: 0; transform: translateY(26px); filter: blur(6px); }

/* Responsivo */
@media (max-width: 1180px) {
  .nav-inner { gap: 20px; }
  .nav-links { gap: 2px; }
  .nav-links a { padding: 8px 9px; }
  .nav-links a::after { left: 9px; right: 9px; }
}
@media (max-width: 1080px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-cta { display: none; }
  .cards { grid-template-columns: 1fr; max-width: 640px; }
  .card h3 { margin-top: 34px; }
  .float-wa { display: grid; }
  .stairs { grid-template-columns: 1fr 1fr; align-items: stretch; gap: 26px 16px; }
  .facts-contact { grid-template-columns: 1fr 1fr; }
  .facts-contact > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .facts-contact > div:nth-child(n+3) { border-top: 1px solid var(--line); margin-top: 24px; }
  .stairs li { margin-bottom: 0 !important; }
  .stairs li:nth-child(5) { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  :root { --nav-h: 68px; }
  .hero { padding-top: calc(var(--nav-h) + 24px); align-items: flex-start; }
  .hero-inner { grid-template-columns: 1fr; gap: 10px; }
  .hero-emblem { order: -1; width: min(66vw, 300px); margin: 0 auto 26px; }
  .hero-level { flex-direction: row; gap: 12px; align-items: baseline; margin-top: -4%; }
  .hero-level-num { font-size: 3rem; margin: 0; }
  .hero-scroll { display: none; }
  .story-grid, .about-grid, .tracking-grid, .faq-grid, .contact-grid { grid-template-columns: 1fr; }
  .story-body, .about-body { padding-top: 0; }
  .tracking-grid .docs { order: -1; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .brand-emblem { width: 38px; height: 38px; }
  .brand-level, .brand-word b { font-size: 19px; }
  .brand-word small { font-size: 9.5px; }
  .hero-title { font-size: clamp(2.7rem, 13vw, 3.6rem); margin-top: 18px; }
  .hero-actions .btn { width: 100%; }
  .hero-subjects { margin-top: 34px; gap: 10px 20px; }
  .facts, .facts-contact { grid-template-columns: 1fr; }
  .facts > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); margin-top: 24px; }
  .stairs { grid-template-columns: 1fr; }
  .request-grid { grid-template-columns: 1fr; }
  .hero-brand { font-size: clamp(4rem, 21vw, 5.6rem); }
  .hero-subjects { display: grid; gap: 2px; margin-top: 22px; }
  .hero-subjects li + li::before { display: none; }
  .drawer { width: 100vw; }
  .drawer-head, .drawer-body, .drawer-foot { padding-left: 22px; padding-right: 22px; }
  .stairs li:nth-child(5) { grid-column: auto; }
  .feature-list { grid-template-columns: 1fr; gap: 20px; }
  .docs { height: 380px; }
  .doc { width: 60%; padding: 10px; }
  .doc-head b { font-size: 9px; }
  .doc-sec { margin: 9px 0 4px; }
  .doc-box { height: 40px; }
  .doc-steps span { padding: 3px 0; }
  .docs.is-in .doc-1 { transform: translate(-28%, -46%) rotate(4deg); }
  .docs.is-in .doc-3 { transform: translate(-80%, -56%) rotate(-8deg); }
  .faq-list details p { padding-right: 0; }
  .contact-grid:has(> form[hidden]) .channels { grid-template-columns: 1fr; }
  .channel { padding: 12px 14px 12px 12px; gap: 14px; }
  .channel-icon { width: 46px; height: 46px; border-radius: 13px; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-base { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .reveal:not(.is-in) { opacity: 1; transform: none; filter: none; }
  .ticker-track { animation: none; }
}

/* Abertura no telemóvel: tudo centrado, letra mais pequena */
@media (max-width: 900px) {
  .hero-copy { text-align: center; }
  .hero-copy .eyebrow { justify-content: center; }
  .hero-copy .eyebrow::after { content: ""; width: 28px; height: 1.5px; background: currentColor; opacity: .55; }
  .hero-subjects { justify-content: center; }
  .hero-actions { justify-content: center; }
}
@media (max-width: 600px) {
  .hero-copy .eyebrow { font-size: 10.5px; letter-spacing: .2em; gap: 10px; }
  .hero-copy .eyebrow::before, .hero-copy .eyebrow::after { width: 18px; }
  .hero-brand { font-size: clamp(3.1rem, 15.5vw, 4.1rem); margin-top: 14px; }
  .hero-subjects { justify-items: center; gap: 0; margin-top: 16px; }
  .hero-subjects button { font-size: 1.22rem; padding: 3px 0; }
  .hero-actions { margin-top: 26px; }
  .hero-actions .btn { --bh: 52px; font-size: 15px; }
}
