/* ORNTEK
   Cores tiradas do logótipo; uma só família (Archivo, alojada aqui), com a
   largura expandida (font-stretch) a fazer eco do wordmark nos títulos.
   A ideia central: o olho do logótipo é uma lente que mostra o site por dentro. */

@font-face {
  font-family: 'Archivo';
  src: url('assets/fonts/archivo-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD
}

@font-face {
  font-family: 'Archivo';
  src: url('assets/fonts/archivo-latin-ext.woff2') format('woff2');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF
}

/* Michroma: só para os números dos passos do "Como trabalhamos" */
@font-face {
  font-family: 'Michroma';
  src: url('assets/fonts/michroma-latin.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD
}

@font-face {
  font-family: 'Michroma';
  src: url('assets/fonts/michroma-latin-ext.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF
}

@property --xr {
  syntax: '<length>';
  inherits: false;
  initial-value: 0px
}

:root {
  --night: #0d1117;
  --night-2: #161b23;
  --cream: #f3efe8;
  --paper: #f6f3ec;
  --ink: #12161c;
  --amber: #e8a33d;
  --amber-hi: #f2b75a;
  --muted-dark: #a7a29a;
  --muted-light: #5d5950;
  --line-dark: rgba(243, 239, 232, .14);
  --line-light: rgba(18, 22, 28, .14);
  --pad: clamp(20px, 6vw, 112px);
  --max: 1240px;
  --sans: 'Archivo', system-ui, sans-serif;
  --ease: cubic-bezier(.45, 0, .2, 1);
  --ease-out: cubic-bezier(.22, 1, .36, 1)
}

* {
  box-sizing: border-box
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 130px
}

body {
  margin: 0;
  background: var(--night);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden
}

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

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

h1,
h2,
h3 {
  margin: 0;
  font-weight: 500;
  font-stretch: 125%;
  text-wrap: balance
}

p {
  margin: 0
}

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--amber);
  color: var(--night);
  font-weight: 600;
  transform: translateY(-200%)
}

.skip-link:focus {
  transform: none
}

/* Botões */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 28px;
  border-radius: 999px;
  font: 600 .95rem/1 var(--sans);
  font-stretch: 112%;
  cursor: pointer;
  transition: transform .25s, background .25s, border-color .25s
}

.button:hover {
  transform: translateY(-2px)
}

.button-amber {
  border: 0;
  background: var(--amber);
  color: var(--night)
}

.button-amber:hover {
  background: var(--amber-hi)
}

.button-outline {
  border: 1px solid rgba(243, 239, 232, .45);
  background: transparent;
  color: var(--cream)
}

.button-outline:hover {
  border-color: var(--cream);
  background: rgba(243, 239, 232, .1)
}

/* Header — pílula flutuante (referência: Botanic Blue) */
.site-header {
  --dur: .7s;
  position: fixed;
  top: 18px;
  left: 0;
  right: 0;
  z-index: 30;
  width: calc(100% - 48px);
  height: 66px;
  margin: 0 auto;
  padding: 0 20px 0 34px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  color: var(--cream);
  border: 1px solid rgba(243, 239, 232, .2);
  border-radius: 999px;
  transition: top var(--dur) var(--ease), width var(--dur) var(--ease), height var(--dur) var(--ease),
    padding var(--dur) var(--ease), border-color var(--dur) ease, box-shadow var(--dur) ease
}

/* O fundo vive num pseudo-elemento para o blur não prender o menu móvel */
.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: rgba(13, 17, 23, .35);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: background var(--dur) ease
}

.site-header.is-scrolled {
  top: 14px;
  width: min(1180px, calc(100% - 48px));
  height: 52px;
  padding: 0 12px 0 26px;
  border-color: rgba(243, 239, 232, .12);
  box-shadow: 0 14px 40px rgba(0, 0, 0, .3)
}

.site-header.is-scrolled::before {
  background: rgba(13, 17, 23, .92);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  backdrop-filter: blur(14px) saturate(1.3)
}

/* Páginas que começam em fundo claro: o vidro meio transparente ficaria cinzento */
.site-header.header-solid::before {
  background: rgba(13, 17, 23, .92);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  backdrop-filter: blur(14px) saturate(1.3)
}

.site-header.header-solid {
  border-color: rgba(243, 239, 232, .12)
}

.brand {
  justify-self: start;
  transition: opacity .2s
}

.brand:hover {
  opacity: .85
}

/* O logótipo não se arrasta: um clique com o rato a mexer um pouco não fica "perdido" num arrastar */
.brand img {
  -webkit-user-drag: none;
  user-select: none;
  height: 30px;
  width: auto;
  transition: height var(--dur) var(--ease)
}

.is-scrolled .brand img {
  height: 24px
}

.desktop-nav {
  display: flex;
  gap: 40px;
  font-size: .9rem;
  font-weight: 500;
  font-stretch: 112%
}

.desktop-nav a {
  position: relative;
  padding-bottom: 4px
}

.desktop-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1.5px;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .35s cubic-bezier(.25, 1, .5, 1)
}

.desktop-nav a:hover::after,
.desktop-nav a[aria-current="true"]::after {
  transform: scaleX(1)
}

/* Lado direito do cabeçalho: idioma + pedir orçamento */
.header-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 20px
}

/* Nas páginas simples (só logótipo e idioma) fica encostado à direita */
.site-header > .header-actions:last-child {
  grid-column: -2
}

/* PT / EN: a língua atual a claro, a outra discreta */
.lang-switch {
  display: flex;
  align-items: center;
  font-size: .78rem;
  font-weight: 600;
  font-stretch: 112%;
  letter-spacing: .06em
}

.lang-switch a {
  position: relative;
  padding: 8px 8px;
  color: var(--muted-dark);
  transition: color .2s
}

.lang-switch a + a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 1px;
  height: 11px;
  background: var(--line-dark);
  transform: translateY(-50%)
}

.lang-switch a:hover,
.lang-switch a[aria-current="true"] {
  color: var(--cream)
}

.lang-switch a[aria-current="true"] {
  pointer-events: none
}

.header-cta {
  justify-self: end;
  min-height: 40px;
  padding: 0 22px;
  font-size: .88rem;
  transition: min-height var(--dur) var(--ease), background .25s, border-color .25s, transform .25s
}

.is-scrolled .header-cta {
  min-height: 36px;
  background: rgba(243, 239, 232, .08)
}

.menu-toggle,
.mobile-menu {
  display: none
}

/* Hero */
.hero {
  position: relative;
  min-height: max(700px, 100svh);
  padding: 150px var(--pad) 28px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  align-items: center;
  gap: clamp(32px, 5vw, 80px);
  max-width: calc(var(--max) + 2 * var(--pad));
  margin: 0 auto;
  isolation: isolate
}

/* Fundo da hero: o logótipo estende-se pela página (o desenho é gerado no script.js).
   À volta do O, uma íris de fibras finas; algumas continuam como pistas de circuito, como as
   do K, que contornam o texto e saem do ecrã. Discreto por defeito; acende-se a âmbar onde
   o cursor passa. Na entrada, aparece em onda a partir do olho. */
@property --reveal {
  syntax: '<length>';
  inherits: false;
  initial-value: 8000px
}

.hero-bg {
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(50% - 50vw);
  z-index: -1;
  width: 100vw;
  overflow: hidden;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(circle at var(--ex) var(--ey), #000 var(--reveal), transparent calc(var(--reveal) + 240px));
  mask-image: radial-gradient(circle at var(--ex) var(--ey), #000 var(--reveal), transparent calc(var(--reveal) + 240px))
}

.hc {
  position: absolute;
  top: 0;
  left: 0;
  overflow: visible;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round
}

/* Ao longe as pistas apagam-se: o desenho vive à volta do olho */
.hc-base {
  -webkit-mask-image: radial-gradient(circle at var(--ex) var(--ey), #000 calc(var(--er) * 1.9), rgba(0, 0, 0, .42) calc(var(--er) * 6));
  mask-image: radial-gradient(circle at var(--ex) var(--ey), #000 calc(var(--er) * 1.9), rgba(0, 0, 0, .42) calc(var(--er) * 6))
}

.hc-base .hc-f1 {
  stroke: rgba(243, 239, 232, .1);
  stroke-width: .8
}

.hc-base .hc-f2 {
  stroke: rgba(243, 239, 232, .2);
  stroke-width: .8
}

.hc-base .hc-fa {
  stroke: rgba(232, 163, 61, .32);
  stroke-width: .9
}

.hc-base .hc-ring {
  stroke: rgba(243, 239, 232, .22);
  stroke-width: 1.2;
  stroke-dasharray: 0 7
}

.hc-base .hc-t {
  stroke: rgba(243, 239, 232, .17);
  stroke-width: 1.1
}

/* As pistas do K: mais grossas que as outras e com um gradiente (no script.js) que as faz
   sair fortes dos pads e apagar até à margem */
.hc-base .hc-k {
  stroke: url(#hc-kfade);
  stroke-width: 1.8
}

.hc-base .hc-ta {
  stroke: rgba(232, 163, 61, .3);
  stroke-width: 1.1
}

.hc-base .hc-p {
  fill: rgba(243, 239, 232, .32)
}

.hc-base .hc-v {
  stroke: rgba(243, 239, 232, .3);
  stroke-width: 1.1
}

/* Chips (no fim dos barramentos largos) e resistências: o corpo tapa a pista por baixo */
.hc-ic,
.hc-res {
  fill: var(--night-2)
}

.hc-base .hc-ic {
  stroke: rgba(243, 239, 232, .3);
  stroke-width: 1
}

.hc-base .hc-icp {
  stroke: rgba(243, 239, 232, .22);
  stroke-width: 1.1
}

.hc-base .hc-icm {
  fill: rgba(243, 239, 232, .4)
}

.hc-base .hc-res {
  stroke: rgba(243, 239, 232, .28);
  stroke-width: .9
}

/* A lanterna: uma janela redonda que segue o cursor e mostra o circuito aceso */
.hc-spot {
  position: absolute;
  top: 0;
  left: 0;
  width: 460px;
  height: 460px;
  overflow: hidden;
  opacity: 0;
  -webkit-mask-image: radial-gradient(closest-side, #000 15%, rgba(0, 0, 0, .45) 50%, transparent);
  mask-image: radial-gradient(closest-side, #000 15%, rgba(0, 0, 0, .45) 50%, transparent);
  transition: opacity .5s ease;
  will-change: transform
}

.hc-spot.is-on {
  opacity: 1
}

.hc-lit {
  will-change: transform
}

.hc-lit .hc-f1,
.hc-lit .hc-f2 {
  stroke: rgba(243, 239, 232, .6);
  stroke-width: .8
}

.hc-lit .hc-fa,
.hc-lit .hc-t,
.hc-lit .hc-ta,
.hc-lit .hc-v {
  stroke: var(--amber);
  stroke-width: 1.2
}

.hc-lit .hc-ring {
  stroke: var(--amber);
  stroke-width: 1.4;
  stroke-dasharray: 0 7
}

.hc-lit .hc-p,
.hc-lit .hc-icm {
  fill: var(--amber)
}

.hc-lit .hc-k {
  stroke: var(--amber);
  stroke-width: 1.8
}

.hc-lit .hc-ic,
.hc-lit .hc-res,
.hc-lit .hc-icp {
  stroke: var(--amber);
  stroke-width: 1.1
}

/* Sinais: um traço âmbar com cauda e um brilho à volta da cabeça, que corre por uma pista
   até ao olho */
.hc-tail {
  stroke: rgba(232, 163, 61, .45);
  stroke-width: 1.3
}

.hc-glow {
  stroke: rgba(242, 183, 90, .22);
  stroke-width: 7
}

.hc-head {
  stroke: var(--amber-hi);
  stroke-width: 2.2
}

.hc-ping {
  stroke: var(--amber);
  stroke-width: 1.2;
  transform-box: fill-box;
  transform-origin: center
}

@media (prefers-reduced-motion: no-preference) {
  .hero-bg {
    animation: hc-reveal 2.4s cubic-bezier(.45, 0, .25, 1) .55s both
  }
}

@keyframes hc-reveal {
  from {
    --reveal: 0px
  }

  to {
    --reveal: var(--reveal-end, 3000px)
  }
}

/* Mini slogan: um traço âmbar antes, como uma linha de mira */
.hero-tagline {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
  color: var(--amber);
  font-size: clamp(.8rem, .95vw, .9rem);
  font-weight: 600;
  font-stretch: 118%;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-wrap: balance
}

.hero-copy {
  container-type: inline-size
}

.hero h1 {
  font-size: clamp(2.4rem, 4.9vw, 4.6rem);
  /* "melhores soluções." mede ~10,8 em: cabe sempre na coluna */
  font-size: min(4.6rem, 9.1cqi);
  line-height: 1.03;
  letter-spacing: -.02em;
  text-wrap: balance
}

/* "better solutions." é mais curta (~8,8 em): em inglês o título pode ser maior */
.hero h1:lang(en) {
  font-size: min(4.6rem, 11.1cqi)
}

.hero-line {
  white-space: nowrap
}

.hero-lead {
  max-width: 34em;
  margin-top: 28px;
  color: var(--muted-dark);
  font-size: clamp(1.05rem, 1.3vw, 1.2rem)
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 40px
}

/* Faixa discreta no fundo da hero: os serviços numa linha e uma seta que desce para eles */
.hero-bottom {
  grid-column: 1 / -1;
  justify-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px
}

.hero-services {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0;
  padding: 0;
  list-style: none;
  color: #a9a49a;
  font-size: .72rem;
  font-weight: 500;
  font-stretch: 112%;
  letter-spacing: .22em;
  text-transform: uppercase;
  text-align: center
}

.hero-services li + li:not(.hero-services-break)::before {
  content: '·';
  margin: 0 .9em;
  color: var(--amber);
  letter-spacing: 0
}

/* Só serve para partir em duas linhas no telemóvel */
.hero-services-break {
  display: none
}

.hero-scroll {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: #a9a49a;
  transition: color .2s
}

.hero-scroll:hover {
  color: var(--amber)
}

.hero-scroll svg path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round
}

/* O olho: SVG do logótipo; a pupila segue o cursor (o raio-X liga-se no rodapé) */
.eye {
  --px: 0;
  --py: 0;
  width: min(100%, 620px)
}

.hero .eye {
  position: relative;
  isolation: isolate;
  justify-self: end
}

.hero .eye::before {
  content: '';
  position: absolute;
  left: 35.3%;
  top: 50%;
  z-index: -1;
  width: 120%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(233, 162, 59, 0.08) 0%, transparent 60%);
  pointer-events: none
}

.eye-svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible
}

.eye-inner,
.eye-pupil-dot {
  fill: var(--night)
}

.eye-iris {
  fill: var(--amber)
}

.eye-glint {
  fill: #fff
}

.eye-mark {
  fill: var(--cream)
}

.eye-guides {
  display: none
}

/* Pálpebra: escondida por cima; com o raio-X ligado desce e o olho fica desconfiado */
.eye-lid {
  fill: var(--cream);
  transform: translateY(-200px);
  transition: transform .5s var(--ease-out)
}

/* Desce ao mesmo tempo (mesma duração e atraso) que a pálpebra da lente */
.xray-on .hero .eye-lid {
  transform: none;
  transition-delay: .15s
}

/* Fora: segue o cursor. Dentro: dilata (separado, para a dilatação não ampliar o movimento) */
.eye-pupil {
  transform: translate(calc(var(--px) * 1px), calc(var(--py) * 1px))
}

.eye-pupil-in {
  transform-box: fill-box;
  transform-origin: center;
  transition: scale .45s var(--ease-out)
}

.xray-on .eye-pupil-in {
  scale: 1.16
}

/* Momento de entrada: o símbolo desenha-se da esquerda para a direita */
@media (prefers-reduced-motion: no-preference) {
  .hero-bottom {
    animation: fade-in .8s ease 1.2s both
  }

  .hero-scroll svg {
    animation: nudge 2.4s ease-in-out 2s infinite
  }

  .hero .eye-svg {
    animation: eye-draw 1.5s var(--ease) .15s both
  }

  .hero .eye-pupil {
    animation: fade-in .5s ease 1.2s both
  }
  /* O texto revela-se de cima para baixo, uma linha de cada vez */
  .hero-tagline,
  .hero-line,
  .hero-lead,
  .hero-actions {
    animation: drop 1s var(--ease-out) both
  }

  .hero-tagline {
    animation-delay: .1s
  }

  .hero-line:nth-child(1) {
    animation-delay: .3s
  }

  .hero-line:nth-child(2) {
    animation-delay: .5s
  }

  .hero-lead {
    animation-delay: .75s
  }

  .hero-actions {
    animation-delay: .95s
  }
}

.hero-line {
  display: block
}

@keyframes drop {
  from {
    opacity: 0;
    transform: translateY(-18px);
    clip-path: inset(0 0 100% 0)
  }

  to {
    opacity: 1;
    transform: none;
    clip-path: inset(-20% -10% -30% -10%)
  }
}

@keyframes eye-draw {
  from {
    clip-path: inset(-5% 105% -5% -5%)
  }

  to {
    clip-path: inset(-5% -5% -5% -5%)
  }
}

@keyframes nudge {
  0%,
  60%,
  100% {
    transform: none
  }

  30% {
    transform: translateY(5px)
  }
}

@keyframes fade-in {
  from {
    opacity: 0
  }
}

/* Secções */
.services,
.process,
.projects,
.contact {
  padding: clamp(88px, 11vw, 160px) var(--pad)
}

.light {
  background: var(--paper);
  color: var(--ink)
}

.light :focus-visible {
  outline-color: var(--ink)
}

/* O texto vem logo por baixo do título, alinhado com ele: ao lado, longe e pequeno,
   ficava perdido */
.section-head {
  max-width: var(--max);
  margin: 0 auto clamp(48px, 6vw, 88px);
  display: grid;
  justify-items: start;
  gap: clamp(14px, 1.5vw, 22px)
}

.section-head h2,
.contact h2,
.page h1 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -.015em
}

.section-head h2 {
  white-space: nowrap
}

.section-head p {
  max-width: 32em;
  font-size: clamp(1.1rem, 1.35vw, 1.3rem);
  line-height: 1.5;
  color: #c9c4bb
}

.light .section-head p {
  color: #3f3c36
}

/* ——— Cabeçalhos das secções: o olho da marca dentro do título ———
   Em cada título há um "o" que é o olho do logótipo (como no wordmark): pisca, segue o
   cursor (no telemóvel olha para onde se está a descer) e, clicado, abre o modo raio-X.
   Quando a secção chega ao ecrã, o título está em planta, como no raio-X (contorno,
   linhas-guia e etiqueta medida ao vivo): o olho abre e a tinta espalha-se a partir dele,
   o texto ao lado entra em foco e a frase que importa fica sublinhada.
   A letra verdadeira continua lá (escondida) para leitores de ecrã e para copiar o texto.
   Sem JS ou com "reduzir movimento" vê-se logo o estado final. */
@property --sh-r {
  syntax: '<length>';
  inherits: false;
  initial-value: 0px
}

.vh {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap
}

.section-head {
  --sh-ink: var(--cream);
  --sh-bg: var(--night);
  --sh-line: rgba(243, 239, 232, .7);
  --sh-guide: rgba(232, 163, 61, .55);
  --sh-mark: rgba(232, 163, 61, .4);
  /* As linhas-guia atravessam a largura toda do cabeçalho, mas não saem dele */
  overflow-x: clip
}

.light .section-head {
  --sh-ink: var(--ink);
  --sh-bg: var(--paper);
  --sh-line: rgba(18, 22, 28, .6);
  --sh-guide: rgba(196, 122, 20, .6);
  --sh-mark: rgba(232, 163, 61, .45)
}

.section-head :is(h1, h2) {
  position: relative;
  --sh-r: 40em
}

/* O olho ocupa o lugar da letra: assenta na linha de base e tem a altura das maiúsculas
   (ou das minúsculas, num "o" pequeno) */
.sh-eye {
  position: relative;
  display: inline-block;
  vertical-align: baseline;
  width: .74em;
  height: .74em;
  width: 1.06cap;
  height: 1.06cap;
  margin: 0 .05em -.03cap;
  color: var(--sh-ink)
}

.sh-eye.is-lower {
  width: .56em;
  height: .56em;
  width: 1.1ex;
  height: 1.1ex;
  margin: 0 .035em -.05ex
}

.sh-eye.has-xray {
  cursor: pointer
}

.sh-eye svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible
}

.sh-ring {
  fill: none;
  stroke: currentColor
}

.sh-iris {
  fill: var(--amber)
}

.sh-dot {
  fill: var(--night);
  transform-box: fill-box;
  transform-origin: center;
  transition: scale .3s var(--ease-out)
}

.sh-glint {
  fill: #fff
}

.sh-pupil {
  translate: calc(var(--px, 0) * 1px) calc(var(--py, 0) * 1px)
}

/* A pálpebra (reta e inclinada, como a do logótipo): escondida em cima quando o olho
   está aberto; meio fechada com o raio-X ligado, como o olho do topo */
.sh-lid {
  fill: currentColor;
  translate: 0 -64px;
  transition: translate .45s var(--ease-out)
}

.xray-on .sh-lid {
  translate: 0 0
}

.sh-eye.has-xray:hover .sh-dot {
  scale: 1.35
}

.sh-eye.is-blink .sh-lid {
  animation: sh-blink .24s ease-in-out
}

@keyframes sh-blink {
  50% {
    translate: 0 52px
  }
}

/* Linhas-guia da planta: altura das letras, linha de base e o eixo do olho */
.sh-eye::before,
.sh-eye::after {
  content: '';
  position: absolute;
  pointer-events: none;
  opacity: 0;
  transition: opacity .8s ease 1.3s
}

.sh-eye::before {
  left: -100vw;
  right: -100vw;
  top: 0;
  bottom: 0;
  border-block: 1px dashed var(--sh-guide)
}

.sh-eye::after {
  left: 50%;
  top: -.5em;
  bottom: -.5em;
  border-left: 1px dashed var(--sh-guide)
}

/* Etiqueta da planta (o texto vem do JS, medido ao vivo) */
.section-head :is(h1, h2)::after {
  content: attr(data-sh-label);
  position: absolute;
  left: 0;
  bottom: 100%;
  margin-bottom: 10px;
  padding: 3px 7px 2px;
  border-radius: 4px;
  background: var(--amber);
  color: var(--night);
  -webkit-text-fill-color: var(--night);
  -webkit-text-stroke: 0;
  font: 600 11px/1.3 var(--sans);
  font-stretch: 100%;
  letter-spacing: 0;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .6s ease 1.2s
}

/* Antes de a secção chegar: o título em contorno; depois, a tinta espalha-se do olho */
.section-head.is-armed :is(h1, h2) {
  -webkit-text-fill-color: transparent;
  background-image: radial-gradient(circle at var(--sh-x, 0px) var(--sh-y, 50%), var(--sh-ink) var(--sh-r), transparent calc(var(--sh-r) + .5px));
  background-repeat: no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-stroke: 1px var(--sh-line);
  transition: --sh-r 1.4s var(--ease-out) .35s, -webkit-text-stroke-color .6s ease 1.3s
}

.section-head.is-armed:not(.is-seen) :is(h1, h2) {
  --sh-r: 0px
}

.section-head.is-seen :is(h1, h2) {
  -webkit-text-stroke-color: transparent
}

.section-head.is-armed:not(.is-seen) :is(h1, h2)::after,
.section-head.is-armed:not(.is-seen) .sh-eye::before,
.section-head.is-armed:not(.is-seen) .sh-eye::after {
  opacity: 1;
  transition-delay: 0s
}

/* Na planta o olho ainda é só a letra: um anel vazio. Ao revelar, a pálpebra (da cor
   do fundo) sobe e aparece a íris */
.section-head.is-armed .sh-lid {
  fill: var(--sh-bg)
}

.section-head.is-armed:not(.is-seen) .sh-lid {
  translate: 0 52px
}

/* O texto ao lado entra em foco e a frase que importa é sublinhada a marcador */
.section-head.is-armed > p {
  transition: filter .9s ease .55s, opacity .9s ease .55s
}

.section-head.is-armed:not(.is-seen) > p {
  filter: blur(6px);
  opacity: .25
}

.sh-mark {
  padding: 0 .08em;
  color: inherit;
  background: linear-gradient(var(--sh-mark), var(--sh-mark)) 0 88% / 100% 42% no-repeat;
  transition: background-size .8s var(--ease-out) 1.4s
}

.section-head.is-armed:not(.is-seen) .sh-mark {
  background-size: 0 42%
}


.services {
  padding-top: clamp(72px, 8vw, 120px)
}

.services .section-head {
  margin-bottom: clamp(36px, 4vw, 60px)
}

.services .section-head h2 {
  line-height: .95
}

/* Serviços: a lista à esquerda e, à direita, a lente (o olho da marca) que mostra
   um desenho do serviço escolhido. Sem JS: todos os textos abertos, primeiro desenho. */
.svc {
  --svc-gap: clamp(40px, 6vw, 96px);
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  /* Metade para a lista, metade para o painel: o desenho tem largura para crescer */
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--svc-gap);
  /* O painel estica até à altura da lista: as duas colunas começam e acabam juntas */
  align-items: stretch
}

.service-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid var(--line-light)
}

