/* Contacto: frase grande, email gigante com "rolo" de letras, foto que segue o rato, relógio de Lisboa e tira de fotografias em movimento contínuo. */
.page { position: relative; padding: var(--pad); padding-bottom: calc(var(--pad) * 3 + 14px); min-height: 100svh; overflow-x: clip; }
.lead { margin: var(--s8) 0 0; max-width: 24ch; font-stretch: 100%; font-weight: 800; font-size: clamp(26px, 4.4vw, 76px); line-height: 1.02; letter-spacing: -0.015em; text-transform: uppercase; text-align: left; transition: font-size var(--dur-l) var(--curve), max-width var(--dur-l) var(--curve), font-weight var(--dur-l) var(--curve), line-height var(--dur-l) var(--curve), letter-spacing var(--dur-l) var(--curve), margin-top var(--dur-l) var(--curve); }

/* escolhas rápidas: só preparam o assunto do email (não se recolhe nenhum dado) */
.chips { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s2) var(--s3); margin-top: var(--s8); }
.chip { all: unset; cursor: pointer; box-sizing: border-box; padding: 7px 14px 6px; border: 1px solid var(--ink); border-radius: 99px; font-size: 11px; font-weight: 800; text-transform: uppercase; line-height: 1.2; transition: background 0.35s var(--curve-fade), color 0.35s var(--curve-fade), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1); }
.chip:hover { transform: translateY(-2px); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.chip:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* email gigante: cada letra tem uma cópia por baixo; ao passar o rato rolam em onda */
.mailwrap { margin-top: clamp(24px, 6vh, 64px); }
.mail { display: inline-block; text-decoration: none; font-stretch: 112%; font-weight: 800; font-size: clamp(30px, 6.3vw, 130px); line-height: 1; letter-spacing: -0.035em; text-transform: lowercase; white-space: nowrap; }
.mw { display: inline-block; white-space: nowrap; }
.ch { display: inline-block; height: 1em; overflow: hidden; vertical-align: top; }
.ch > span { display: block; height: 1em; line-height: 1; transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1); transition-delay: calc(var(--i) * 18ms); }
.ch:hover > span, .mail:focus-visible .ch > span { transform: translateY(-100%); transition-delay: 0s; }
.mail:focus-visible .ch > span { transition-delay: calc(var(--i) * 18ms); }
.mail:focus-visible { outline: 2px solid var(--ink); outline-offset: 8px; }
.mail-ctl { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s6); margin-top: var(--s3); padding-top: var(--s3); border-top: 1px solid var(--ink); }
.copy { all: unset; cursor: pointer; display: inline-flex; gap: var(--s3); align-items: baseline; font-size: 11px; font-weight: 800; text-transform: uppercase; }
.copy .copy-t { border-bottom: 1px solid var(--ink); }
.copy:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.mail-more { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: var(--s2) var(--s6); margin-top: var(--s3); font-family: var(--mono); font-size: 11px; color: var(--mute); animation: c-up 0.9s cubic-bezier(0.16, 1, 0.3, 1) 1s both; }
.soc { display: inline-flex; gap: var(--s6); }
.soc a { color: var(--ink); font-weight: 800; font-family: var(--font); text-transform: uppercase; text-decoration: none; border-bottom: 1px solid var(--ink); transition: opacity 0.25s; }
.soc a:hover { opacity: 0.55; }
.clock { font-size: 11px; font-weight: 800; text-transform: uppercase; display: inline-flex; gap: var(--s3); align-items: baseline; }
.clock b { font-family: var(--mono); font-weight: 600; letter-spacing: 0.02em; }
.clock b::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 8px; border-radius: 50%; background: var(--ink); animation: blink 2s steps(1) infinite; vertical-align: 1px; }
@keyframes blink { 50% { opacity: 0.15; } }

