/* ==========================================================================
   pedromelo.pt
   --------------------------------------------------------------------------
   Folha de estilo única do site. Sem Bootstrap, sem dependências.
   Organização:  1 tokens · 2 base · 3 cabeçalho · 4 hero · 5 home
                 6 galeria · 7 lightbox · 8 about · 9 rodapé · 10 utilidades
   ========================================================================== */

/* 1 ─────────────────────────────────────────────────────────── tokens */
:root {
  --bg:        #0b0b0c;
  --bg-soft:   #131315;
  --bg-raise:  #1a1a1d;
  --fg:        #f4f3f1;
  --fg-dim:    #a3a19d;
  --fg-faint:  #6d6b68;
  --line:      rgba(255, 255, 255, .13);
  --line-soft: rgba(255, 255, 255, .07);
  --accent:    #ee3668;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --gap:       clamp(6px, 1vw, 14px);      /* espaço entre fotos */
  --pad:       clamp(20px, 5vw, 72px);     /* margem lateral da página */
  --head-h:    64px;
  --row-h:     clamp(220px, 26vw, 380px);  /* altura das linhas da galeria */

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

@media (min-width: 900px) { :root { --head-h: 76px; } }

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

html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--fg);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.is-locked { overflow: hidden; }

img, picture, svg, video { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; text-decoration: none; }

button {
  font: inherit; color: inherit; background: none;
  border: 0; padding: 0; cursor: pointer;
}

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

h1, h2, h3, p { margin: 0; }

.sr {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 50%; top: 8px;
  transform: translate(-50%, -200%);
  z-index: 200; padding: 10px 18px;
  background: var(--fg); color: var(--bg);
  font-size: .82rem; border-radius: 3px;
  transition: transform .2s;
}
.skip:focus { transform: translate(-50%, 0); }

/* pequenas maiúsculas espaçadas — o "tom de voz" tipográfico do site */
.eyebrow {
  font-size: .68rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--fg-faint);
  font-weight: 500;
}

.section-title {
  font-weight: 300;
  font-size: clamp(1.9rem, 4.6vw, 3.4rem);
  line-height: 1.06;
  letter-spacing: -.02em;
}

.wrap { padding-inline: var(--pad); }
.measure { max-width: 62ch; }

/* Ao saltar para uma âncora (o "scroll" do hero, o "ir para o conteúdo"),
   deixar espaço para o menu fixo — senão o título aterra por baixo dele. */
#work, #main, #hero { scroll-margin-top: calc(var(--head-h) + 18px); }

/* 3 ───────────────────────────────────────────────────── cabeçalho */
.site-head {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--head-h);
  display: flex; align-items: center; justify-content: space-between;
  padding-inline: var(--pad);
  background: rgba(11, 11, 12, .88);
  border-bottom: 1px solid var(--line-soft);
  transition: background .4s var(--ease), border-color .4s var(--ease), height .3s var(--ease);
}
@supports (backdrop-filter: blur(14px)) {
  .site-head { background: rgba(11, 11, 12, .62); backdrop-filter: blur(14px) saturate(1.3); }
}
/* sobre o hero: transparente até haver scroll */
body.has-hero .site-head:not(.is-stuck) {
  background: transparent; backdrop-filter: none; border-bottom-color: transparent;
}
body.has-hero .site-head:not(.is-stuck)::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to bottom, rgba(0, 0, 0, .55), transparent);
  pointer-events: none;
}

/* logótipo: assinatura vetorial + palavra PHOTOGRAPHY */
.brand { display: flex; align-items: baseline; gap: .7em; min-width: 0; }
.brand-sig { display: block; width: clamp(104px, 12vw, 132px); color: var(--fg); }
.brand-sig svg { width: 100%; height: auto; }
.brand-sub {
  font-size: .58rem; letter-spacing: .34em; text-transform: uppercase;
  color: var(--accent); font-weight: 600; white-space: nowrap;
  transform: translateY(-1px);
}
@media (max-width: 420px) { .brand-sub { display: none; } }

/* Na home, a assinatura já está enorme no hero — o logótipo do menu só
   aparece quando se começa a descer, para não haver duas ao mesmo tempo. */