.svc-item {
  border-top: 1px solid var(--line-light)
}

.service-list h3 {
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  line-height: 1.15;
  letter-spacing: -.01em
}

.svc-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  padding: clamp(14px, 1.6vw, 20px) 0;
  border: 0;
  background: none;
  color: var(--muted-light);
  font: inherit;
  letter-spacing: inherit;
  text-align: left;
  cursor: pointer;
  transition: color .25s
}

.svc-toggle:hover,
.svc-item.is-active .svc-toggle {
  color: var(--ink)
}

/* O nó de circuito (como os do "K" e dos passos): acende no serviço escolhido */
.svc-node {
  position: relative;
  flex: none;
  width: 12px;
  height: 12px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  opacity: .5;
  transition: background .25s, border-color .25s, opacity .25s
}

.svc-item.is-active .svc-node {
  border-color: var(--amber);
  background: var(--amber);
  opacity: 1
}

/* A pista (como as do "K"): do nó do serviço escolhido até ao painel, à mesma altura */
.svc.is-live .svc-item.is-active .svc-node::after {
  content: '';
  position: absolute;
  left: 100%;
  top: 50%;
  width: calc(var(--svc-gap) + 2px);
  height: 2px;
  background: var(--amber);
  transform: translateY(-50%);
  transform-origin: left center
}

/* Abre e fecha com a altura certa (grelha 0fr → 1fr) */
.svc-panel {
  display: grid;
  grid-template-rows: 1fr;
  transition: grid-template-rows .4s var(--ease-out)
}

.svc-panel-in {
  min-height: 0;
  overflow: hidden
}

.svc-panel p {
  max-width: 34em;
  padding-bottom: clamp(16px, 1.8vw, 22px);
  color: var(--muted-light)
}

.svc.is-live .svc-item:not(.is-active) .svc-panel {
  grid-template-rows: 0fr
}

/* O painel: noite com a quadrícula de planta técnica do modo raio-X; o desenho ao centro.
   É retangular e da altura da lista, para as duas colunas formarem um só bloco. */
.svc-lens-home {
  display: flex
}

.svc-lens {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 360px;
  border-radius: 14px;
  background-color: var(--night);
  background-image:
    linear-gradient(rgba(243, 239, 232, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(243, 239, 232, .05) 1px, transparent 1px);
  background-size: 24px 24px;
  background-position: center;
  overflow: hidden
}

/* O desenho ocupa quase todo o painel (recorte justo, igual em todos: mesma espessura de linha) */
.svc-scene {
  display: none;
  width: 84%;
  max-height: 84%;
  height: auto;
  aspect-ratio: 168 / 151
}

.svc-scene.is-on {
  display: block
}

.svc-scene * {
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round
}

.svc-scene .s {
  stroke: var(--cream)
}

.svc-scene .m {
  stroke: rgba(243, 239, 232, .38)
}

.svc-scene .a {
  fill: var(--amber);
  stroke: none
}

.svc-scene .al {
  stroke: var(--amber)
}

.svc-scene .bar {
  fill: rgba(243, 239, 232, .22);
  stroke: none
}

.svc-scene .node {
  fill: var(--cream)
}

.svc-scene .dash {
  stroke-dasharray: 3 5
}

/* Roda dentada: 8 dentes, feitos com um traço grosso e tracejado à volta */
.svc-scene .gear {
  stroke: var(--cream);
  stroke-width: 7;
  stroke-dasharray: 6.28 6.28;
  stroke-linecap: butt
}

/* Animações: só correm quando o serviço é escolhido (e não com "reduzir movimento");
   sem elas, cada desenho aparece já completo */
@media (prefers-reduced-motion: no-preference) {
  .svc.is-live .svc-item.is-active .svc-node::after {
    animation: svc-trace .45s var(--ease-out) both
  }

  .svc-scene.is-on .rise {
    animation: svc-rise .5s var(--ease-out) var(--d, 0s) both
  }

  .svc-scene.is-on .pop {
    transform-box: fill-box;
    transform-origin: center;
    animation: svc-pop .45s cubic-bezier(.3, 1.6, .5, 1) var(--d, 0s) both
  }

  .svc-scene.is-on .draw {
    stroke-dasharray: 1;
    animation: svc-draw .7s var(--ease-out) var(--d, 0s) both
  }

  .svc-scene.is-on .grow {
    transform-box: fill-box;
    transform-origin: bottom;
    animation: svc-grow .6s var(--ease-out) var(--d, 0s) both
  }

  .svc-scene.is-on .spin {
    transform-box: fill-box;
    transform-origin: center;
    animation: svc-spin 1.8s var(--ease-out) var(--d, 0s) both
  }

  .svc-scene.is-on .move {
    animation: svc-move 1.1s var(--ease) var(--d, 0s) 2 both
  }

  .svc-scene.is-on .beat {
    stroke-dasharray: 1;
    animation: svc-draw 1.3s var(--ease) var(--d, 0s) 2 both
  }
}

@keyframes svc-trace {
  from {
    transform: translateY(-50%) scaleX(0)
  }
}

@keyframes svc-rise {
  from {
    opacity: 0;
    transform: translateY(6px)
  }
}

@keyframes svc-pop {
  from {
    opacity: 0;
    transform: scale(.2)
  }
}

@keyframes svc-draw {
  from {
    stroke-dashoffset: 1
  }

  to {
    stroke-dashoffset: 0
  }
}

@keyframes svc-grow {
  from {
    transform: scaleY(0)
  }
}

@keyframes svc-spin {
  from {
    transform: rotate(-200deg)
  }
}

/* O ponto viaja e volta ao início; no fim fica onde chegou */
@keyframes svc-move {
  0% {
    opacity: 0;
    transform: translate(0, 0)
  }

  15% {
    opacity: 1
  }

  85% {
    opacity: 1
  }

  100% {
    opacity: 0;
    transform: translate(var(--x), var(--y))
  }
}

/* ———————————————— Como trabalhamos ————————————————
   Os passos à esquerda (o texto é o que conta) e, à direita, parado enquanto se desce, um
   "ecrã partilhado" onde o mesmo projeto nasce: conversa → planta (o desenho do modo
   raio-X) → site a sério → no ar → bem tratado. Os cursores "Você" e "ORNTEK" fazem o que
   o texto ao lado diz, e as etiquetas dos passos têm as cores deles.
   O JS só muda o data-step do .pw: o que se vê e anima em cada passo está aqui.
   Dentro do .pw tudo se mede em cqw (1cqw = 1% da largura do .pw): o desenho escala
   inteiro, como uma imagem, do computador ao telemóvel. */
@property --pw-days {
  syntax: '<integer>';
  inherits: false;
  initial-value: 365
}

.process {
  --ico-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 .8a7.2 7.2 0 1 0 0 14.4A7.2 7.2 0 0 0 8 .8zm-1.1 10.4L3.6 7.9l1.2-1.2 2.1 2.1 4.3-4.3 1.2 1.2z'/%3E%3C/svg%3E")
}

/* O título fica junto aos passos: a grelha sobe o espaço que o JS põe por cima do "01"
   (--lead, só no computador), e o "01" e a linha do projeto ficam logo abaixo do texto */
.process .section-head {
  margin-bottom: clamp(28px, 3vw, 44px)
}

.method {
  --stage-top: 104px;
  --stage-h: clamp(520px, calc(100svh - 128px), 760px);
  max-width: var(--max);
  margin: calc(-1 * var(--lead, 0px)) auto 0;
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start
}

.method-steps {
  margin: 0;
  padding: 0;
  list-style: none
}

/* Cada passo tem (quase) a altura do ecrã partilhado: o que está a ser lido fica sempre
   ao lado do que se está a ver. O espaço de cima (--lead, medido pelo JS) põe o "01 ——"
   à altura da linha do projeto; o último passo tem a altura do palco, para acabar
   nivelado com essa linha antes de o palco se soltar e a página seguir. */
.method-step {
  min-height: calc(var(--stage-h) * .82);
  display: flex;
  flex-direction: column;
  padding: var(--lead, 32px) 0 48px;
  transition: opacity .5s ease
}

.method-step:last-child {
  min-height: var(--stage-h)
}

.method.is-live .method-step:not(.is-current) {
  opacity: .26
}

.method-num {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  font-family: 'Michroma', sans-serif;
  font-size: .78rem;
  letter-spacing: .12em;
  color: var(--amber)
}

.method-num::after {
  content: '';
  width: 48px;
  height: 1.5px;
  background: currentColor;
  opacity: .55
}

.method-step h3 {
  font-size: clamp(1.9rem, 3.1vw, 2.75rem);
  line-height: 1.05;
  letter-spacing: -.015em
}

.method-lead {
  max-width: 25em;
  margin-top: 16px;
  color: var(--muted-dark);
  font-size: clamp(1.02rem, 1.2vw, 1.12rem);
  line-height: 1.55
}

/* Quem faz o quê, escrito como uma conta à mão: o seu lado + o nosso lado, um traço de
   soma por baixo e "=" o que fica consigo. Sem caixas nem ícones: só tipografia. As
   etiquetas têm as cores dos cursores do ecrã ao lado (creme "Você", âmbar "ORNTEK"). */
.method-deal {
  --deal-gap: clamp(30px, 3.2vw, 46px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: var(--deal-gap);
  max-width: 31em;
  margin: 30px 0 0
}

.deal-you,
.deal-us {
  position: relative
}

.method-deal dt {
  font-size: .7rem;
  font-weight: 700;
  font-stretch: 112%;
  letter-spacing: .12em;
  line-height: 1.3;
  text-transform: uppercase
}

.deal-you dt {
  color: var(--cream)
}

.deal-us dt {
  color: var(--amber)
}

.method-deal dd {
  margin: 8px 0 0;
  color: rgba(243, 239, 232, .8);
  font-size: .96rem;
  line-height: 1.5
}

/* O "+" entre as duas parcelas */
.deal-us::before {
  content: '+';
  content: '+' / '';
  position: absolute;
  left: calc(var(--deal-gap) / -2);
  top: -.1rem;
  translate: -50% 0;
  color: var(--muted-dark);
  font: 400 1rem/1 'Michroma', sans-serif
}

/* O que fica consigo: com um visto, o mesmo do papel de notas do ecrã ao lado (lá, cada
   pedido é riscado quando fica resolvido; aqui, cada passo tem o seu ganho "riscado") */
.deal-get {
  position: relative;
  grid-column: 1 / -1;
  margin-top: 28px;
  padding-left: 40px
}

.deal-tick {
  position: absolute;
  left: 0;
  top: 2px;
  width: 24px;
  height: 24px;
  overflow: visible;
  rotate: -4deg;
  fill: none;
  stroke: var(--amber);
  stroke-linecap: round;
  stroke-linejoin: round
}

.deal-tick rect {
  stroke-width: 2
}

.deal-tick path {
  stroke-width: 2.6
}

.deal-get dt {
  color: var(--amber)
}

.deal-get dd {
  margin: 6px 0 0;
  color: var(--cream);
  font-size: clamp(1.1rem, 1.3vw, 1.2rem);
  font-weight: 500;
  font-stretch: 108%;
  line-height: 1.35
}

/* Quando o passo fica atual: o "+" aparece, a caixa assenta, o visto risca-se e o
   ganho aparece */
@media (prefers-reduced-motion: no-preference) {
  .method.is-live .is-current .deal-us::before {
    animation: deal-pop .4s cubic-bezier(.3, 1.6, .5, 1) .15s both
  }

  .method.is-live .is-current .deal-tick rect {
    transform-box: fill-box;
    transform-origin: center;
    animation: deal-pop .4s cubic-bezier(.3, 1.6, .5, 1) .35s both
  }

  .method.is-live .is-current .deal-tick path {
    stroke-dasharray: 1;
    animation: deal-draw .45s var(--ease-out) .7s both
  }

  .method.is-live .is-current .deal-get dt,
  .method.is-live .is-current .deal-get dd {
    animation: deal-rise .5s ease .45s both
  }
}

@keyframes deal-pop {
  from {
    scale: 0
  }
}

@keyframes deal-draw {
  from {
    stroke-dashoffset: 1
  }

  to {
    stroke-dashoffset: 0
  }
}

/* Só opacidade: um "translate" no dt mudava a referência do visto (posição absoluta) */
@keyframes deal-rise {
  from {
    opacity: 0
  }
}

/* O palco: fica parado (sticky) à altura do ecrã enquanto os passos passam ao lado.
   A parte vazia de cima pode ficar por baixo do texto do cabeçalho: não apanha cliques */
.method-stage {
  position: sticky;
  top: var(--stage-top);
  height: var(--stage-h);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(22px, 2.6vw, 34px);
  pointer-events: none
}

.method-stage > * {
  pointer-events: auto
}

.method-rail,
.pw {
  width: min(100%, calc((var(--stage-h) - 120px) * 1.39));
  margin-inline: auto
}

/* A linha do projeto: um ponto por passo; enche até ao passo atual e leva lá ao clicar */
.method-rail {
  --p: 0;
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr))
}