/* tira de projetos: corre sozinha, abranda e pára ao passar o rato, arrasta-se com o dedo/rato, e cada foto abre o projeto */
.marq { margin: clamp(32px, 8vh, 96px) calc(var(--pad) * -1) 0; overflow: hidden; cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.marq.drag { cursor: grabbing; }
.marq-t { display: flex; gap: var(--s3); width: max-content; padding-left: var(--s3); will-change: transform; }
.mq { flex: 0 0 auto; display: block; width: clamp(220px, 26vw, 420px); text-decoration: none; transition: opacity 0.5s var(--curve-fade); }
.mq-i { display: block; overflow: hidden; aspect-ratio: 3 / 2; background: var(--ph); }
.mq-i img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.01); transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), filter 0.6s var(--curve-fade); pointer-events: none; }
.mq-c { display: flex; gap: var(--s2); align-items: baseline; margin-top: var(--s2); font-size: 11px; font-weight: 800; text-transform: uppercase; line-height: 1.3; }
.mq-c b { font-family: var(--mono); font-weight: 600; color: var(--mute); }
.mq-c i { font-style: normal; color: var(--mute); font-weight: 700; }
.mq-n { border-bottom: 1px solid transparent; transition: border-color 0.3s; }
.marq.hov .mq { opacity: 0.4; }
.marq.hov .mq:hover, .marq.hov .mq:focus-visible { opacity: 1; }
.mq:hover img, .mq:focus-visible img { transform: scale(1.08); }
.mq:hover .mq-n, .mq:focus-visible .mq-n { border-bottom-color: var(--ink); }
.mq:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
@keyframes c-rev { from { clip-path: inset(0 100% 0 0); } }
.mq-i { animation: c-rev 1.1s cubic-bezier(0.16, 1, 0.3, 1) both; animation-delay: calc(0.9s + var(--q) * 90ms); }
.mq-c { animation: c-up 0.9s cubic-bezier(0.16, 1, 0.3, 1) both; animation-delay: calc(1.2s + var(--q) * 90ms); }

/* foto por letra: cada letra do email mostra uma fotografia diferente, que flutua por cima e segue o rato (só com rato) */
.float { position: fixed; left: 0; top: 0; z-index: 5; pointer-events: none; opacity: 0; transform: translate3d(-999px, -999px, 0); will-change: transform; transition: opacity 0.25s var(--curve-fade); }
.float img { height: 100%; width: 100%; object-fit: cover; display: block; clip-path: inset(100% 0 0 0); }
.float.on { opacity: 1; }
.float img.wipe { clip-path: inset(0); transition: clip-path 0.55s cubic-bezier(0.16, 1, 0.3, 1); }

/* entrada: tudo sobe com arranque rápido e aterragem lenta, em sequência */
@keyframes c-up { from { opacity: 0; transform: translate3d(0, 28px, 0); } }
@keyframes c-ch { from { transform: translate3d(0, 110%, 0); } }
@keyframes c-line { from { transform: scaleX(0); } }
.lead { animation: c-up 1s cubic-bezier(0.16, 1, 0.3, 1) 0.05s both; }
.chips > * { animation: c-up 0.9s cubic-bezier(0.16, 1, 0.3, 1) both; animation-delay: calc(0.18s + var(--n, 0) * 60ms); }
.ch > span:first-child { animation: c-ch 1s cubic-bezier(0.16, 1, 0.3, 1) both; animation-delay: calc(0.3s + var(--i) * 28ms); }
.mail-ctl { animation: c-up 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.9s both; position: relative; }
.ch > span:first-child { transition-property: transform; }

/* saída para a Home: a frase encolhe até ser o subtítulo; o resto esbate */
.chips, .mailwrap, .marq { transition: opacity 0.25s var(--curve-fade); }
html.leaving .chips, html.leaving .mailwrap, html.leaving .marq { opacity: 0 !important; animation: none; }
html.leaving .lead { font-size: clamp(12px, 1.35vw, 22px); max-width: 34ch; font-weight: 700; line-height: 1.12; letter-spacing: 0; margin-top: var(--s4); }

@media (max-width: 800px) {
  .lead { margin-top: var(--s8); font-size: clamp(22px, 6.6vw, 36px); line-height: 1.08; }
  .chips { margin-top: var(--s8); gap: var(--s3); }
  .chips .k { flex: 0 0 100%; margin-bottom: 0; }
  .mailwrap { margin-top: var(--s8); }
  .mail { font-size: clamp(28px, 9.6vw, 60px); white-space: normal; }
  .mail-ctl { margin-top: var(--s4); padding-top: var(--s4); }
  .mail-more { margin-top: var(--s4); row-gap: var(--s4); }
  .marq { margin-top: var(--s8); }
  .mq { width: 62vw; }
  .float { display: none; }
  html.leaving .lead { font-size: 12px; margin-top: var(--s3); }
  .page { padding-bottom: 112px; }
}
@media (hover: none) { .float { display: none; } .chip:hover { transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .lead, .chips > *, .ch > span:first-child, .mail-ctl, .mail-more, .mq-i, .mq-c { animation: none; }
  .marq { overflow-x: auto; cursor: auto; }
  .clock b::after { animation: none; }
  .ch > span { transition: none; }
}