body.has-hero .site-head:not(.is-stuck) .brand {
  opacity: 0; pointer-events: none;
  transform: translateY(-6px);
}
body.has-hero .brand { transition: opacity .45s var(--ease), transform .45s var(--ease); }

.site-nav { display: flex; align-items: center; gap: clamp(18px, 3vw, 38px); }
.site-nav ul {
  display: flex; align-items: center; gap: clamp(18px, 3vw, 38px);
  list-style: none; margin: 0; padding: 0;
}
.site-nav a {
  position: relative;
  font-size: .74rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--fg-dim); padding: 6px 0;
  transition: color .25s;
}
.site-nav a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease);
}
.site-nav a:hover { color: var(--fg); }
.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after { transform: scaleX(1); }
.site-nav a[aria-current="page"] { color: var(--fg); }

.lang {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 34px; height: 26px; padding: 0 8px;
  border: 1px solid var(--line); border-radius: 2px;
  font-size: .66rem; letter-spacing: .12em; font-weight: 600;
  color: var(--fg-dim);
  transition: color .25s, border-color .25s, background .25s;
}
.lang:hover { color: var(--bg); background: var(--fg); border-color: var(--fg); }
.lang::after { display: none; }

/* hambúrguer */
.burger {
  display: none; position: relative; z-index: 120;
  width: 40px; height: 40px; margin-right: -8px;
}
.burger span {
  display: block; width: 22px; height: 1px; margin: 0 auto;
  background: var(--fg);
  transition: transform .35s var(--ease), opacity .2s;
}
.burger span + span { margin-top: 6px; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child  { transform: translateY(-3.5px) rotate(-45deg); }

@media (max-width: 780px) {
  .burger { display: block; }
  .site-nav {
    position: fixed; inset: 0; z-index: 110;
    flex-direction: column; align-items: center; justify-content: center;
    gap: 8px;
    background: rgba(8, 8, 9, .97);
    opacity: 0; visibility: hidden;
    transition: opacity .35s var(--ease), visibility .35s;
  }
  @supports (backdrop-filter: blur(20px)) {
    .site-nav { background: rgba(8, 8, 9, .9); backdrop-filter: blur(20px); }
  }
  .site-nav.is-open { opacity: 1; visibility: visible; }
  .site-nav ul { flex-direction: column; gap: 4px; text-align: center; }
  .site-nav ul a { font-size: 1.4rem; letter-spacing: .06em; padding: 14px 24px; }
  .site-nav ul a::after { left: 24px; right: 24px; }
  .lang { margin-top: 26px; height: 34px; min-width: 44px; }
}

/* 4 ────────────────────────────────────────────────────────── hero */
.hero {
  position: relative;
  height: 100svh; min-height: 520px;
  display: grid; place-items: center;
  overflow: hidden;
  background: var(--bg-soft);
}
.hero-stage { position: absolute; inset: 0; }
.hero-slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 1.6s var(--ease);
}
.hero-slide.is-on { opacity: 1; }
.hero-slide picture, .hero-slide img { width: 100%; height: 100%; }
.hero-slide img {
  object-fit: cover;
  transform: scale(1.06);
  will-change: transform;
}
/* Ken Burns: só corre no slide visível, para não gastar bateria */
.hero-slide.is-on img { animation: kenburns 15s linear forwards; }
@keyframes kenburns {
  from { transform: scale(1.045) translate3d(0, 0, 0); }
  to   { transform: scale(1.15) translate3d(-1.2%, -1%, 0); }
}
.hero-veil {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 40%, transparent 25%, rgba(0, 0, 0, .55) 100%),
    linear-gradient(to bottom, rgba(0, 0, 0, .5) 0%, rgba(0, 0, 0, .12) 32%, rgba(0, 0, 0, .18) 60%, rgba(11, 11, 12, .92) 100%);
}

.hero-inner {
  position: relative; z-index: 2;
  text-align: center; padding-inline: var(--pad);
  max-width: 900px;
}
.hero-sig {
  width: clamp(230px, 46vw, 460px); margin: 0 auto;
  color: #fff;
  filter: drop-shadow(0 2px 26px rgba(0, 0, 0, .55));
}
.hero-sig svg { width: 100%; height: auto; }
.hero-tagline {
  margin-top: clamp(14px, 2.4vw, 24px);
  font-size: clamp(.66rem, 1.5vw, .82rem);
  letter-spacing: .5em; text-transform: uppercase;
  color: rgba(255, 255, 255, .78); font-weight: 500;
  text-indent: .5em;
}
.hero-rule {
  width: 44px; height: 1px; margin: clamp(20px, 3vw, 30px) auto 0;
  background: var(--accent);
}