.method-rail::before,
.method-rail::after {
  content: '';
  position: absolute;
  left: 10%;
  top: 7px;
  height: 2px;
  border-radius: 2px
}

.method-rail::before {
  right: 10%;
  background: #2a2f36
}

.method-rail::after {
  width: calc(80% * var(--p));
  background: var(--amber);
  box-shadow: 0 0 8px rgba(233, 162, 59, .5);
  transition: width .6s var(--ease-out)
}

.method-rail button {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 0 2px 4px;
  border: 0;
  background: none;
  color: var(--muted-dark);
  font: 600 .68rem/1.2 var(--sans);
  font-stretch: 112%;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color .3s
}

/* Um nome comprido ("Primeiro contacto") pode sair um pouco da coluna para os lados; se nem
   assim couber, passa a duas linhas em vez de ser cortado */
.method-rail span {
  width: max-content;
  max-width: calc(100% + 30px);
  text-align: center;
  text-wrap: balance
}

.method-rail i {
  width: 16px;
  height: 16px;
  border: 2px solid #2a2f36;
  border-radius: 50%;
  background: var(--night);
  box-shadow: 0 0 0 4px var(--night);
  transition: background .3s, border-color .3s, box-shadow .3s, transform .3s
}

.method-rail button:hover {
  color: var(--cream)
}

.method-rail button:hover i {
  border-color: rgba(232, 163, 61, .7)
}

.method-rail .is-past i {
  border-color: var(--amber);
  background: var(--amber)
}

.method-rail [aria-current] {
  color: var(--cream)
}

.method-rail [aria-current] i {
  border-color: var(--amber);
  background: var(--amber);
  box-shadow: 0 0 0 4px var(--night), 0 0 16px rgba(233, 162, 59, .65);
  transform: scale(1.2)
}

/* ——— O ecrã partilhado ——— */
.pw {
  position: relative;
  container-type: inline-size;
  aspect-ratio: 100 / 70;
  color: var(--cream);
  font-family: var(--sans);
  line-height: 1.3;
  user-select: none;
  pointer-events: none
}

/* O que só existe em certos passos: data-in="345" = visível nos passos 3, 4 e 5 */
.pw [data-in] {
  opacity: 0;
  visibility: hidden;
  transition: opacity .45s ease, visibility 0s linear .45s
}

.pw[data-step="1"] [data-in*="1"],
.pw[data-step="2"] [data-in*="2"],
.pw[data-step="3"] [data-in*="3"],
.pw[data-step="4"] [data-in*="4"],
.pw[data-step="5"] [data-in*="5"] {
  opacity: 1;
  visibility: visible;
  transition: opacity .45s ease
}

/* Textos que trocam de passo para passo (endereço, estado, etiqueta do cursor) */
.pw [data-on] {
  display: none
}

.pw[data-step="1"] [data-on*="1"],
.pw[data-step="2"] [data-on*="2"],
.pw[data-step="3"] [data-on*="3"],
.pw[data-step="4"] [data-on*="4"],
.pw[data-step="5"] [data-on*="5"] {
  display: inline
}

.pw-window {
  position: absolute;
  left: 4cqw;
  top: 0;
  z-index: 1;
  width: 92cqw;
  height: 60cqw;
  border-radius: 1.8cqw;
  background: var(--night-2);
  box-shadow: 0 0 0 1px rgba(243, 239, 232, .12), 0 3cqw 8cqw rgba(0, 0, 0, .45);
  overflow: hidden
}

.pw-bar {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 5.5cqw;
  display: flex;
  align-items: center;
  gap: 2cqw;
  padding: 0 1.8cqw;
  border-bottom: 1px solid rgba(243, 239, 232, .08)
}

.pw-dots {
  display: flex;
  gap: .8cqw
}

.pw-dots i {
  width: 1.1cqw;
  height: 1.1cqw;
  border-radius: 50%;
  background: rgba(243, 239, 232, .18)
}

.pw-url {
  flex: 1;
  min-width: 0;
  height: 3.2cqw;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .8cqw;
  padding: 0 2cqw;
  border-radius: 99px;
  background: rgba(243, 239, 232, .06);
  color: var(--muted-dark);
  font-size: 1.5cqw;
  white-space: nowrap;
  overflow: hidden
}

.pw-url-idea {
  font-style: italic;
  opacity: .7
}

.pw-lock {
  width: 1.2cqw;
  height: auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6
}

.pw-status {
  display: flex;
  align-items: center;
  gap: .8cqw;
  min-width: 17cqw;
  justify-content: flex-end;
  color: var(--amber);
  font-size: 1.3cqw;
  font-weight: 700;
  font-stretch: 112%;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color .4s
}

.pw-status i {
  width: 1.1cqw;
  height: 1.1cqw;
  border-radius: 50%;
  background: currentColor
}

.pw[data-step="4"] .pw-status,
.pw[data-step="5"] .pw-status {
  color: #5fd08f
}

.pw-screen {
  position: absolute;
  left: 0;
  right: 0;
  top: 5.5cqw;
  bottom: 0;
  overflow: hidden;
  background: var(--paper)
}

.pw-layer {
  position: absolute;
  inset: 0
}

/* 1. Primeiro contacto: um bloco de notas com a conversa; as palavras que contam ficam sublinhadas */
.pw-talk {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2cqw;
  padding: 3.6cqw 0 0 3.6cqw;
  background-color: var(--paper);
  background-image: radial-gradient(circle, rgba(18, 22, 28, .14) .14cqw, transparent .2cqw);
  background-size: 2.4cqw 2.4cqw
}

.pw-msg {
  max-width: 48cqw;
  padding: 1.4cqw 2.2cqw 1.6cqw;
  border-radius: 2cqw 2cqw 2cqw .5cqw;
  background: #fff;
  color: var(--ink);
  font-size: 2.3cqw;
  line-height: 1.36;
  box-shadow: 0 .4cqw 1.4cqw rgba(18, 22, 28, .1)
}

.pw-msg b {
  display: block;
  margin-bottom: .3cqw;
  color: var(--muted-light);
  font-size: 1.25cqw;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase
}

.pw-msg-us {
  margin-left: 6cqw;
  border-radius: 2cqw 2cqw .5cqw 2cqw;
  background: var(--night);
  color: var(--cream)
}

.pw-msg-us b {
  color: var(--amber)
}

.pw-msg mark {
  padding: 0 .1em;
  color: inherit;
  background: linear-gradient(rgba(232, 163, 61, .55), rgba(232, 163, 61, .55)) 0 90% / 100% 42% no-repeat
}

/* 2. Esboço: a planta (o mesmo desenho do modo raio-X), com etiquetas em cada peça */
.pw-plan {
  background-color: #0a1624;
  background-image:
    linear-gradient(rgba(232, 163, 61, .14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232, 163, 61, .14) 1px, transparent 1px),
    linear-gradient(rgba(243, 239, 232, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(243, 239, 232, .05) 1px, transparent 1px);
  background-size: 12cqw 12cqw, 12cqw 12cqw, 3cqw 3cqw, 3cqw 3cqw;
  background-position: -1px -1px
}

.pw-p {
  outline: 1px dashed rgba(232, 163, 61, .75);
  border-radius: .6cqw
}

.pw-p[data-l]::after {
  content: attr(data-l);
  position: absolute;
  left: 0;
  bottom: 100%;
  padding: .15cqw .7cqw .1cqw;
  border-radius: .4cqw .4cqw 0 0;
  background: var(--amber);
  color: var(--night);
  font: 600 1.1cqw/1.35 var(--sans);
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap
}

/* Geometria comum à planta e ao site: a linha que varre a planta mostra o site no mesmo sítio */
.pw-logo-box {
  position: absolute;
  left: 4cqw;
  top: 3cqw;
  width: 17cqw;
  height: 4cqw
}

.pw-nav-box {
  position: absolute;
  right: 4cqw;
  top: 4.5cqw;
  display: flex;
  gap: 2.4cqw
}

.pw-nav-box i {
  width: 7cqw;
  height: 1cqw;
  border-radius: 1cqw;
  background: rgba(243, 239, 232, .3)
}

.pw-head {
  position: absolute;
  left: 4cqw;
  right: 4cqw;
  top: 3cqw;
  height: 4cqw;
  display: flex;
  align-items: center;
  justify-content: space-between
}

.pw-hero {
  position: absolute;
  left: 4cqw;
  top: 11.5cqw;
  width: 44cqw
}

.pw-title {
  position: relative;
  font-size: 3.9cqw;
  font-weight: 600;
  font-stretch: 125%;
  line-height: 1.08;
  letter-spacing: -.02em;
  text-wrap: balance
}

.pw-sub {
  display: block;
  margin-top: 1.4cqw;
  color: var(--muted-light);
  font-size: 1.6cqw;
  line-height: 1.5
}

.pw-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 5cqw;
  margin-top: 2.6cqw;
  padding: 0 2.6cqw;
  border-radius: 99px;
  background: var(--amber);
  color: var(--night);
  font-size: 1.6cqw;
  font-weight: 700;
  font-stretch: 112%;
  white-space: nowrap;
  transform-origin: 0 50%
}

.pw-img {
  position: absolute;
  left: 52cqw;
  top: 11cqw;
  width: 36cqw;
  height: 26cqw;
  border-radius: 1.2cqw
}

.pw-cards {
  position: absolute;
  left: 4cqw;
  top: 41cqw;
  width: 84cqw;
  height: 10cqw;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3cqw
}

.pw-plan .pw-title {
  color: transparent;
  -webkit-text-stroke: 1px var(--cream)
}

.pw-plan .pw-sub {
  width: 28cqw;
  height: 2.4cqw;
  background: linear-gradient(rgba(243, 239, 232, .3), rgba(243, 239, 232, .3)) 0 50% / 100% 1cqw no-repeat;
  border-radius: 1cqw
}

.pw-plan .pw-btn {
  outline: 1px solid var(--amber)
}

.pw-plan .pw-img {
  background:
    linear-gradient(to top right, transparent calc(50% - 1px), rgba(232, 163, 61, .45) 50%, transparent calc(50% + 1px)),
    linear-gradient(to bottom right, transparent calc(50% - 1px), rgba(232, 163, 61, .45) 50%, transparent calc(50% + 1px))
}

.pw-plan .pw-cards {
  outline-offset: .8cqw
}

.pw-plan .pw-cards[data-l]::after {
  left: -.8cqw;
  bottom: calc(100% + .8cqw)
}

.pw-plan .pw-cards i {
  border-radius: .8cqw;
  outline: 1px dashed rgba(243, 239, 232, .35)
}

/* "Pedido enviado": a primeira parte já funciona a sério */
.pw-sent {
  position: absolute;
  left: 24cqw;
  top: 26.8cqw;
  display: flex;
  align-items: center;
  gap: .8cqw;
  padding: .9cqw 1.4cqw;
  border-radius: .8cqw;
  background: var(--cream);
  color: var(--ink);
  font-size: 1.45cqw;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 .6cqw 1.6cqw rgba(0, 0, 0, .3)
}

.pw-sent::before {
  content: '';
  width: 1.8cqw;
  height: 1.8cqw;
  background: #3aa76d;
  -webkit-mask: var(--ico-check) center / contain no-repeat;
  mask: var(--ico-check) center / contain no-repeat
}

/* 3 a 5. O site a sério */
.pw-site {
  background: var(--paper);
  color: var(--ink)
}

/* No passo 5 o site fica um pouco mais escuro, para o painel de manutenção sobressair */
.pw-site::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--night);
  opacity: 0;
  transition: opacity .5s ease
}

.pw[data-step="5"] .pw-site::after {
  opacity: .3
}

.pw-logo {
  display: flex;
  align-items: center;
  gap: .8cqw;
  font-size: 1.75cqw;
  font-weight: 700;
  font-stretch: 112%;
  white-space: nowrap
}

