/* ==========================================================
   Página de entrada: composta como uma folha de desenho
   (moldura fina, marcas de corte e carimbo/legenda)
   ========================================================== */

.landing {
  min-height: 100vh;
  min-height: 100dvh;
  padding: clamp(12px, 2.2vw, 28px);
  display: flex;
}

.sheet {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--rule);
  background: var(--paper);
  min-height: calc(100dvh - 2 * clamp(12px, 2.2vw, 28px));
}

/* marcas de corte: pequenos traços para fora dos cantos */
.crop { position: absolute; width: 14px; height: 14px; pointer-events: none; }
.crop::before, .crop::after { content: ""; position: absolute; background: var(--rule); }
.crop::before { width: 10px; height: 1px; }
.crop::after { width: 1px; height: 10px; }
.crop.tl { top: -15px; left: -15px; }
.crop.tl::before { top: 14px; left: 0; } .crop.tl::after { top: 0; left: 14px; }
.crop.tr { top: -15px; right: -15px; }
.crop.tr::before { top: 14px; right: 0; } .crop.tr::after { top: 0; right: 14px; }
.crop.bl { bottom: -15px; left: -15px; }
.crop.bl::before { bottom: 14px; left: 0; } .crop.bl::after { bottom: 0; left: 14px; }
.crop.br { bottom: -15px; right: -15px; }
.crop.br::before { bottom: 14px; right: 0; } .crop.br::after { bottom: 0; right: 14px; }

/* ---------- cabeçalho da folha ---------- */
.sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(20px, 3vw, 40px);
  border-bottom: 1px solid var(--hair);
}
.mono {
  font-family: var(--serif);
  font-size: 19px;
  letter-spacing: .06em;
  line-height: 1;
}

/* ---------- conteúdo ---------- */
.intro {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
  gap: clamp(32px, 6vw, 96px);
  padding: clamp(40px, 6vw, 88px) clamp(20px, 6vw, 96px);
  max-width: 1320px;
  width: 100%;
  margin: 0 auto;
}

.portrait {
  position: relative;
  margin: 0;
  justify-self: end;
  width: min(100%, 340px);
  aspect-ratio: 1;
}
.portrait img {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  filter: saturate(.92);
}
/* círculo fino deslocado, como um traço de compasso */
.portrait-ring {
  position: absolute;
  inset: -14px -14px -14px -14px;
  border-radius: 50%;
  border: 1px solid var(--hair);
}
.portrait-ring::after {
  /* pequena cruz de centro */
  content: "";
  position: absolute;
  left: 50%; top: -22px;
  width: 1px; height: 14px;
  background: var(--rule);
}

.content { max-width: 600px; }

.name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(44px, 6.2vw, 84px);
  line-height: .98;
  letter-spacing: -.012em;
  margin: 0 0 clamp(28px, 4vw, 44px);
}

.block {
  border-top: 1px solid var(--rule);
  padding-top: 14px;
  margin-bottom: clamp(22px, 3vw, 32px);
}
.block h2 { margin: 3px 0 8px; }
.block p { margin: 0; }

.degree { font-size: 16px; line-height: 1.5; text-wrap: balance; }
.degree span { display: block; color: var(--grey-text); }

/* declaração pessoal: serifada, como o nome, para se distinguir dos dados factuais */
.statement {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 19.5px;
  line-height: 1.55;
  color: var(--ink-soft);
  hyphens: auto;
  text-wrap: pretty;
}

/* ---------- ações ---------- */
.actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: clamp(28px, 4vw, 44px);
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  height: 56px;
  padding: 0 26px 0 28px;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .18em;
  text-transform: uppercase;
  border-radius: 1px;
  transition: background var(--t) var(--ease);
}
.cta:hover { background: #000; }
.cta-arrow { width: 44px; height: 20px; stroke-width: 1.2; transition: transform var(--t) var(--ease); }
.cta:hover .cta-arrow { transform: translateX(6px); }

.contacts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 8px;
}
.contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 72px;
  padding: 8px 0 6px;
  text-decoration: none;
  color: var(--ink);
  border-radius: 2px;
  transition: background var(--t-fast) var(--ease);
}
.contact svg { width: 22px; height: 22px; }
.contact .label { font-size: 10px; transition: color var(--t-fast); }
.contact:hover { background: var(--paper-deep); }
.contact:hover .label { color: var(--ink); }
.contact[aria-disabled="true"] { opacity: .35; cursor: not-allowed; }

/* ---------- entrada suave ---------- */
.reveal {
  opacity: 0;
  transform: translateY(10px);
  animation: reveal var(--t-slow) var(--ease) forwards;
  animation-delay: calc(var(--d, 0) * 90ms + 80ms);
}
@keyframes reveal { to { opacity: 1; transform: none; } }

/* ---------- tablet e telemóvel ---------- */
@media (max-width: 900px) {
  .intro {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 36px;
    padding-top: 48px;
  }
  .portrait { justify-self: center; width: min(52vw, 240px); }
  .content { max-width: 560px; display: flex; flex-direction: column; }
  /* no ecrã pequeno, a ação principal sobe para logo a seguir ao nome */
  .actions { order: 1; margin: 0 0 40px; }
  .block { order: 2; }
  .block { text-align: left; }
  .actions { flex-direction: column; align-items: stretch; }
  .cta { justify-content: space-between; }
  .contacts { justify-content: center; }
}

@media (max-width: 560px) {
  .sheet-head { padding: 14px 18px; }
  .intro { padding: 36px 18px 32px; gap: 30px; }
  .portrait { width: min(48vw, 188px); }
  .portrait-ring { inset: -10px; }
  .name { font-size: 46px; }
  .degree { font-size: 15.5px; }
  .statement { font-size: 18px; }
  .crop { display: none; }
}