/* indicadores dos slides — encostados à direita, longe do "scroll" */
.hero-dots {
  position: absolute; z-index: 3;
  right: var(--pad); bottom: clamp(30px, 5vh, 46px);
  display: flex; gap: 10px;
}
@media (max-width: 560px) {
  .hero-dots { left: 50%; right: auto; transform: translateX(-50%); bottom: clamp(84px, 12vh, 110px); }
}
.hero-dots button {
  width: 26px; height: 2px; background: rgba(255, 255, 255, .3);
  transition: background .3s;
}
.hero-dots button[aria-current="true"] { background: var(--accent); }
.hero-dots button:hover { background: rgba(255, 255, 255, .7); }

.hero-scroll {
  position: absolute; z-index: 3; bottom: clamp(24px, 4vh, 40px);
  left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: .6rem; letter-spacing: .28em; text-transform: uppercase;
  color: rgba(255, 255, 255, .62);
}
.hero-scroll::after {
  content: ''; width: 1px; height: 34px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, .6), transparent);
  animation: dropline 2.4s var(--ease) infinite;
}
@keyframes dropline {
  0%, 100% { transform: scaleY(.35); transform-origin: top; opacity: .5; }
  50%      { transform: scaleY(1);   transform-origin: top; opacity: 1; }
}

/* 5 ────────────────────────────────────────────────────────── home */
.strip {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
  padding: clamp(56px, 10vh, 120px) var(--pad) clamp(24px, 4vh, 44px);
}
.strip-head { max-width: 46ch; }
.strip-head .section-title { margin-top: 12px; }
.strip-head p { margin-top: 14px; color: var(--fg-dim); }

.cats {
  display: grid; gap: var(--gap);
  grid-template-columns: 1fr;
  padding-inline: var(--pad);
}
@media (min-width: 620px)  { .cats { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) {
  .cats { grid-template-columns: repeat(6, 1fr); }
  /* mosaico: as duas primeiras maiores */
  .cats > :nth-child(1) { grid-column: span 3; }
  .cats > :nth-child(2) { grid-column: span 3; }
  .cats > :nth-child(3),
  .cats > :nth-child(4),
  .cats > :nth-child(5) { grid-column: span 2; }
}

.cat {
  position: relative; display: block; overflow: hidden;
  background: var(--bg-soft);
  aspect-ratio: 3 / 2;
}
@media (min-width: 1080px) {
  .cats > :nth-child(1) .cat-media,
  .cats > :nth-child(2) .cat-media { aspect-ratio: 16 / 10; }
}
.cat-media { position: absolute; inset: 0; }
.cat-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.1s var(--slow), filter .6s var(--ease);
  filter: saturate(.9) brightness(.82);
}
.cat::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, .78) 0%, rgba(0, 0, 0, .18) 52%, rgba(0, 0, 0, .05) 100%);
  transition: opacity .5s;
}
.cat:hover .cat-media img, .cat:focus-visible .cat-media img {
  transform: scale(1.045); filter: saturate(1) brightness(.94);
}

.cat-body {
  position: absolute; z-index: 2; inset: auto 0 0 0;
  padding: clamp(18px, 2.4vw, 30px);
}
.cat-name {
  font-size: clamp(1.15rem, 2.3vw, 1.75rem); font-weight: 300;
  letter-spacing: -.01em; line-height: 1.15;
}
.cat-meta {
  margin-top: 6px;
  font-size: .64rem; letter-spacing: .2em; text-transform: uppercase;
  color: rgba(255, 255, 255, .6);
}
.cat-desc {
  margin-top: 10px; max-width: 34ch;
  font-size: .88rem; color: rgba(255, 255, 255, .82);
  /* revela-se ao passar o rato, mas está sempre no HTML para leitores de ecrã */
  max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height .5s var(--ease), opacity .4s var(--ease);
}
.cat:hover .cat-desc, .cat:focus-visible .cat-desc { max-height: 6em; opacity: 1; }
@media (hover: none) { .cat-desc { max-height: 6em; opacity: .9; } }