.pw-logo i {
  flex: none;
  width: 2.2cqw;
  height: 2.2cqw;
  border-radius: 50%;
  background: radial-gradient(circle, var(--ink) 30%, var(--amber) 33%)
}

.pw-nav {
  display: flex;
  gap: 2.4cqw;
  color: var(--muted-light);
  font-size: 1.4cqw
}

.pw-site .pw-img {
  overflow: hidden;
  background: linear-gradient(160deg, #f6d9a4, #eeb15a 55%, #d58e35)
}

.pw-site .pw-img i {
  position: absolute;
  border-radius: 50%
}

.pw-site .pw-img i:first-child {
  right: 6cqw;
  top: 4cqw;
  width: 6.5cqw;
  height: 6.5cqw;
  background: var(--paper)
}

.pw-site .pw-img i:last-child {
  left: -8cqw;
  bottom: -15cqw;
  width: 40cqw;
  height: 26cqw;
  background: #b9741f;
  box-shadow: 24cqw 4cqw 0 -2cqw #8f5615
}

.pw-site .pw-cards > span {
  display: flex;
  flex-direction: column;
  gap: .8cqw;
  padding: .9cqw;
  border-radius: 1cqw;
  background: #fff;
  box-shadow: 0 .3cqw 1cqw rgba(18, 22, 28, .08)
}

.pw-site .pw-cards > span::before {
  content: '';
  flex: 1;
  border-radius: .6cqw;
  background: #ead9bb
}

.pw-site .pw-cards > span:nth-child(2)::before {
  background: #f1c47c
}

.pw-site .pw-cards > span:nth-child(3)::before {
  background: #2a2f36
}

.pw-cards i,
.pw-card i {
  display: block;
  width: 70%;
  height: .9cqw;
  border-radius: 1cqw;
  background: rgba(18, 22, 28, .2)
}

.pw-site .pw-cards i + i,
.pw-card i + i {
  width: 36%;
  background: var(--amber)
}

.pw-plan .pw-cards i {
  width: auto;
  height: auto;
  background: none
}

/* A linha âmbar que varre a planta e deixa o site para trás */
.pw-scan {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  z-index: 2;
  width: .4cqw;
  margin-left: -.2cqw;
  background: var(--amber);
  box-shadow: 0 0 1.6cqw .4cqw rgba(232, 163, 61, .55);
  opacity: 0
}

/* O comentário de quem acompanha a obra */
.pw-pin {
  position: absolute;
  left: 19cqw;
  top: 21cqw;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: .8cqw;
  padding: .7cqw 1.4cqw .7cqw .8cqw;
  border-radius: 2cqw 2cqw 2cqw .4cqw;
  background: #fff;
  color: var(--ink);
  font-size: 1.5cqw;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 .6cqw 1.8cqw rgba(18, 22, 28, .22)
}

.pw-pin i {
  width: 2cqw;
  height: 2cqw;
  border: .3cqw solid var(--night);
  border-radius: 50%;
  background: var(--cream)
}

/* 4. No ar */
.pw-deploy {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 4;
  width: 100%;
  height: .5cqw;
  background: var(--amber);
  transform-origin: 0 50%;
  opacity: 0
}

.pw-toast {
  position: absolute;
  right: 3cqw;
  z-index: 3;
  width: 33cqw;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 1.2cqw;
  align-items: center;
  padding: 1.1cqw 1.6cqw;
  border-radius: 1.2cqw;
  background: var(--night);
  color: var(--cream);
  box-shadow: 0 1cqw 3cqw rgba(13, 17, 23, .35)
}

.pw-toast-1 {
  top: 2.4cqw
}

.pw-toast-2 {
  top: 9.8cqw
}

.pw-toast svg {
  grid-row: span 2;
  width: 2.6cqw;
  height: 2.6cqw;
  fill: none;
  stroke: var(--amber);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round
}

.pw-toast b {
  font-size: 1.55cqw;
  font-weight: 600
}

.pw-toast small {
  color: var(--muted-dark);
  font-size: 1.2cqw
}

/* A ORNTEK a ensinar: onde chegam os pedidos */
.pw-tip {
  position: absolute;
  right: 3cqw;
  top: 18.6cqw;
  z-index: 3;
  padding: .8cqw 1.4cqw;
  border-radius: .8cqw;
  background: var(--amber);
  color: var(--night);
  font-size: 1.45cqw;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 .6cqw 1.6cqw rgba(13, 17, 23, .25)
}

.pw-tip::before {
  content: '';
  position: absolute;
  right: 5cqw;
  bottom: 100%;
  border: .8cqw solid transparent;
  border-bottom-color: var(--amber)
}

/* 5. Manutenção: o painel de estado, sempre de olho */
.pw-care {
  position: absolute;
  left: 32cqw;
  top: 8cqw;
  z-index: 3;
  width: 42cqw;
  padding: 2cqw 2.4cqw 2.2cqw;
  border-radius: 1.6cqw;
  background: var(--night);
  color: var(--cream);
  box-shadow: 0 0 0 1px rgba(243, 239, 232, .1), 0 2cqw 5cqw rgba(13, 17, 23, .45)
}

.pw-care-head {
  display: flex;
  align-items: center;
  gap: .9cqw;
  font-size: 1.8cqw;
  font-weight: 600;
  font-stretch: 112%
}

.pw-care-head i {
  width: 1.3cqw;
  height: 1.3cqw;
  border-radius: 50%;
  background: #5fd08f;
  box-shadow: 0 0 0 .5cqw rgba(95, 208, 143, .18)
}

.pw-care-head small {
  margin-left: auto;
  color: var(--muted-dark);
  font-size: 1.25cqw;
  font-weight: 500
}

.pw-days {
  color: var(--cream);
  font-weight: 700;
  counter-reset: pw-days var(--pw-days)
}

.pw-days::after {
  content: counter(pw-days)
}

.pw-beat {
  display: block;
  width: 100%;
  height: auto;
  margin: 1.4cqw 0 1.2cqw;
  overflow: visible
}

.pw-beat path {
  fill: none;
  stroke: var(--amber);
  stroke-width: 1;
  stroke-linecap: round;
  stroke-linejoin: round
}

.pw-care ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 1cqw
}

.pw-care li {
  display: flex;
  align-items: center;
  gap: 1cqw;
  padding-top: 1cqw;
  border-top: 1px solid rgba(243, 239, 232, .08);
  font-size: 1.45cqw
}

.pw-care li::before {
  content: '';
  flex: none;
  width: 1.8cqw;
  height: 1.8cqw;
  background: var(--amber);
  -webkit-mask: var(--ico-check) center / contain no-repeat;
  mask: var(--ico-check) center / contain no-repeat
}

.pw-care li small {
  margin-left: auto;
  color: var(--muted-dark);
  font-size: 1.2cqw
}

/* O papel de notas: escrito na conversa (grande, ao lado), depois fica colado ao canto
   do projeto e cada pedido é riscado quando fica resolvido */
.pw-note {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 4;
  width: 27cqw;
  padding: 2.2cqw 2.2cqw 2.4cqw;
  border-radius: .3cqw;
  background: #f6dc9f;
  color: var(--ink);
  box-shadow: 0 1.2cqw 2.6cqw rgba(0, 0, 0, .35);
  transform-origin: 0 0;
  transform: translate(64.5cqw, 10cqw) rotate(2.5deg);
  transition: transform .8s var(--ease-out)
}

.pw:not([data-step="1"]) .pw-note {
  transform: translate(-1cqw, 50.5cqw) rotate(-4deg) scale(.62)
}

.pw-note::before {
  content: '';
  position: absolute;
  left: 50%;
  top: -1.2cqw;
  width: 9cqw;
  height: 2.6cqw;
  margin-left: -4.5cqw;
  background: rgba(243, 239, 232, .6);
  transform: rotate(-3deg)
}

.pw-note p {
  margin-bottom: 1.3cqw;
  color: rgba(18, 22, 28, .55);
  font-size: 1.3cqw;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase
}

.pw-note ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 1.1cqw
}

.pw-note li {
  position: relative;
  padding-left: 3.2cqw;
  font-size: 1.95cqw;
  font-weight: 600;
  font-stretch: 80%;
  line-height: 1.2
}

.pw-note li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .1cqw;
  width: 2cqw;
  height: 2cqw;
  border: .25cqw solid currentColor;
  border-radius: .4cqw
}

.pw-note li::after {
  content: '';
  position: absolute;
  left: .6cqw;
  top: -.5cqw;
  width: 1.1cqw;
  height: 2.1cqw;
  border: solid #b4600a;
  border-width: 0 .5cqw .5cqw 0;
  transform: rotate(40deg);
  opacity: 0
}

.pw[data-step="2"] [data-done*="2"]::after,
.pw[data-step="3"] [data-done*="3"]::after,
.pw[data-step="4"] [data-done*="4"]::after,
.pw[data-step="5"] [data-done*="5"]::after {
  opacity: 1
}

/* O telemóvel: o mesmo site, arrumado numa coluna */
.pw-phone {
  position: absolute;
  left: 81cqw;
  top: 29cqw;
  z-index: 3;
  width: 16.5cqw;
  height: 35cqw;
  padding: .8cqw;
  border-radius: 2.8cqw;
  background: #05070a;
  box-shadow: 0 0 0 1px rgba(243, 239, 232, .22), 0 2cqw 5cqw rgba(0, 0, 0, .55)
}

.pw-phone::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 1.5cqw;
  z-index: 1;
  width: 4.4cqw;
  height: 1.2cqw;
  margin-left: -2.2cqw;
  border-radius: 1cqw;
  background: #05070a
}

.pw-phone-screen {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.3cqw;
  padding: 3.6cqw 1.5cqw 1.5cqw;
  border-radius: 2.1cqw;
  background: var(--paper);
  color: var(--ink);
  overflow: hidden
}

.pw-phone .pw-logo {
  gap: .5cqw;
  font-size: 1.1cqw
}

.pw-phone .pw-logo i {
  width: 1.4cqw;
  height: 1.4cqw
}

.pw-phone .pw-title {
  font-size: 2.1cqw
}

.pw-phone .pw-btn {
  height: 3.2cqw;
  margin-top: 0;
  padding: 0 1.5cqw;
  font-size: 1.1cqw
}

.pw-card {
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: .6cqw;
  padding: .7cqw;
  border-radius: .8cqw;
  background: #fff;
  box-shadow: 0 .3cqw 1cqw rgba(18, 22, 28, .08)
}