/* marcas de enquadramento — o mesmo motivo do logótipo */
.frame::before, .frame::after {
  content: ''; position: absolute; z-index: 3;
  width: 18px; height: 18px;
  border: 1px solid rgba(255, 255, 255, .85);
  opacity: 0; transition: opacity .4s var(--ease), transform .5s var(--ease);
  pointer-events: none;
}
.frame::before { top: 14px; left: 14px; border-right: 0; border-bottom: 0; transform: translate(-6px, -6px); }
.frame::after { bottom: 14px; right: 14px; border-left: 0; border-top: 0; transform: translate(6px, 6px); }
.frame:hover::before, .frame:hover::after,
.frame:focus-visible::before, .frame:focus-visible::after { opacity: .9; transform: none; }

.home-cta {
  display: flex; justify-content: center;
  padding: clamp(40px, 7vh, 84px) var(--pad) 0;
}
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 15px 30px;
  border: 1px solid var(--line);
  font-size: .72rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--fg);
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s;
}
.btn svg { width: 15px; height: 15px; transition: transform .35s var(--ease); }
.btn:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.btn:hover svg { transform: translateX(4px); }

/* faixa "atrás da câmara" */
.teaser {
  display: grid; gap: clamp(26px, 5vw, 64px);
  align-items: center;
  padding: clamp(64px, 12vh, 150px) var(--pad);
}
@media (min-width: 860px) { .teaser { grid-template-columns: 5fr 7fr; } }
.teaser-media { position: relative; overflow: hidden; background: var(--bg-soft); }
.teaser-media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.15); }
.teaser-body .section-title { margin-top: 12px; }
.teaser-body p { margin-top: 18px; color: var(--fg-dim); }
.teaser-body .link { margin-top: 26px; display: inline-flex; }

.link {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .72rem; letter-spacing: .2em; text-transform: uppercase;
  border-bottom: 1px solid var(--line); padding-bottom: 5px;
  transition: border-color .3s, color .3s;
}
.link svg { width: 14px; height: 14px; transition: transform .35s var(--ease); }
.link:hover { border-color: var(--accent); }
.link:hover svg { transform: translateX(4px); }

/* 6 ──────────────────────────────────────────────────────── galeria */
.page-head {
  padding: calc(var(--head-h) + clamp(40px, 9vh, 96px)) var(--pad) clamp(22px, 4vh, 40px);
}
.page-head .section-title { margin-top: 10px; }
.page-head .lede { margin-top: 16px; color: var(--fg-dim); max-width: 52ch; }

.filters {
  position: sticky; top: var(--head-h); z-index: 40;
  padding: 14px var(--pad);
  background: rgba(11, 11, 12, .9);
  border-bottom: 1px solid var(--line-soft);
}
@supports (backdrop-filter: blur(14px)) {
  .filters { background: rgba(11, 11, 12, .7); backdrop-filter: blur(14px); }
}
.filters { position: sticky; }
.filters-scroll {
  display: flex; gap: clamp(14px, 2.4vw, 30px); align-items: center;
  overflow-x: auto; scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  /* esbate a última opção, a sugerir que há mais para o lado */
  -webkit-mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 34px), transparent 100%);
          mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 34px), transparent 100%);
}
@media (min-width: 900px) {
  .filters-scroll { -webkit-mask-image: none; mask-image: none; }
}
.filters-scroll::-webkit-scrollbar { display: none; }
.filter {
  position: relative; flex: 0 0 auto;
  padding: 7px 0;
  font-size: .72rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--fg-faint); white-space: nowrap;
  transition: color .25s;
}
.filter sup {
  font-size: .62em; letter-spacing: 0; margin-left: 4px;
  color: var(--fg-faint); top: -.6em;
}
.filter::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform .4s var(--ease);
}
.filter:hover { color: var(--fg-dim); }
.filter.is-active { color: var(--fg); }
.filter.is-active::after { transform: scaleX(1); }
.filter.is-active sup { color: var(--accent); }

/* grelha justificada: cada foto mantém a proporção e a linha fica preenchida */
.grid {
  display: flex; flex-wrap: wrap; align-items: flex-start; gap: var(--gap);
  padding: var(--gap) var(--pad) clamp(50px, 9vh, 110px);
}
.tile {
  position: relative; overflow: hidden;
  background: var(--tile-color, var(--bg-soft));
  flex: var(--ar) 1 calc(var(--ar) * var(--row-h));
  height: var(--row-h);
  transition: opacity .45s var(--ease), transform .45s var(--ease);
}
.tile img {
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0;
  transition: opacity .7s var(--ease), transform 1.1s var(--slow);
}
.tile img.is-loaded { opacity: 1; }
.tile:hover img, .tile:focus-visible img { transform: scale(1.04); }
.tile::after {
  content: ''; position: absolute; inset: 0;
  background: rgba(0, 0, 0, .28);
  opacity: 0; transition: opacity .4s var(--ease);
}
.tile:hover::after, .tile:focus-visible::after { opacity: 1; }

.tile-cap {
  position: absolute; z-index: 3; inset: auto 0 0 0;
  padding: 16px 18px;
  font-size: .78rem; color: #fff;
  background: linear-gradient(to top, rgba(0, 0, 0, .7), transparent);
  opacity: 0; transform: translateY(8px);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.tile:hover .tile-cap, .tile:focus-visible .tile-cap { opacity: 1; transform: none; }
.tile-cap .tile-cat {
  display: block; margin-bottom: 3px;
  font-size: .6rem; letter-spacing: .2em; text-transform: uppercase;
  color: rgba(255, 255, 255, .68);
}

/* uma foto por linha no telefone, sem cortes */
@media (max-width: 640px) {
  .grid { gap: 10px; }
  .tile { flex: 1 1 100%; height: auto; }
  .tile img { height: auto; aspect-ratio: var(--ar); }
  .tile-cap { opacity: 1; transform: none; }
}

.tile.is-hidden { display: none; }
.grid.is-filtering .tile { opacity: 0; transform: translateY(10px) scale(.99); }

.empty { padding: 60px var(--pad) 120px; color: var(--fg-faint); }

/* 7 ─────────────────────────────────────────────────────── lightbox */
body.lb-open .site-head { opacity: 0; pointer-events: none; transition: opacity .25s; }

.lb {
  position: fixed; inset: 0; z-index: 200;
  display: none;
  background: rgba(6, 6, 7, .97);
}
@supports (backdrop-filter: blur(6px)) {
  .lb { background: rgba(6, 6, 7, .9); backdrop-filter: blur(6px); }
}
.lb.is-open { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.lb[hidden] { display: none; }

.lb-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding: 16px clamp(14px, 3vw, 28px);
}
.lb-count {
  font-size: .68rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--fg-faint); font-variant-numeric: tabular-nums;
}
.lb-close {
  width: 42px; height: 42px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 50%;
  transition: background .3s, color .3s, border-color .3s, transform .3s;
}
.lb-close svg { width: 15px; height: 15px; }
.lb-close:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); transform: rotate(90deg); }

.lb:focus { outline: none; }
.lb-stage {
  position: relative; min-height: 0;
  display: grid; place-items: center;
  padding: 0 clamp(8px, 6vw, 84px);
}
/* A altura máxima da foto é calculada a partir da altura do ecrã menos a
   barra de cima e a legenda de baixo. É deliberadamente um valor concreto
   e não uma percentagem: dentro de uma grelha, as percentagens de altura
   dependem de a linha ter altura definida, e isso varia entre browsers —
   com fotos verticais o resultado era passarem do fundo do ecrã. */
.lb { --lb-max-h: calc(100vh - 158px); }
@supports (height: 100svh) { .lb { --lb-max-h: calc(100svh - 158px); } }
@media (max-width: 780px) {
  .lb { --lb-max-h: calc(100vh - 148px); }
  @supports (height: 100svh) { .lb { --lb-max-h: calc(100svh - 148px); } }
}
.lb-stage img {
  max-width: 100%; max-height: var(--lb-max-h);
  width: auto; height: auto;
  object-fit: contain;
  opacity: 0; transition: opacity .35s var(--ease);
}
.lb-stage img.is-ready { opacity: 1; }
.lb-spin {
  position: absolute; width: 26px; height: 26px;
  border: 1px solid var(--line); border-top-color: var(--accent);
  border-radius: 50%; animation: spin .8s linear infinite;
  opacity: 0; transition: opacity .2s;
}
.lb.is-loading .lb-spin { opacity: 1; }
@keyframes spin { to { transform: rotate(360deg); } }