.pw-card::before {
  content: '';
  flex: 1;
  border-radius: .5cqw;
  background: linear-gradient(160deg, #f6d9a4, #eeb15a 55%, #d58e35)
}

.pw-card i {
  height: .7cqw
}

/* O clique: um anel que se abre onde o cursor carrega */
.pw-ripple {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 5;
  width: 6cqw;
  height: 6cqw;
  margin: -3cqw 0 0 -3cqw;
  border: .35cqw solid var(--amber);
  border-radius: 50%;
  opacity: 0
}

.pw-ripple-2 {
  left: 16cqw;
  top: 34.5cqw
}

.pw-ripple-4 {
  left: 74cqw;
  top: 11cqw
}

/* Os dois cursores: o seu (creme) e o nosso (âmbar). Posição de repouso de cada passo
   (é também onde as animações terminam, e o que se vê com "reduzir movimento") */
.pw-cursor {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 6;
  opacity: 0;
  translate: 50cqw 30cqw
}

.pw-cursor svg {
  display: block;
  width: 2.2cqw;
  height: auto;
  overflow: visible;
  filter: drop-shadow(0 .3cqw .5cqw rgba(0, 0, 0, .35))
}

.pw-cursor path {
  stroke: var(--night);
  stroke-width: 1.2;
  stroke-linejoin: round
}

.pw-you path {
  fill: var(--cream)
}

.pw-us path {
  fill: var(--amber)
}

.pw-cursor b {
  position: absolute;
  left: 1.7cqw;
  top: 2.3cqw;
  padding: .2cqw .8cqw .25cqw;
  border-radius: .5cqw;
  color: var(--night);
  font-size: 1.25cqw;
  font-weight: 700;
  font-stretch: 112%;
  line-height: 1.35;
  white-space: nowrap;
  box-shadow: 0 .3cqw .8cqw rgba(0, 0, 0, .25)
}

.pw-you b {
  background: var(--cream)
}

.pw-us b {
  background: var(--amber)
}

.pw[data-step] .pw-cursor {
  opacity: 1
}

.pw[data-step="1"] .pw-you { translate: 20cqw 50cqw }
.pw[data-step="1"] .pw-us { translate: 86cqw 25.5cqw }
.pw[data-step="2"] .pw-you { translate: 16cqw 34.5cqw }
.pw[data-step="2"] .pw-us { translate: 34cqw 47cqw }
.pw[data-step="3"] .pw-you { translate: 36cqw 47cqw }
.pw[data-step="3"] .pw-us { translate: 22cqw 39cqw }
.pw[data-step="4"] .pw-you { translate: 74cqw 11cqw }
.pw[data-step="4"] .pw-us { translate: 69cqw 26cqw }
.pw[data-step="5"] .pw-you { translate: 16cqw 50cqw }
.pw[data-step="5"] .pw-us { translate: 73cqw 31cqw }

/* Antes de o ecrã aparecer, as animações esperam (senão acabavam sem ninguém ver) */
.pw.is-waiting,
.pw.is-waiting *,
.pw.is-waiting *::before,
.pw.is-waiting *::after {
  animation-play-state: paused !important
}

/* ——— O filme de cada passo (só com movimento; sem ele vê-se logo o fim de cada passo) ——— */
@media (prefers-reduced-motion: no-preference) {
  .pw-status i {
    transition: box-shadow .4s
  }

  .pw[data-step="4"] .pw-status i,
  .pw[data-step="5"] .pw-status i {
    animation: pw-live 1.8s ease-out infinite
  }

  /* 1. Primeiro contacto */
  .pw[data-step="1"] .pw-msg {
    animation: pw-pop .45s var(--ease-out) var(--d) both
  }

  .pw[data-step="1"] .pw-msg mark {
    animation: pw-mark .5s var(--ease-out) var(--d) both
  }

  .pw[data-step="1"] .pw-note {
    animation: pw-stick .55s var(--ease-out) .5s both
  }

  .pw[data-step="1"] .pw-note li {
    animation: pw-write .6s var(--ease-out) var(--d) both
  }

  .pw[data-step="1"] .pw-you {
    animation: pw-you-1 4.5s var(--ease) both
  }

  .pw[data-step="1"] .pw-us {
    animation: pw-us-1 4.5s var(--ease) both
  }

  /* 2. Esboço: as peças desenham-se uma a uma; o botão ganha vida e é experimentado */
  .pw[data-step="2"] :is(.pw-logo-box, .pw-nav-box, .pw-plan .pw-title, .pw-plan .pw-sub, .pw-plan .pw-img, .pw-plan .pw-cards) {
    animation: pw-pop .45s var(--ease-out) var(--d) both
  }

  .pw[data-step="2"] .pw-plan .pw-btn {
    animation: pw-pop .45s var(--ease-out) var(--d) both, pw-btn-live .35s ease 2.25s both
  }

  .pw[data-step="2"] .pw-plan .pw-btn::after {
    animation: pw-pop .35s var(--ease-out) 2.3s both
  }

  .pw[data-step="2"] .pw-sent {
    animation: pw-pop .4s var(--ease-out) 3.35s both
  }

  .pw[data-step="2"] .pw-ripple-2 {
    animation: pw-ripple .6s ease-out 3.15s forwards
  }

  .pw[data-step="2"] .pw-you {
    animation: pw-you-2 4.5s var(--ease) both
  }

  .pw[data-step="2"] .pw-us {
    animation: pw-us-2 4.5s var(--ease) both
  }

  /* 3. Construção: a linha varre a planta e deixa o site; o telemóvel; o comentário */
  .pw[data-step="3"] .pw-site {
    animation: pw-reveal 1.4s cubic-bezier(.45, 0, .2, 1) .2s both
  }

  .pw[data-step="3"] .pw-scan {
    animation: pw-scan 1.4s cubic-bezier(.45, 0, .2, 1) .2s both
  }

  .pw[data-step="3"] .pw-phone {
    animation: pw-rise .7s var(--ease-out) 1.8s both
  }

  .pw[data-step="3"] .pw-pin {
    animation: pw-pin 1.9s ease 3.2s both
  }

  .pw[data-step="3"] .pw-site .pw-btn {
    animation: pw-grow .45s cubic-bezier(.3, 1.6, .5, 1) 4.35s both
  }

  .pw[data-step="3"] .pw-you {
    animation: pw-you-3 5.5s var(--ease) both
  }

  .pw[data-step="3"] .pw-us {
    animation: pw-us-3 5.5s var(--ease) both
  }

  /* 4. Lançamento: publicar, os primeiros pedidos, a explicação */
  .pw[data-step="4"] .pw-deploy {
    animation: pw-deploy 1.2s var(--ease) .1s both
  }

  .pw[data-step="4"] .pw-toast-1 {
    animation: pw-slide .5s var(--ease-out) 1.4s both
  }

  .pw[data-step="4"] .pw-toast-2 {
    animation: pw-slide .5s var(--ease-out) 3s both
  }

  .pw[data-step="4"] .pw-tip {
    animation: pw-pop .4s var(--ease-out) 2.5s both
  }

  .pw[data-step="4"] .pw-ripple-4 {
    animation: pw-ripple .6s ease-out 4s forwards
  }

  .pw[data-step="4"] .pw-you {
    animation: pw-you-4 5s var(--ease) both
  }

  .pw[data-step="4"] .pw-us {
    animation: pw-us-4 5s var(--ease) both
  }

  /* 5. Manutenção: o painel, os dias a passar e o pulso sempre a bater */
  .pw[data-step="5"] .pw-care {
    animation: pw-rise .6s var(--ease-out) .15s both
  }

  .pw[data-step="5"] .pw-care li {
    animation: pw-pop .4s var(--ease-out) var(--d) both
  }

  .pw[data-step="5"] .pw-days {
    animation: pw-days 2.6s cubic-bezier(.2, .7, .25, 1) .6s both
  }

  .pw[data-step="5"] .pw-beat path {
    stroke-dasharray: 1;
    animation: pw-beat 2.4s var(--ease) .5s infinite both
  }

  .pw[data-step="5"] .pw-you {
    animation: pw-you-5 1.6s var(--ease) both
  }

  .pw[data-step="5"] .pw-us {
    animation: pw-us-5 1.4s var(--ease) both, pw-us-5-loop 4.5s var(--ease) 1.4s infinite
  }

  /* Os vistos no papel: cada pedido é riscado no passo em que fica resolvido */
  .pw[data-step="2"] [data-done^="2"]::after,
  .pw[data-step="3"] [data-done^="3"]::after,
  .pw[data-step="4"] [data-done^="4"]::after {
    animation: pw-tick .4s cubic-bezier(.3, 1.6, .5, 1) var(--t) both
  }
}

@keyframes pw-pop {
  from {
    opacity: 0;
    translate: 0 1.2cqw;
    scale: .96
  }
}

@keyframes pw-mark {
  from {
    background-size: 0 42%
  }
}

@keyframes pw-stick {
  from {
    opacity: 0;
    scale: 1.12
  }
}

@keyframes pw-write {
  from {
    clip-path: inset(-30% 100% -30% 0)
  }

  to {
    clip-path: inset(-30% -10% -30% 0)
  }
}

@keyframes pw-tick {
  from {
    opacity: 0;
    scale: .2
  }
}

@keyframes pw-btn-live {
  from {
    background: transparent;
    color: rgba(243, 239, 232, .6);
    outline-color: rgba(232, 163, 61, .75);
    outline-style: dashed
  }
}

@keyframes pw-ripple {
  from {
    opacity: 1;
    scale: .2
  }

  to {
    opacity: 0;
    scale: 1.5
  }
}

@keyframes pw-reveal {
  from {
    clip-path: inset(0 100% 0 0)
  }

  to {
    clip-path: inset(0 0 0 0)
  }
}

@keyframes pw-scan {
  0% {
    opacity: 1;
    translate: 0 0
  }

  92% {
    opacity: 1
  }

  100% {
    opacity: 0;
    translate: 92cqw 0
  }
}

@keyframes pw-rise {
  from {
    opacity: 0;
    translate: 0 8cqw
  }
}

@keyframes pw-pin {
  0% {
    opacity: 0;
    scale: .6
  }

  12%,
  78% {
    opacity: 1;
    scale: 1
  }

  100% {
    opacity: 0;
    scale: .9
  }
}

@keyframes pw-grow {
  from {
    scale: .84
  }
}

@keyframes pw-deploy {
  0% {
    opacity: 1;
    scale: 0 1
  }

  80% {
    opacity: 1;
    scale: 1 1
  }

  100% {
    opacity: 0;
    scale: 1 1
  }
}

@keyframes pw-slide {
  from {
    opacity: 0;
    translate: 6cqw 0
  }
}

@keyframes pw-days {
  from {
    --pw-days: 1
  }
}

@keyframes pw-beat {
  0% {
    stroke-dashoffset: 1;
    opacity: 1
  }

  65% {
    stroke-dashoffset: 0;
    opacity: 1
  }

  100% {
    stroke-dashoffset: 0;
    opacity: .15
  }
}

@keyframes pw-live {
  0% {
    box-shadow: 0 0 0 0 rgba(95, 208, 143, .6)
  }

  100% {
    box-shadow: 0 0 0 1cqw rgba(95, 208, 143, 0)
  }
}

/* Os caminhos dos cursores, passo a passo (em cqw do .pw; o último ponto é o de repouso) */
@keyframes pw-you-1 {
  0% { opacity: 0; translate: 52cqw 22cqw }
  7% { opacity: 1; translate: 50cqw 19cqw }
  18%, 26% { translate: 42cqw 15.5cqw }
  54% { translate: 50cqw 45cqw }
  68% { translate: 40cqw 41.5cqw }
  79% { translate: 13cqw 44.5cqw }
  100% { opacity: 1; translate: 20cqw 50cqw }
}

@keyframes pw-us-1 {
  0%, 28% { opacity: 0; translate: 64cqw 34cqw }
  32% { opacity: 1; translate: 58cqw 31cqw }
  44% { translate: 67cqw 18cqw }
  52% { translate: 86cqw 18.5cqw }
  74% { translate: 67cqw 21.5cqw }
  82% { translate: 84cqw 22cqw }
  86% { translate: 67cqw 25cqw }
  96%, 100% { opacity: 1; translate: 86cqw 25.5cqw }
}

@keyframes pw-you-2 {
  0%, 48% { opacity: 0; translate: 42cqw 62cqw }
  55% { opacity: 1; translate: 36cqw 54cqw }
  68% { translate: 16cqw 34.5cqw; scale: 1 }
  70% { scale: .8 }
  74%, 100% { opacity: 1; translate: 16cqw 34.5cqw; scale: 1 }
}

@keyframes pw-us-2 {
  0% { opacity: 0; translate: 10cqw 14cqw }
  5% { opacity: 1 }
  8% { translate: 17cqw 11cqw }
  17% { translate: 40cqw 22cqw }
  26% { translate: 78cqw 30cqw }
  35% { translate: 60cqw 52cqw }
  45% { translate: 21cqw 34.5cqw }
  52% { translate: 22cqw 35.5cqw }
  64%, 100% { opacity: 1; translate: 34cqw 47cqw }
}

@keyframes pw-you-3 {
  0%, 46% { opacity: 0; translate: 40cqw 60cqw }
  52% { opacity: 1; translate: 34cqw 46cqw }
  57% { translate: 24.5cqw 28.2cqw; scale: 1 }
  59% { scale: .8 }
  62% { translate: 24.5cqw 28.2cqw; scale: 1 }
  74%, 100% { opacity: 1; translate: 36cqw 47cqw }
}

@keyframes pw-us-3 {
  0% { opacity: 0; translate: 4cqw 30cqw }
  4% { opacity: 1; translate: 4cqw 30cqw; animation-timing-function: cubic-bezier(.45, 0, .2, 1) }
  29% { translate: 95cqw 30cqw }
  40%, 68% { translate: 70cqw 52cqw }
  78% { translate: 20cqw 35.5cqw }
  100% { opacity: 1; translate: 22cqw 39cqw }
}

@keyframes pw-you-4 {
  0%, 58% { opacity: 0; translate: 40cqw 52cqw }
  64% { opacity: 1; translate: 46cqw 44cqw }
  78% { translate: 74cqw 11cqw; scale: 1 }
  80% { scale: .8 }
  83%, 100% { opacity: 1; translate: 74cqw 11cqw; scale: 1 }
}

@keyframes pw-us-4 {
  0% { opacity: 0; translate: 30cqw 44cqw }
  6% { opacity: 1 }
  44%, 100% { opacity: 1; translate: 69cqw 26cqw }
}

@keyframes pw-you-5 {
  0% { opacity: 0; translate: 26cqw 58cqw }
  25% { opacity: 1 }
  100% { opacity: 1; translate: 16cqw 50cqw }
}

@keyframes pw-us-5 {
  0% { opacity: 0; translate: 60cqw 52cqw }
  15% { opacity: 1 }
  100% { opacity: 1; translate: 73cqw 31cqw }
}

@keyframes pw-us-5-loop {
  0%, 100% { translate: 73cqw 31cqw }
  33% { translate: 73cqw 35cqw }
  66% { translate: 73cqw 27cqw }
}

/* A frase final e o convite para começar pelo primeiro passo */
.method-cta {
  max-width: var(--max);
  margin: clamp(32px, 5vw, 64px) auto 0;
  padding-top: clamp(28px, 3vw, 40px);
  border-top: 1px solid var(--line-dark);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px
}

.method-cta p {
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  font-weight: 500;
  font-stretch: 125%;
  line-height: 1.15;
  letter-spacing: -.01em
}

/* Telemóvel e tablet: uma coluna; o ecrã partilhado fica preso no topo e os passos passam
   por baixo dele (o fundo escuro do palco tapa o texto que já foi lido) */
@media (max-width: 900px) {
  .process .section-head {
    margin-bottom: 8px
  }

  .method {
    --stage-top: 0px;
    grid-template-columns: minmax(0, 1fr);
    gap: 0
  }

  .method-stage {
    order: -1;
    z-index: 4;
    height: auto;
    margin-inline: calc(-1 * var(--pad));
    padding: 76px var(--pad) 16px;
    gap: 16px;
    background: var(--night)
  }

  .method-stage::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 36px;
    background: linear-gradient(var(--night), rgba(13, 17, 23, 0));
    pointer-events: none
  }

  .method-rail,
  .pw {
    width: min(100%, calc(40svh * 1.43))
  }

  .method-step,
  .method-step:last-child {
    min-height: 60svh;
    justify-content: center;
    padding: 48px 0
  }

  .method-rail button {
    gap: 8px;
    font-size: .58rem;
    letter-spacing: .02em
  }
}

/* No telemóvel os nomes não cabem todos: fica só o do passo atual (os outros continuam
   lá, invisíveis, para os leitores de ecrã) */
@media (max-width: 580px) {
  .method-rail span {
    max-width: none;
    white-space: nowrap;
    opacity: 0;
    transition: opacity .3s
  }

  /* O primeiro está encostado à esquerda: o nome começa no ponto em vez de sair do ecrã */
  .method-rail button:first-child span {
    align-self: flex-start
  }

  .method-rail [aria-current] span {
    opacity: 1
  }

  .method-deal {
    --deal-gap: 26px;
    max-width: none
  }

  .method-deal dd {
    font-size: .92rem
  }

  .deal-get dd {
    font-size: 1.05rem
  }
}

/* Projetos */
.project-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(40px, 5vw, 64px) clamp(24px, 3vw, 40px)
}

.project-wide {
  grid-column: 1 / -1
}

.project-shot {
  aspect-ratio: 16 / 10;
  margin-bottom: 20px;
  padding: 5%;
  display: flex;
  flex-direction: column;
  gap: 5%;
  border-radius: 16px;
  background: #ebe6db;
  overflow: hidden
}

.project-wide .project-shot {
  aspect-ratio: 21 / 9;
  padding: 3.5% 5%
}

/* Captura de um site: ocupa o cartão todo, alinhada pelo topo da página */
.project-shot-img {
  aspect-ratio: 16 / 9;
  padding: 0
}

.project-shot-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top
}

/* App: as 6 imagens da App Store lado a lado, como na galeria da loja */
.project-wide .project-shot.project-shot-app {
  aspect-ratio: auto;
  padding: clamp(16px, 2.2vw, 28px);
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(8px, 1vw, 14px)
}

.project-shot-app img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(18, 22, 28, .14)
}

/* Em ecrãs estreitos: fita que se desliza na horizontal */
@media (max-width: 900px) {
  .project-wide .project-shot.project-shot-app {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: clamp(16px, 2.2vw, 28px);
    overscroll-behavior-x: contain;
    scrollbar-width: thin
  }

  .project-shot-app img {
    flex: none;
    width: min(44vw, 230px);
    scroll-snap-align: start
  }
}

/* Cartão da app (página de projetos): a galeria de capturas e, ao lado, o nome da app em
   ponto grande, o texto e os botões da App Store e do Google Play (centrados ao lado da
   galeria). No telemóvel: nome, galeria e texto, uns por baixo dos outros */
@media (min-width: 901px) {
  .project-app {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
    column-gap: clamp(24px, 4vw, 60px)
  }

  .project-app .app-feature {
    display: contents
  }

  .project-app .app-gallery {
    grid-column: 1;
    grid-row: 1 / span 2
  }

  .page-projects .project.project-app > h3 {
    grid-column: 2;
    grid-row: 1;
    align-self: end;
    margin-bottom: 16px;
    font-size: clamp(1.7rem, 2.6vw, 2.4rem);
    line-height: 1.08
  }

  .project-app .app-side {
    grid-column: 2;
    grid-row: 2;
    align-self: start
  }
}

.app-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 4vw, 60px)
}

/* A galeria: 3 capturas à vista e as outras a deslizar para o lado (setas, dedo,
   trackpad ou teclado), sempre a acertar no início de uma captura */
.app-gallery {
  --ag-gap: clamp(12px, 1.6vw, 22px);
  position: relative;
  min-width: 0
}

.project-app .project-shot.project-shot-app {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: var(--ag-gap);
  margin-bottom: 0;
  padding: clamp(18px, 2.6vw, 34px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: clamp(18px, 2.6vw, 34px);
  overscroll-behavior-x: contain;
  scrollbar-width: none
}

.project-app .project-shot-app::-webkit-scrollbar {
  display: none
}

.project-app .project-shot-app img {
  flex: none;
  width: calc((100% - 2 * var(--ag-gap)) / 3);
  border-radius: 16px;
  scroll-snap-align: start
}

/* As setas, nos lados da galeria; apagam-se no início e no fim */
.ag-btn {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-top: -23px;
  border: 0;
  border-radius: 50%;
  background: var(--night);
  color: var(--cream);
  box-shadow: 0 10px 22px -10px rgba(13, 17, 23, .7);
  cursor: pointer;
  transition: opacity .25s ease, scale .2s var(--ease-out)
}

.ag-btn[hidden] {
  display: none
}

.ag-prev {
  left: -16px
}

.ag-next {
  right: -16px
}

.ag-btn:hover {
  scale: 1.08
}

.ag-btn:disabled {
  opacity: 0;
  pointer-events: none
}

.ag-btn:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px
}

.ag-btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round
}

.app-side p {
  margin: 0 0 22px;
  font-size: 1.05rem;
  line-height: 1.55
}

.app-stores {
  display: flex;
  flex-wrap: wrap;
  gap: 12px
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 56px;
  padding: 0 20px 0 14px;
  border-radius: 12px;
  background: var(--night);
  color: var(--cream);
  text-decoration: none;
  transition: translate .2s var(--ease-out), box-shadow .2s ease
}

a.store-btn:hover {
  translate: 0 -2px;
  box-shadow: 0 12px 22px -12px rgba(13, 17, 23, .7)
}

a.store-btn:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px
}

.store-btn svg {
  flex: none;
  width: 26px;
  height: 26px;
  fill: currentColor
}

.store-btn .sb-line {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round
}

.sb-text {
  display: grid;
  white-space: nowrap
}

.sb-text small {
  font: 600 .62rem/1.2 var(--sans);
  letter-spacing: .05em;
  text-transform: uppercase;
  color: rgba(243, 239, 232, .7)
}

.sb-text strong {
  font: 700 1.15rem/1.15 var(--sans);
  letter-spacing: -.01em
}

@media (max-width: 900px) {
  .app-feature {
    grid-template-columns: minmax(0, 1fr)
  }

  .project-app .project-shot.project-shot-app {
    padding: clamp(16px, 2.2vw, 28px)
  }

  .project-app .project-shot-app img {
    width: min(58vw, 280px)
  }

  .ag-prev {
    left: 8px
  }

  .ag-next {
    right: 8px
  }
}

/* Sem isto, a fita da app alarga a coluna da grelha em vez de deslizar */
.project {
  min-width: 0
}

.project h3 {
  font-size: 1.3rem;
  font-stretch: 112%
}

.project p {
  max-width: 40em;
  margin-top: 4px;
  color: var(--muted-light)
}

/* Projetos (página /projetos.html): escolher um projeto mostra as capturas dele no palco à
   direita — a mesma mecânica dos Serviços, mas com fotografias reais em vez de desenhos. */
.prj-body {
  --prj-gap: clamp(40px, 6vw, 96px);
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--prj-gap);
  align-items: stretch
}

.prj-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid var(--line-light)
}

.prj-item {
  border-top: 1px solid var(--line-light)
}

.prj-list h3 {
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  line-height: 1.15;
  letter-spacing: -.01em
}

.prj-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  padding: clamp(14px, 1.6vw, 20px) 0;
  border: 0;
  background: none;
  color: var(--muted-light);
  font: inherit;
  letter-spacing: inherit;
  text-align: left;
  cursor: pointer;
  transition: color .25s
}

.prj-toggle:hover,
.prj-item.is-active .prj-toggle {
  color: var(--ink)
}

/* O nó e a pista repetem o motivo dos Serviços: acendem a âmbar no projeto escolhido */
.prj-node {
  position: relative;
  flex: none;
  width: 12px;
  height: 12px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  opacity: .5;
  transition: background .25s, border-color .25s, opacity .25s
}

.prj-item.is-active .prj-node {
  border-color: var(--amber);
  background: var(--amber);
  opacity: 1
}

.prj.is-live .prj-item.is-active .prj-node::after {
  content: '';
  position: absolute;
  left: 100%;
  top: 50%;
  width: calc(var(--prj-gap) + 2px);
  height: 2px;
  background: var(--amber);
  transform: translateY(-50%);
  transform-origin: left center
}

.prj-panel {
  display: grid;
  grid-template-rows: 1fr;
  transition: grid-template-rows .4s var(--ease-out)
}

.prj-panel-in {
  min-height: 0;
  overflow: hidden
}

.prj-panel p {
  max-width: 34em;
  color: var(--muted-light)
}

.prj-panel .text-link {
  display: inline-block;
  margin-top: 2px
}

.prj-panel p + .text-link {
  margin-top: -6px
}

.prj-panel-in > :last-child {
  margin-bottom: clamp(16px, 1.8vw, 22px)
}

.prj.is-live .prj-item:not(.is-active) .prj-panel {
  grid-template-rows: 0fr
}

/* O palco: um cartão só, à largura da coluna, onde as capturas do projeto escolhido aparecem.
   Proporção fixa (a mesma para todos): trocar de projeto nunca muda o tamanho do cartão. */
.prj-stage-home {
  display: flex;
  align-items: flex-start
}

.prj-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  background: #ebe6db;
  overflow: hidden
}

/* Trocar de projeto é um crossfade (opacity), não um corte seco: as duas
   cenas ficam sempre no DOM, sobrepostas, e só a opacity muda — por isso dá
   para transicionar (display:none/block não transiciona). */
.prj-scene {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity .5s var(--ease, ease)
}

.prj-scene.is-on {
  opacity: 1;
  pointer-events: auto
}

.prj-scene-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top
}

/* A app: as capturas da App Store em fita, inteiras (sem cortar o ecrã a meio
   do texto) — desliza para ver as outras */
.prj-scene-app {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: clamp(12px, 1.6vw, 20px);
  padding: clamp(16px, 2.2vw, 28px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: clamp(16px, 2.2vw, 28px);
  overscroll-behavior-x: contain;
  scrollbar-width: thin
}

.prj-scene-app img {
  flex: none;
  width: auto;
  height: 100%;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(18, 22, 28, .14);
  scroll-snap-align: start
}

/* Clientes: faixa infinita (como em eb-eventcatering.com) — cinzento; cor e destaque ao passar o rato */
.projects {
  padding-bottom: clamp(48px, 6vw, 80px)
}

.clients {
  padding: clamp(56px, 7vw, 96px) 0 clamp(72px, 9vw, 120px);
  text-align: center;
  overflow: hidden
}

.clients-title {
  margin-top: 20px;
  font-size: .95rem;
  font-weight: 500;
  font-stretch: 112%;
  letter-spacing: 0;
  color: var(--muted-light)
}

.clients-marquee {
  margin-top: 20px;
  padding-block: 28px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent)
}

.clients-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center
}

.clients-item {
  flex: none;
  padding-inline: clamp(24px, 1rem + 2.5vw, 56px)
}

.clients-item img {
  display: block;
  height: 64px;
  width: auto;
  filter: grayscale(1);
  opacity: .55;
  transition: transform .35s var(--ease-out), filter .35s, opacity .35s
}

.clients-item-round img {
  height: 84px
}

.clients-item:hover img {
  filter: none;
  opacity: 1;
  transform: scale(1.18)
}

.clients-list.is-marquee {
  flex-wrap: nowrap;
  justify-content: flex-start;
  width: max-content;
  will-change: transform
}

@media (prefers-reduced-motion: reduce) {
  .clients-list.is-marquee {
    transform: none !important;
    width: auto;
    flex-wrap: wrap;
    justify-content: center
  }

  .clients-item[data-copia] {
    display: none
  }
}

@media (max-width: 580px) {
  .clients-item img {
    height: 48px
  }

  .clients-item-round img {
    height: 64px
  }
}

/* Botão "Descobrir mais projetos" por cima da faixa, e versão do botão de contorno para fundos claros */
.light .button-outline {
  color: var(--ink);
  border-color: rgba(18, 22, 28, .35)
}

.light .button-outline:hover {
  border-color: var(--ink);
  background: rgba(18, 22, 28, .06)
}

/* Página de projetos */
.projects.page-projects {
  padding-top: clamp(150px, 16vw, 210px)
}

.page-projects h1 {
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  line-height: 1.03;
  letter-spacing: -.02em
}

/* Na página de projetos os parceiros vêm logo a seguir ao convite: menos espaço em cima.
   (O título dos clientes tem margem em cima; sem padding na secção, essa margem saía para
   fora e via-se uma risca do fundo escuro entre as duas secções claras.) */
.cta-band + .clients {
  padding-top: clamp(24px, 3vw, 40px)
}

/* Na página de projetos o conteúdo é todo claro: o fundo claro também no <main>, senão as
   secções claras, que acabam em frações de píxel, deixam ver uma risca do fundo escuro
   da página entre elas */
main:has(> .page-projects) {
  background: var(--paper)
}

/* Convite da página de projetos: um cartão escuro simples, logo a seguir aos projetos e
   antes dos parceiros. Texto à esquerda; botão e email à direita (por baixo no telemóvel) */
.cta-band {
  padding: 0 var(--pad)
}

.cta-card {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(28px, 4vw, 48px) clamp(24px, 4vw, 56px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 48px;
  border-radius: 24px;
  background: var(--night);
  color: var(--cream)
}

.cta-text {
  flex: 1 1 26em
}

.cta-card h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.8rem);
  line-height: 1.05;
  letter-spacing: -.015em
}

.cta-card .cta-text p {
  max-width: 32em;
  margin-top: 12px;
  color: var(--muted-dark)
}

/* O botão tem a largura da linha do email, e o email fica centrado por baixo */
.cta-actions {
  flex: none;
  display: grid;
  justify-items: stretch;
  gap: 14px;
  text-align: center
}

.cta-card .button {
  min-height: 54px
}

.cta-mail {
  font-size: .86rem;
  color: var(--muted-dark)
}

/* No telemóvel o bloco ocupa a largura toda do cartão */
@media (max-width: 700px) {
  .cta-actions {
    flex-basis: 100%
  }
}

.cta-mail a {
  color: var(--cream);
  text-decoration: underline;
  text-decoration-color: rgba(243, 239, 232, .4);
  text-underline-offset: 4px
}

.cta-mail a:hover {
  text-decoration-color: var(--cream)
}

.desktop-nav a[aria-current="page"]::after {
  transform: scaleX(1)
}

/* Contacto */
.contact {
  max-width: calc(var(--max) + 2 * var(--pad));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(48px, 7vw, 112px)
}

.contact-intro p {
  max-width: 28em;
  margin-top: 24px;
  color: var(--muted-dark)
}

.contact-direct {
  margin: 48px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 20px
}

.contact-direct span {
  display: block;
  font-size: .85rem;
  color: var(--muted-dark)
}

.contact-direct a,
.text-link {
  background: linear-gradient(var(--amber), var(--amber)) 0 100% / 0 2px no-repeat;
  transition: background-size .35s cubic-bezier(.25, 1, .5, 1)
}

.contact-direct a {
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  font-weight: 500;
  font-stretch: 112%
}

.contact-direct a:hover,
.text-link:hover {
  background-size: 100% 2px
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 20px;
  align-content: start
}

.field {
  display: grid;
  gap: 8px
}

.field-full,
.form-footer {
  grid-column: 1 / -1
}

.field label {
  font-size: .9rem;
  font-weight: 500
}

.field small {
  color: var(--muted-dark);
  font-weight: 400
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line-dark);
  border-radius: 12px;
  background: var(--night-2);
  color: var(--cream);
  font: inherit;
  transition: border-color .2s
}

.field select {
  appearance: none;
  padding-right: 44px;
  background: var(--night-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23f3efe8' stroke-width='1.6'%3E%3Cpath d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E") right 18px center no-repeat
}

/* "O que precisa?": o menu nativo dá lugar a um feito à medida (script.js, "Menu de opções").
   O select continua lá, escondido, e é ele que segue no formulário. O botão tem o anel do olho
   à direita, que abre quando o menu abre; cada opção tem o seu número e a escolhida leva o visto. */
.pick {
  position: relative
}

.pick select {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none
}

.pick-btn {
  position: relative;
  width: 100%;
  min-height: 52px;
  padding: 14px 52px 14px 16px;
  border: 1px solid var(--line-dark);
  border-radius: 12px;
  background: var(--night-2);
  color: var(--cream);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color .2s
}

.pick-btn:hover,
.pick.is-open .pick-btn {
  border-color: rgba(243, 239, 232, .3)
}

.pick-btn:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 0;
  border-color: transparent
}

/* O olho: fechado é só o anel com a pálpebra; aberto mostra a íris */
.pick-eye {
  position: absolute;
  right: 18px;
  top: 50%;
  width: 18px;
  height: 18px;
  margin-top: -9px;
  border: 2px solid var(--cream);
  border-radius: 50%;
  overflow: hidden;
  background: var(--amber)
}

/* A pupila segue o cursor (o JS dá --px/--py, em px) */
.pick-eye::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  border-radius: 50%;
  background: var(--night);
  translate: calc(var(--px, 0) * 1px) calc(var(--py, 0) * 1px)
}

.pick-eye::after {
  content: '';
  position: absolute;
  inset: -2px;
  background: var(--cream);
  clip-path: polygon(0 0, 100% 0, 100% 36%, 0 24%);
  transition: translate .3s var(--ease-out)
}

.pick.is-open .pick-eye::after {
  translate: 0 -100%
}

/* Mais larga do que o campo quando é preciso (cresce para a esquerda), para as opções
   caberem numa linha */
.pick-list {
  position: absolute;
  right: 0;
  width: max-content;
  min-width: 100%;
  max-width: calc(100vw - 2 * var(--pad));
  top: calc(100% + 8px);
  z-index: 20;
  margin: 0;
  padding: 6px;
  list-style: none;
  border: 1px solid rgba(243, 239, 232, .16);
  border-radius: 14px;
  background: #11161d;
  box-shadow: 0 24px 50px rgba(0, 0, 0, .5);
  transform-origin: top right;
  visibility: hidden;
  opacity: 0;
  translate: 0 -6px;
  scale: .98;
  transition: opacity .18s ease, translate .25s var(--ease-out), scale .25s var(--ease-out), visibility 0s .25s
}

.pick.is-open .pick-list {
  visibility: visible;
  opacity: 1;
  translate: 0 0;
  scale: 1;
  transition-delay: 0s
}

.pick-list li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 42px 11px 12px;
  border-radius: 9px;
  color: var(--muted-dark);
  font-size: .95rem;
  line-height: 1.3;
  cursor: pointer;
  transition: background .15s, color .15s
}

.pick-list li b {
  flex: none;
  width: 2.1em;
  color: rgba(232, 163, 61, .6);
  font: 400 .66rem/1 'Michroma', sans-serif;
  letter-spacing: .04em
}

.pick-list li.is-active {
  background: rgba(243, 239, 232, .06);
  color: var(--cream)
}

.pick-list li.is-active b {
  color: var(--amber)
}

.pick-list li[aria-selected="true"] {
  color: var(--cream)
}

.pick-list li[aria-selected="true"]::after {
  content: '';
  position: absolute;
  right: 14px;
  top: 50%;
  width: 16px;
  height: 16px;
  margin-top: -8px;
  rotate: -4deg;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e8a33d' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='1' y='1' width='22' height='22' rx='5' stroke-width='2'/%3E%3Cpath d='M6.2 12.4l3.9 3.9L18.4 7' stroke-width='2.6'/%3E%3C/svg%3E") center / contain no-repeat
}

.field textarea {
  resize: vertical;
  min-height: 140px
}

.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: rgba(243, 239, 232, .3)
}

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 0;
  border-color: transparent
}

/* Só mostra o erro depois de a pessoa ter mexido no campo */
.field input:user-invalid,
.field textarea:user-invalid {
  border-color: #e0715a
}

.form-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin-top: 6px
}

.consent {
  flex: 1 1 18em;
  color: var(--muted-dark);
  font-size: .85rem
}

.consent a {
  color: var(--cream);
  text-decoration: underline;
  text-underline-offset: 3px
}

.hp {
  position: absolute;
  left: -9999px
}

/* Aviso de erro do formulário (envio falhou ou limite de envios) */
.form-error {
  margin: 0;
  padding: 12px 16px;
  border: 1px solid rgba(232, 163, 61, .45);
  border-radius: 12px;
  background: rgba(232, 163, 61, .08);
  color: var(--cream);
  font-size: .9rem
}

.form-error[hidden],
.contact-form[hidden],
.form-done[hidden] {
  display: none
}

/* Confirmação depois de enviar: fica no lugar do formulário. O olho da marca abre e pisca */
.form-done {
  align-self: start;
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid var(--line-dark);
  border-radius: 20px;
  background: var(--night-2);
  outline: none
}

.fd-eye {
  display: block;
  width: 56px;
  height: 56px;
  margin-bottom: 28px;
  overflow: hidden;
  border-radius: 50%
}

.fd-ring { fill: var(--cream) }
.fd-iris { fill: var(--amber) }
.fd-pupil { fill: var(--night) }
.fd-lid { fill: var(--night-2); transform: translateY(0) }

.fd-title {
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  line-height: 1.2;
  letter-spacing: -.01em
}

.form-done p {
  max-width: 32em;
  margin-top: 16px;
  color: var(--muted-dark)
}

.form-done .fd-urgent {
  margin-top: 12px;
  font-size: .9rem
}

.form-done a {
  color: var(--cream);
  text-decoration: underline;
  text-underline-offset: 3px
}

.fd-again {
  margin-top: 28px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--amber);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  background-image: linear-gradient(var(--amber), var(--amber));
  background-position: 0 100%;
  background-size: 0 2px;
  background-repeat: no-repeat;
  transition: background-size .35s cubic-bezier(.25, 1, .5, 1)
}

.fd-again:hover,
.fd-again:focus-visible {
  background-size: 100% 2px
}

@media (prefers-reduced-motion: no-preference) {
  .form-done.is-in {
    animation: fd-in .5s cubic-bezier(.25, 1, .5, 1) both
  }

  .form-done.is-in .fd-lid {
    transform: translateY(100%);
    animation: fd-lid 2.4s cubic-bezier(.6, 0, .3, 1) .15s both
  }

  .form-done.is-in :is(.fd-title, p, .fd-again) {
    animation: fd-up .5s cubic-bezier(.25, 1, .5, 1) both
  }

  .form-done.is-in .fd-title { animation-delay: .25s }
  .form-done.is-in p { animation-delay: .35s }
  .form-done.is-in .fd-urgent { animation-delay: .42s }
  .form-done.is-in .fd-again { animation-delay: .5s }
}

/* Pálpebra: começa fechada, abre, e pisca uma vez */
@keyframes fd-lid {
  0% { transform: translateY(100%) }
  25% { transform: translateY(0) }
  70% { transform: translateY(0) }
  78% { transform: translateY(100%) }
  86% { transform: translateY(0) }
  100% { transform: translateY(0) }
}

@keyframes fd-in {
  from { opacity: 0; transform: translateY(12px) scale(.985) }
  to { opacity: 1; transform: none }
}

@keyframes fd-up {
  from { opacity: 0; transform: translateY(10px) }
  to { opacity: 1; transform: none }
}

/* Rodapé */
.site-footer {
  padding: 40px var(--pad);
  border-top: 1px solid var(--line-dark);
  display: grid;
  grid-template-columns: auto 1fr auto auto auto;
  align-items: center;
  gap: 16px 40px;
  font-size: .9rem;
  color: var(--muted-dark)
}