.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: clamp(40px, 6vw, 56px); height: clamp(40px, 6vw, 56px);
  display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 50%;
  background: rgba(11, 11, 12, .45);
  transition: background .3s, color .3s, border-color .3s;
}
.lb-nav svg { width: 16px; height: 16px; }
.lb-nav:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.lb-prev { left: clamp(6px, 2vw, 22px); }
.lb-next { right: clamp(6px, 2vw, 22px); }
@media (max-width: 640px) { .lb-nav { display: none; } }

.lb-foot {
  padding: 14px clamp(14px, 3vw, 28px) clamp(18px, 4vh, 30px);
  text-align: center; min-height: 3.4em;
}
.lb-cat {
  font-size: .6rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--accent);
}
.lb-cap { margin-top: 5px; font-size: .92rem; color: var(--fg-dim); }
.lb-hint {
  margin-top: 8px; font-size: .62rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--fg-faint);
}
@media (max-width: 780px) { .lb-hint { display: none; } }

/* 8 ───────────────────────────────────────────────────────── about */
.about {
  display: grid; gap: clamp(30px, 5vw, 70px);
  padding: 0 var(--pad) clamp(60px, 11vh, 140px);
}
@media (min-width: 900px) { .about { grid-template-columns: 5fr 7fr; align-items: start; } }
.about-media { position: relative; overflow: hidden; background: var(--bg-soft); }
.about-media img {
  width: 100%; height: auto;
  aspect-ratio: 4 / 5; object-fit: cover; object-position: center 26%;
}
@media (min-width: 900px) {
  .about-media { position: sticky; top: calc(var(--head-h) + 26px); }
}
.about-text { max-width: 62ch; }
.about-text p { margin-top: 1.25em; color: var(--fg-dim); font-size: clamp(1rem, 1.5vw, 1.1rem); }
.about-text p:first-child {
  margin-top: 0; color: var(--fg);
  font-size: clamp(1.15rem, 2.2vw, 1.5rem); font-weight: 300; line-height: 1.45;
}

/* 9 ───────────────────────────────────────────────────────── rodapé */
.site-foot {
  border-top: 1px solid var(--line-soft);
  padding: clamp(38px, 6vh, 66px) var(--pad);
}
.foot-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 22px;
}
.foot-sig { display: block; width: 112px; color: var(--fg-dim); }
.foot-sig svg { width: 100%; height: auto; }
.foot-nav { display: flex; flex-wrap: wrap; gap: clamp(14px, 2.4vw, 28px); }
.foot-nav a {
  font-size: .68rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--fg-faint); transition: color .25s;
}
.foot-nav a:hover { color: var(--fg); }
.foot-legal { font-size: .7rem; color: var(--fg-faint); width: 100%; }
@media (min-width: 780px) { .foot-legal { width: auto; text-align: right; } }

/* 10 ──────────────────────────────────────────────────── utilidades */
/* aparecer ao entrar no ecrã */
.js .reveal { opacity: 0; transform: translateY(22px); }
.js .reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity .8s var(--ease), transform .8s var(--slow);
}
.js .reveal-2.is-in { transition-delay: .08s; }
.js .reveal-3.is-in { transition-delay: .16s; }
.js .reveal-4.is-in { transition-delay: .24s; }
.js .reveal-5.is-in { transition-delay: .32s; }

.noscript {
  margin: 0; padding: 14px var(--pad);
  background: var(--bg-raise); color: var(--fg-dim);
  font-size: .85rem; text-align: center;
}

/* quem prefere menos movimento vê tudo estático */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .hero-slide.is-on img { animation: none; transform: scale(1.02); }
  .js .reveal { opacity: 1; transform: none; }
  .hero-scroll::after { animation: none; opacity: .8; }
}

@media print {
  .site-head, .site-nav, .hero-dots, .hero-scroll, .lb, .filters { display: none !important; }
  body { background: #fff; color: #000; }
}