.footer-symbol {
  height: 40px;
  width: auto
}

.footer-name {
  color: var(--cream);
  font-weight: 500;
  font-stretch: 112%
}

.footer-brand {
  white-space: nowrap
}

.footer-tagline {
  margin-top: 2px;
  color: var(--amber);
  font-size: .85rem
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px
}

.footer-nav a:hover {
  color: var(--cream)
}

.footer-xray {
  padding: 0;
  border: 0;
  background: none;
  color: var(--amber);
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 4px
}

.footer-xray:hover {
  color: var(--amber-hi)
}

/* Páginas simples: obrigado, 404, privacidade */
.page {
  min-height: 100svh;
  max-width: calc(46rem + 2 * var(--pad));
  margin: 0 auto;
  padding: 170px var(--pad) 100px
}

.page>p,
.page li {
  max-width: 38em;
  color: var(--muted-dark)
}

.page>p {
  margin-top: 20px
}

.page h2 {
  margin-top: 48px;
  font-size: 1.35rem;
  line-height: 1.2
}

.page ul {
  padding-left: 1.2em
}

.page .button {
  margin-top: 36px
}

/* ——— Página 404: o olho foi procurar a página ———
   O "0" do 404 é o olho, como nos títulos das secções. Ao lado está a planta do site: as
   páginas que existem e um quadrado vazio, o do endereço pedido. Uma lente percorre a planta
   (o olho vai olhando para ela), abana a cabeça no quadrado vazio e, se o endereço se parecer
   com uma página que existe, acaba nela e marca-a com o visto. Clicar no olho procura outra
   vez. Sem JS ou com "reduzir movimento" vê-se logo o fim. */
.lost {
  --sh-ink: var(--cream);
  min-height: 100svh;
  max-width: calc(var(--max) + 2 * var(--pad));
  margin: 0 auto;
  padding: 140px var(--pad) 80px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: 56px clamp(40px, 6vw, 104px);
  align-items: center
}

.lost-code {
  margin-bottom: clamp(20px, 2.6vw, 34px);
  font-size: clamp(5.6rem, 11vw, 10rem);
  font-weight: 500;
  font-stretch: 125%;
  line-height: .86;
  letter-spacing: -.03em;
  white-space: nowrap
}

.lost-code .sh-eye {
  cursor: pointer
}

/* As linhas-guia da planta são dos títulos das secções; aqui não há planta no título */
.lost-code .sh-eye::before,
.lost-code .sh-eye::after {
  content: none
}

.lost h1 {
  font-size: clamp(1.75rem, 2.9vw, 2.6rem);
  line-height: 1.08;
  letter-spacing: -.015em
}

.lost-copy > p {
  max-width: 31em;
  margin-top: 18px;
  color: var(--muted-dark)
}

/* O endereço pedido, como uma etiqueta da planta */
.lost-req {
  display: inline-block;
  max-width: 100%;
  padding: 0 7px;
  border-radius: 4px;
  background: rgba(232, 163, 61, .14);
  color: var(--amber-hi);
  font-weight: 500;
  overflow-wrap: anywhere
}

/* A sugestão (só quando o endereço se parece com uma página que existe): o espaço fica
   guardado desde o início e ela aparece quando a lente acaba */
.lost-copy > .lost-hint {
  position: relative;
  margin-top: 26px;
  padding-left: 38px;
  color: var(--cream);
  font-size: 1.12rem;
  font-weight: 500;
  font-stretch: 108%;
  line-height: 1.4;
  transition: opacity .5s ease
}

.lost-hint.is-waiting {
  opacity: 0
}

.lost-hint .text-link {
  color: var(--amber)
}

.lost .button {
  margin-top: 34px
}

.lost-copy > .lost-note {
  margin-top: 30px;
  font-size: .9rem
}

/* O visto (o mesmo do "Fica com" do "Como trabalhamos") */
.lost-tick {
  width: 24px;
  height: 24px;
  overflow: visible;
  rotate: -4deg;
  fill: var(--night);
  stroke: var(--amber);
  stroke-linecap: round;
  stroke-linejoin: round
}

.lost-tick rect {
  stroke-width: 2
}

.lost-tick path {
  fill: none;
  stroke-width: 2.6
}

.lost-hint .lost-tick {
  position: absolute;
  left: 0;
  top: .08em
}

/* A planta do site: papel quadriculado, como o modo raio-X */
.lost-map {
  position: relative;
  padding: 60px clamp(16px, 2vw, 26px) clamp(16px, 2vw, 26px);
  border: 1px dashed rgba(232, 163, 61, .4);
  border-radius: 16px;
  background:
    linear-gradient(rgba(243, 239, 232, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(243, 239, 232, .045) 1px, transparent 1px);
  background-size: 24px 24px;
  background-position: -1px -1px
}

.lost-map-head {
  position: absolute;
  top: 19px;
  left: clamp(16px, 2vw, 26px);
  right: clamp(16px, 2vw, 26px);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .78rem;
  line-height: 1.3
}

.lost-chip {
  padding: 3px 8px 2px;
  border-radius: 4px;
  background: var(--amber);
  color: var(--night);
  font-weight: 600
}

.lost-status {
  overflow: hidden;
  color: var(--muted-dark);
  font-stretch: 108%;
  white-space: nowrap;
  text-overflow: ellipsis
}

.lost-tiles {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(10px, 1.2vw, 16px)
}

.lost-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 12px 12px 13px;
  border: 1px solid var(--line-dark);
  border-radius: 10px;
  background: var(--night);
  transition: border-color .3s ease, opacity .35s ease, translate .25s var(--ease-out)
}

a.lost-tile:hover {
  border-color: rgba(243, 239, 232, .4);
  translate: 0 -2px
}

/* O desenho de cada página, em traço fino (viewBox 100 × 60) */
.lost-wire {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: 11px;
  overflow: visible;
  fill: none;
  stroke: rgba(243, 239, 232, .38);
  stroke-width: 1;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke .3s ease
}

.lost-wire .w-bold {
  stroke-width: 3.2
}

.lost-wire .w-fill {
  fill: rgba(243, 239, 232, .38);
  stroke: none;
  transition: fill .3s ease
}

.lost-wire .w-amber {
  fill: var(--amber);
  stroke: none
}

.lost-wire .w-night {
  fill: var(--night);
  stroke: none
}

.lost-name {
  font-size: .9rem;
  font-weight: 500;
  font-stretch: 112%;
  line-height: 1.25
}

.lost-url {
  margin-top: 2px;
  overflow: hidden;
  color: var(--muted-dark);
  font-size: .74rem;
  white-space: nowrap;
  text-overflow: ellipsis
}

/* O quadrado vazio: o endereço pedido, que não existe */
.lost-ghost {
  border: 1px dashed rgba(232, 163, 61, .55);
  background: transparent
}

.lost-void {
  display: grid;
  place-items: center;
  aspect-ratio: 5 / 3;
  margin-bottom: 11px;
  border: 1px dashed rgba(232, 163, 61, .3);
  border-radius: 5px;
  color: rgba(232, 163, 61, .75);
  font: 400 clamp(.9rem, 1.3vw, 1.15rem)/1 'Michroma', sans-serif;
  letter-spacing: .08em
}

.lost-ghost .lost-url {
  color: var(--amber-hi)
}

/* Por baixo da lente vê-se a página por dentro, como no raio-X */
.lost-tile.is-looking {
  border-color: var(--amber)
}

.lost-tile.is-looking .lost-wire {
  stroke: var(--amber);
  stroke-dasharray: 2.5 2
}

.lost-tile.is-looking .lost-wire .w-fill {
  fill: rgba(232, 163, 61, .5)
}

.lost-tile.is-checked {
  opacity: .4
}

.lost-tile.is-found {
  border-color: var(--amber);
  box-shadow: inset 0 0 0 1px var(--amber)
}

.lost-tile .lost-tick {
  position: absolute;
  top: -10px;
  right: -10px;
  opacity: 0
}

.lost-tile.is-found .lost-tick {
  opacity: 1
}

/* A lente: o anel do olho, que passa de página em página */
.lost-lens {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  width: clamp(58px, 5.4vw, 78px);
  aspect-ratio: 1;
  border: 2px solid var(--amber);
  border-radius: 50%;
  background: rgba(232, 163, 61, .07);
  box-shadow: 0 0 0 7px rgba(232, 163, 61, .1), 0 12px 30px rgba(0, 0, 0, .35);
  pointer-events: none;
  opacity: 0;
  scale: .6;
  transition: translate .42s var(--ease-out), opacity .3s ease, scale .35s var(--ease-out)
}

.lost-lens.is-on {
  opacity: 1;
  scale: 1
}

.lost-lens.is-shake {
  animation: lost-no .55s ease-in-out
}

@keyframes lost-no {
  20%,
  60% {
    transform: translateX(-7px)
  }

  40%,
  80% {
    transform: translateX(7px)
  }
}

@media (prefers-reduced-motion: no-preference) {
  .lost-copy > :not(.lost-hint) {
    animation: drop .9s var(--ease-out) both
  }

  .lost-copy > :nth-child(2) {
    animation-delay: .12s
  }

  .lost-copy > :nth-child(3) {
    animation-delay: .24s
  }

  .lost-copy > :nth-child(n+5) {
    animation-delay: .36s
  }

  .lost-map {
    animation: fade-in .8s ease .3s both
  }

  .lost-tile.is-found .lost-tick rect,
  .lost-hint:not(.is-waiting) .lost-tick rect {
    transform-box: fill-box;
    transform-origin: center;
    animation: deal-pop .4s cubic-bezier(.3, 1.6, .5, 1) both
  }

  .lost-tile.is-found .lost-tick path,
  .lost-hint:not(.is-waiting) .lost-tick path {
    stroke-dasharray: 1;
    animation: deal-draw .45s var(--ease-out) .25s both
  }
}

@media (max-width: 900px) {
  .lost {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 48px;
    padding-top: 128px
  }
}

@media (max-width: 580px) {
  .lost {
    padding-top: 112px;
    padding-bottom: 56px
  }

  .lost-code {
    font-size: clamp(4.6rem, 25vw, 6rem)
  }

  .lost-map {
    padding-top: 56px
  }

  .lost-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }
}

/* Zoom: uma cópia do topo voa por cima do destino; a pupila dela é um buraco (máscara)
   em --hx/--hy, com raio --hole, por onde se vê o destino */
@property --hole {
  syntax: '<length>';
  inherits: false;
  initial-value: 0px
}

@property --hx {
  syntax: '<length>';
  inherits: false;
  initial-value: 0px
}

@property --hy {
  syntax: '<length>';
  inherits: false;
  initial-value: 0px
}

.dive {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  overflow: hidden;
  background: var(--night);
  -webkit-mask-image: radial-gradient(circle at var(--hx) var(--hy), transparent var(--hole), #000 calc(var(--hole) + 1.5px));
  mask-image: radial-gradient(circle at var(--hx) var(--hy), transparent var(--hole), #000 calc(var(--hole) + 1.5px));
  will-change: transform
}

/* A cópia não repete as animações de entrada */
.dive * {
  animation: none !important
}

.diving main,
.diving .site-header {
  will-change: transform
}

/* Pestanejar: duas pálpebras com a borda curva fecham o ecrã de cima e de baixo;
   a página muda de sítio às escuras e, ao abrir, já estamos no destino */
.blink {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  overflow: hidden
}

.blink-lid {
  position: absolute;
  left: -15%;
  width: 130%;
  height: 72%;
  background: var(--night);
  will-change: transform
}

/* A borda curva (como uma pálpebra) só toca a outra no meio; nas pontas sobrepõem-se */
.blink-top {
  top: 0;
  border-radius: 0 0 50% 50% / 0 0 26% 26%;
  transform: translateY(-101%)
}

.blink-bottom {
  bottom: 0;
  border-radius: 50% 50% 0 0 / 26% 26% 0 0;
  transform: translateY(101%)
}

/* O cabeçalho do destino já aparece no estado final (sem transição enquanto pestanejamos) */
.diving .site-header,
.diving .site-header::before,
.diving .site-header * {
  transition: none !important
}

main > section[tabindex="-1"]:focus {
  outline: none
}

/* ———————————————— Modo raio-X ————————————————
   Uma cópia da página, sem interação, desenhada como planta técnica,
   visível só dentro da lente (clip-path circular que segue o cursor). */
.xray {
  --xr: 0px;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 25;
  pointer-events: none;
  user-select: none;
  clip-path: circle(var(--xr) at var(--x, 50%) var(--y, 50%));
  transition: --xr .6s var(--ease-out);
  background-color: #0a1624;
  background-image:
    linear-gradient(rgba(232, 163, 61, .22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232, 163, 61, .22) 1px, transparent 1px),
    linear-gradient(rgba(243, 239, 232, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(243, 239, 232, .07) 1px, transparent 1px);
  background-size: 96px 96px, 96px 96px, 24px 24px, 24px 24px
}

.xray * {
  animation: none !important;
  transition: none !important;
  color: rgba(243, 239, 232, .5) !important;
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  border-color: rgba(232, 163, 61, .45) !important;
  outline: 1px dashed rgba(232, 163, 61, .3);
  outline-offset: -1px
}

/* Títulos só em contorno: a letra vira desenho técnico */
.xray :is(h1, h2, h3) {
  color: transparent !important;
  -webkit-text-stroke: 1px var(--cream)
}

.xray img {
  opacity: .14
}

.xray .eye-svg circle,
.xray .eye-svg use,
.xray .eye-svg .eye-lid {
  fill: none;
  stroke: var(--amber);
  stroke-width: 1.4
}

.xray .eye-guides {
  display: inline
}

.xray .eye-svg .eye-guides * {
  fill: none;
  stroke: rgba(232, 163, 61, .55);
  stroke-width: 1;
  stroke-dasharray: 4 5
}

.xray .xr-rel {
  position: relative
}

/* O fundo de circuito da hero não entra na planta */
.xray .hero-bg {
  display: none
}

.xray [data-xr-label] {
  outline: 1px solid var(--amber)
}

.xray [data-xr-label]::after {
  content: attr(data-xr-label);
  position: absolute;
  left: -1px;
  top: -1px;
  z-index: 2;
  padding: 3px 7px 2px;
  border-radius: 4px 4px 0 0;
  background: var(--amber);
  color: var(--night);
  font: 600 11px/1.3 var(--sans);
  font-stretch: 100%;
  letter-spacing: 0;
  white-space: nowrap;
  transform: translateY(-100%)
}

.xray section[data-xr-label]::after,
.xray footer[data-xr-label]::after {
  top: 0;
  left: 0;
  border-radius: 0 0 4px 0;
  transform: none
}

/* A lente é só o olho: o anel do O com a pálpebra reta, inclinada */
.xray-lens {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 35;
  pointer-events: none;
  will-change: transform
}

.xray-lens svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  fill: var(--cream);
  filter: drop-shadow(0 0 1px rgba(0, 0, 0, .6)) drop-shadow(0 10px 28px rgba(0, 0, 0, .45));
  transform: scale(0);
  transform-origin: 50% 50%;
  transition: transform .6s var(--ease-out)
}

.xray-lens.is-open svg {
  transform: scale(1)
}

.xray-ring {
  fill: none;
  stroke: var(--cream);
  stroke-width: 49
}

.xray-lid-skin {
  fill: var(--cream)
}

/* Desce ao mesmo tempo (mesma duração e atraso) que a pálpebra do olho do topo */
.xray-lid {
  transform: translateY(-190px);
  transition: transform .5s var(--ease-out)
}

/* Mesma classe (html.xray-on) que a pálpebra do olho do topo: as duas descem no mesmo instante */
.xray-on .xray-lens .xray-lid {
  transform: translateY(0);
  transition-delay: .15s
}

.xray-panel {
  position: fixed;
  left: 50%;
  bottom: 20px;
  z-index: 50;
  width: max-content;
  max-width: calc(100% - 24px);
  padding: 14px 14px 14px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
  border: 1px solid rgba(232, 163, 61, .45);
  border-radius: 20px;
  background: rgba(13, 17, 23, .94);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .45);
  transform: translateX(-50%)
}

.xray-panel[hidden] {
  display: none
}

.xray-title {
  font-weight: 600;
  font-stretch: 112%
}

.xray-stats {
  margin-top: 2px;
  color: var(--muted-dark);
  font-size: .88rem
}

.xray-close {
  flex: none;
  min-height: 44px
}

@media (prefers-reduced-motion: no-preference) {
  .xray-panel:not([hidden]) {
    animation: panel-in .5s var(--ease-out) both
  }
}

@keyframes panel-in {
  from {
    opacity: 0;
    transform: translate(-50%, 16px)
  }
}

@media (hover: hover) and (pointer: fine) {
  .xray-on body {
    cursor: crosshair
  }
}

/* Tablet */
@media (max-width: 900px) {

  .site-header,
  .site-header.is-scrolled {
    top: 12px;
    width: calc(100% - 24px);
    height: 54px;
    padding: 0 10px 0 22px;
    grid-template-columns: 1fr auto auto
  }

  .header-actions {
    gap: 0
  }

  .brand img,
  .is-scrolled .brand img {
    height: 22px
  }

  .desktop-nav,
  .header-cta {
    display: none
  }

  .menu-toggle {
    display: block;
    justify-self: end;
    position: relative;
    width: 44px;
    height: 44px;
    border: 0;
    background: none;
    cursor: pointer
  }

  .menu-toggle span {
    position: absolute;
    left: 9px;
    width: 26px;
    height: 1.5px;
    background: var(--cream);
    transition: transform .3s
  }

  .menu-toggle span:first-child {
    top: 16px
  }

  .menu-toggle span:last-child {
    top: 26px
  }

  .menu-toggle.open span:first-child {
    transform: translateY(5px) rotate(45deg)
  }

  .menu-toggle.open span:last-child {
    transform: translateY(-5px) rotate(-45deg)
  }

  .mobile-menu {
    position: fixed;
    inset: 74px 12px auto;
    z-index: -1;
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding: 30px 24px 40px;
    border: 1px solid var(--line-dark);
    border-radius: 24px;
    background: var(--night);
    font-size: 1.6rem;
    font-weight: 500;
    font-stretch: 125%;
    clip-path: inset(0 0 100% 0 round 24px);
    opacity: 0;
    transform: translateY(-14px);
    visibility: hidden;
    transition: clip-path .5s var(--ease-out), opacity .3s ease, transform .5s var(--ease-out), visibility 0s .5s
  }

  .mobile-menu a:last-child {
    color: var(--amber)
  }

  .mobile-menu.open {
    clip-path: inset(0 0 0 0 round 24px);
    opacity: 1;
    transform: none;
    visibility: visible;
    transition: clip-path .5s var(--ease-out), opacity .3s ease, transform .5s var(--ease-out)
  }

  .hero {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    align-content: center;
    padding-top: 116px;
    gap: 36px
  }

  .hero .eye {
    order: -1;
    justify-self: start;
    width: min(78vw, 400px);
    gap: 14px
  }
  .section-head,
  .contact {
    grid-template-columns: 1fr
  }

  .section-head h2 {
    white-space: normal
  }

  /* Telemóvel: uma só coluna; a lente aparece dentro do serviço aberto (o JS mete-a lá) */
  .svc,
  .services .section-head {
    grid-template-columns: 1fr
  }

  .svc.is-live .svc-lens-home {
    display: none
  }

  /* No telemóvel não há coluna ao lado: sem pista; o painel vai dentro do serviço aberto */
  .svc.is-live .svc-item.is-active .svc-node::after {
    display: none
  }

  /* No telemóvel o painel tem a proporção dos desenhos: enchem-no sem sobrar espaço */
  .svc-lens {
    min-height: 0;
    aspect-ratio: 168 / 151
  }

  .svc-panel .svc-lens {
    margin: 4px 0 28px
  }

  .svc-scene {
    width: 86%
  }

  /* Telemóvel: uma só coluna; o palco entra dentro do projeto aberto (o JS mete-o lá) */
  .prj-body {
    grid-template-columns: 1fr
  }

  .prj.is-live .prj-stage-home {
    display: none
  }

  .prj.is-live .prj-item.is-active .prj-node::after {
    display: none
  }

  .prj-panel .prj-stage {
    margin: 4px 0 20px
  }

  .site-footer {
    grid-template-columns: auto 1fr
  }

  .footer-nav,
  .footer-xray,
  .footer-copy {
    grid-column: 1 / -1;
    justify-self: start
  }

  .xray-panel {
    bottom: 12px;
    padding: 12px 12px 12px 18px;
    gap: 14px
  }
}

/* Telemóvel */
@media (max-width: 580px) {
  .hero {
    min-height: auto;
    padding-bottom: 32px
  }

  .hero-services {
    row-gap: 8px
  }

  .hero-services-break {
    display: block;
    flex-basis: 100%;
    height: 0
  }

  /* Depois da quebra, a linha nova não começa com "·" */
  .hero-services-break + li::before {
    display: none
  }

  .hero-actions .button {
    flex: 1 1 100%
  }

  .hero-tagline {
    align-items: stretch;
    line-height: 1.5
  }

  .project-grid,
  .contact-form {
    grid-template-columns: 1fr
  }

  .project-wide .project-shot {
    aspect-ratio: 16 / 10;
    padding: 5%
  }

  .xray-title {
    font-size: .95rem
  }

  .xray-stats {
    font-size: .8rem
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto
  }

  .hero-scroll svg {
    animation: none
  }

  *,
  *::before,
  *::after {
    transition-duration: .01ms !important
  }
}

/* ——— Página de projetos: o olho que abre o filtro ———
   Por baixo do título, um botão escuro com o olho da marca meio fechado e o tipo à mostra.
   Ao tocar, o olho abre e um painel escuro abre a partir dele, como uma íris a dilatar,
   com os tipos de projeto em mosaicos (o ícone de cada um desenha-se ao abrir). Não se
   mostram contagens de projetos: ainda estamos a começar e podiam parecer poucos. Escolhido
   um, a íris fecha de volta para o olho, o botão passa a dizer o tipo (com o ✕ para voltar
   a todos) e os projetos de outros tipos desligam-se como um ecrã. Ao descer pela lista o
   botão fica a flutuar em baixo. No telemóvel o painel abre como uma folha em baixo. */
.page-projects .section-head {
  margin-bottom: clamp(40px, 5vw, 64px)
}

/* O filtro fica dentro do cabeçalho, logo por baixo do texto */
.section-head .lens {
  margin: 6px 0 0
}

/* No computador o título vem grande à esquerda e o texto à direita (é também para lá que o
   olho do título olha quando aparece). O cabeçalho usa a mesma grelha do cartão da app
   (1.7fr / 1fr), para o texto ficar na mesma coluna do texto do cartão logo por baixo, e a
   última linha do texto assenta na linha de base do título. O filtro fica numa linha só
   dele, por baixo do título, à esquerda */
@media (min-width: 901px) {
  .page-projects .section-head {
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
    align-items: end;
    align-items: last baseline;
    column-gap: clamp(24px, 4vw, 60px);
    row-gap: clamp(26px, 2.6vw, 36px)
  }

  .page-projects .section-head h1 {
    grid-column: 1;
    grid-row: 1;
    font-size: clamp(3.6rem, 8.6vw, 7.8rem);
    line-height: .92;
    /* A tinta do título é um fundo recortado pelas letras (background-clip: text) e só
       cobre a caixa do título; com a linha tão apertada, a perna do "j" saía da caixa e
       ficava cortada. A caixa desce um pouco, sem mexer na disposição */
    padding-bottom: .2em;
    margin-bottom: -.2em
  }

  .page-projects .section-head > p {
    grid-column: 2;
    grid-row: 1;
    font-size: clamp(1rem, 1.25vw, 1.15rem)
  }

  .page-projects .section-head .lens {
    grid-column: 1 / -1;
    grid-row: 2;
    align-self: start;
    margin: 0
  }
}

.lens {
  position: relative;
  max-width: var(--max);
  margin: 0 auto clamp(40px, 5vw, 60px)
}

.lens[hidden],
.lens-clear[hidden],
.lens-shade[hidden],
.lens-panel[hidden] {
  display: none
}

/* O botão */
.lens-bar {
  display: inline-flex;
  align-items: stretch;
  border-radius: 999px;
  background: var(--night);
  color: var(--cream);
  box-shadow: 0 16px 34px -20px rgba(13, 17, 23, .7)
}

.lens-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 7px 18px 7px 7px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer
}

.lens-eye {
  flex: none;
  width: 40px;
  height: 40px
}

.lens-eye svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible
}

.le-ring {
  fill: none;
  stroke: var(--cream)
}

.le-iris {
  fill: var(--amber)
}

.le-dot {
  fill: var(--night)
}

.le-glint {
  fill: #fff
}

.le-pupil {
  translate: calc(var(--px, 0) * 1px) calc(var(--py, 0) * 1px);
  transition: translate .35s var(--ease-out)
}

/* Fechado, o olho está meio a dormir; espreita quando se passa por cima; abre de todo
   quando o painel abre */
.le-lid {
  fill: var(--cream);
  translate: 0 -12px;
  transition: translate .45s var(--ease-out)
}

.lens-btn:hover .le-lid,
.lens-btn:focus-visible .le-lid {
  translate: 0 -38px
}

.lens.is-open .le-lid {
  translate: 0 -64px
}

.lens.is-blink .le-lid {
  animation: le-blink .28s ease-in-out
}

@keyframes le-blink {
  50% {
    translate: 0 52px
  }
}

.lens-text {
  display: grid;
  gap: 3px
}

.lens-label {
  font: 400 .56rem/1 'Michroma', sans-serif;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(243, 239, 232, .5)
}

.lens-value {
  font: 600 1.02rem/1.1 var(--sans);
  font-stretch: 112%
}

.lens-chev {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .7;
  transition: rotate .3s var(--ease-out)
}

.lens-btn[aria-expanded="true"] .lens-chev {
  rotate: 180deg
}

.lens-clear {
  display: grid;
  place-items: center;
  width: 46px;
  border: 0;
  border-left: 1px solid rgba(243, 239, 232, .14);
  border-radius: 0 999px 999px 0;
  background: none;
  color: rgba(243, 239, 232, .6);
  cursor: pointer;
  transition: color .2s ease
}

.lens-clear:hover {
  color: var(--cream)
}

.lens-clear svg,
.lens-close svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round
}

.lens-btn:focus-visible,
.lens-clear:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px
}

/* Com o painel aberto o botão fica por cima da sombra: vê-se o olho a abrir */
.lens.is-open .lens-bar {
  position: relative;
  z-index: 46
}

/* Ao descer pela lista, o botão flutua em baixo (o lugar dele fica guardado) */
.lens.is-float {
  min-height: var(--bar-h, 54px)
}

.lens.is-float .lens-bar {
  position: fixed;
  left: 50%;
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 35;
  translate: -50% 0;
  box-shadow: 0 18px 40px -14px rgba(13, 17, 23, .75), 0 0 0 1px rgba(243, 239, 232, .08);
  animation: lens-float .4s var(--ease-out)
}

@keyframes lens-float {
  from {
    translate: -50% 160%
  }
}

/* A flutuar e com o painel aberto, continua por cima da sombra */
.lens.is-open.is-float .lens-bar {
  z-index: 46
}

.xray-on .lens.is-float .lens-bar {
  display: none
}

/* A sombra por trás do painel */
.lens-shade {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(13, 17, 23, .3);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity .4s ease
}

.lens.is-open .lens-shade {
  opacity: 1
}

/* O painel: abre do olho para fora, como uma íris */
.lens-panel {
  position: fixed;
  z-index: 45;
  width: min(780px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  overflow: auto;
  overscroll-behavior: contain;
  padding: 18px;
  border-radius: 22px;
  color: var(--cream);
  background: var(--night);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .65), 0 0 0 1px rgba(243, 239, 232, .08);
  clip-path: circle(0 at var(--ox, 0) var(--oy, 0));
  transition: clip-path .45s cubic-bezier(.65, 0, .35, 1)
}

.lens.is-open .lens-panel {
  clip-path: circle(var(--or, 150%) at var(--ox, 0) var(--oy, 0));
  transition: clip-path .6s var(--ease-out)
}

/* O painel recebe o foco ao abrir com o rato, sem contorno (os mosaicos têm o deles) */
.lens-panel:focus {
  outline: none
}

/* No telemóvel: uma folha em baixo */
.lens-panel.is-sheet {
  left: 12px;
  right: 12px;
  bottom: 12px;
  width: auto;
  padding: 16px 14px 14px
}

/* Sem título: só o ✕, no canto de cima à direita */
.lens-head {
  display: flex;
  justify-content: flex-end;
  padding: 0 0 10px
}

.lens-close {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(243, 239, 232, .16);
  border-radius: 50%;
  background: none;
  color: rgba(243, 239, 232, .7);
  cursor: pointer
}

.lens-close:hover {
  color: var(--cream);
  border-color: rgba(243, 239, 232, .4)
}

.lens-close:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px
}

/* 8 tipos: 4 colunas × 2 linhas (no telemóvel, 2 × 4) */
.lens-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px
}

/* Os mosaicos */
.lens-opt {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  min-height: 104px;
  padding: 14px;
  border: 1px solid rgba(243, 239, 232, .12);
  border-radius: 14px;
  background: rgba(243, 239, 232, .03);
  color: var(--cream);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease, translate .25s var(--ease-out)
}

.lens-opt:hover {
  border-color: rgba(243, 239, 232, .42);
  translate: 0 -2px
}

.lens-opt:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px
}

.lens-opt[aria-pressed="true"] {
  border-color: var(--amber);
  background: rgba(232, 163, 61, .1)
}

/* O escolhido tem uma luz acesa no canto */
.lens-opt[aria-pressed="true"]::after {
  content: '';
  position: absolute;
  top: 13px;
  right: 13px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 10px var(--amber)
}

.lo-ico {
  width: 28px;
  height: 28px;
  margin-bottom: auto;
  fill: none;
  stroke: var(--amber);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round
}

/* Os ícones desenham-se quando o painel abre, um a seguir ao outro */
.lo-ico > * {
  stroke-dasharray: 1;
  stroke-dashoffset: 1
}

.lens.is-open .lo-ico > * {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset .7s var(--ease-out) calc(.2s + var(--i, 0) * 45ms)
}

.lo-name {
  margin-top: 14px;
  font-size: 1rem;
  font-weight: 600;
  font-stretch: 108%;
  line-height: 1.2
}

@media (max-width: 640px) {
  .lens-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }

  .lens-opt {
    min-height: 88px;
    padding: 12px
  }

  .lo-ico {
    width: 24px;
    height: 24px
  }

  .lo-name {
    margin-top: 10px;
    font-size: .88rem;
    font-stretch: 100%
  }
}

/* Projetos */
.page-projects .project h3 {
  margin-bottom: 16px
}

/* Quando um tipo ainda não tem projetos publicados */
.project-empty {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(28px, 4vw, 48px);
  display: grid;
  justify-items: start;
  gap: 12px;
  border: 1.5px dashed rgba(18, 22, 28, .22);
  border-radius: 16px
}

.project[hidden],
.project-empty[hidden] {
  display: none
}

.pe-title {
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  font-weight: 500;
  font-stretch: 125%;
  line-height: 1.1
}

.project-empty p:not(.pe-title) {
  max-width: 36em;
  color: var(--muted-light)
}

.project-empty .button {
  margin-top: 8px
}

/* Projetos a desligar e a ligar, como um ecrã antigo: a imagem encolhe até uma linha
   âmbar e apaga-se; ao ligar, a linha abre até à imagem */
@media (prefers-reduced-motion: no-preference) {
  .project.is-off {
    pointer-events: none
  }

  .project.is-off .project-shot {
    animation: crt-off .42s cubic-bezier(.6, 0, .9, .4) forwards
  }

  .project.is-off :is(h3, p, .app-stores, .ag-btn) {
    animation: prj-fade .2s ease forwards
  }

  .project.is-on .project-shot {
    animation: crt-on .6s var(--ease-out) both
  }

  :is(.project.is-on :is(h3, p, .app-stores, .ag-btn), .project-empty.is-on) {
    animation: prj-fade .45s ease .2s reverse both
  }
}

@keyframes crt-off {
  0% {
    transform: none;
    filter: none
  }

  50% {
    transform: scale(1, .016);
    filter: grayscale(1) sepia(1) saturate(6) hue-rotate(-6deg) brightness(1.25)
  }

  85% {
    transform: scale(.05, .016);
    filter: grayscale(1) sepia(1) saturate(6) hue-rotate(-6deg) brightness(1.6);
    opacity: 1
  }

  100% {
    transform: scale(0, .016);
    opacity: 0
  }
}

@keyframes crt-on {
  0% {
    transform: scale(0, .016);
    filter: grayscale(1) sepia(1) saturate(6) hue-rotate(-6deg) brightness(1.6);
    opacity: 0
  }

  25% {
    transform: scale(1, .016);
    filter: grayscale(1) sepia(1) saturate(6) hue-rotate(-6deg) brightness(1.25);
    opacity: 1
  }

  100% {
    transform: none;
    filter: none
  }
}

@keyframes prj-fade {
  to {
    opacity: 0;
    translate: 0 -6px
  }
}
