/* ==========================================================================
   Seek Graphics — protótipo v4
   Instrument Serif nos títulos, Inter Tight no texto e na interface.
   Cores da marca (papel, creme, tinta) com laranja só em botões e na estrela.
   Papel + tinta, filetes finos de 1px, laranja só em botões e estados.
   Momentos de movimento: fitas, monograma halftone, projetos empilhados.
   ========================================================================== */

/* Fontes servidas pelo próprio site (OFL): sem pedidos ao Google, melhor para o RGPD. Só latim e latim alargado. */
@font-face { font-family: 'Instrument Serif'; font-style: italic; font-weight: 400; font-display: swap; src: url(../fonts/instrument-serif-italico-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, 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; }
@font-face { font-family: 'Instrument Serif'; font-style: italic; font-weight: 400; font-display: swap; src: url(../fonts/instrument-serif-italico-latin.woff2) format('woff2'); 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: 'Instrument Serif'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/instrument-serif-normal-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, 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; }
@font-face { font-family: 'Instrument Serif'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/instrument-serif-normal-latin.woff2) format('woff2'); 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: 'Inter Tight'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(../fonts/inter-tight-normal-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, 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; }
@font-face { font-family: 'Inter Tight'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(../fonts/inter-tight-normal-latin.woff2) format('woff2'); 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; }


:root {
  --paper: #F4F3EE;
  --paper-2: #EAE6DC;
  --cream: #F0E6D0;
  --ink: #1D1D1B;
  --signal: #FF4F1F;
  --graphite: #66645E;
  --rule: 1px solid var(--ink);
  --rule-soft: 1px solid rgba(29, 29, 27, .18);
  --rule-inv: 1px solid rgba(240, 230, 208, .2);
  --ok: #2F8F4E;
  --err: #C4260F;

  --font: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --serif: "Instrument Serif", "Times New Roman", serif;
  --star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 100'%3E%3Cpath d='M30 0C32 34 36 46 60 50 36 54 32 66 30 100 28 66 24 54 0 50 24 46 28 34 30 0Z'/%3E%3C/svg%3E");

  --fs-mega: clamp(min(3.5rem, 14.5vw), 15vw, 15.5rem);
  --fs-hero: clamp(3.4rem, 11.4vw, 12rem);
  --fs-d1: clamp(2.8rem, 7vw, 7rem);
  --fs-d2: clamp(2.6rem, 5.6vw, 5.6rem);
  --fs-h3: clamp(1.7rem, 2.5vw, 2.4rem);
  --fs-lead: clamp(1.15rem, 1.45vw, 1.35rem);
  --fs-body: 1.0625rem;
  --fs-sm: .875rem;
  --fs-xs: .72rem;

  --gutter: clamp(16px, 3vw, 44px);
  --max: 1600px;
  --section: clamp(80px, 10vw, 152px);
  --ease: cubic-bezier(.7, 0, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 var(--fs-body)/1.55 var(--font); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .22em; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--ink); color: var(--paper); }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 10px 16px; z-index: 200; }
.skip:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(12px, 1.6vw, 28px); }

/* ---------- tipografia ---------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; letter-spacing: -.02em; line-height: .95; }
h1 { text-transform: uppercase; letter-spacing: -.015em; }
h1 { font-size: var(--fs-d1); }
h2 { font-size: var(--fs-d2); }
h3 { font-size: var(--fs-h3); line-height: .95; }
p { margin: 0 0 1em; }
.lead { font-size: var(--fs-lead); line-height: 1.4; max-width: 40ch; }
.muted { color: var(--graphite); }
.small { font-size: var(--fs-sm); }
.label { font-size: var(--fs-xs); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; line-height: 1.3; }

/* cabeçalho de secção suíço: filete, etiqueta à esquerda, número à direita, título grande */
.sec-bar { display: flex; justify-content: space-between; gap: 16px; padding-top: 12px; border-top: var(--rule); margin-bottom: clamp(28px, 3.5vw, 52px); }
.inv .sec-bar { border-top: var(--rule-inv); }
.section-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(12px, 1.6vw, 28px); align-items: end; margin-bottom: clamp(36px, 4.5vw, 64px); }
.section-head h2 { grid-column: 1 / span 8; }
.section-head p { grid-column: 9 / span 4; margin: 0; }
@media (max-width: 960px) { .section-head h2, .section-head p { grid-column: 1 / -1; } .section-head p { margin-top: 16px; } }

/* ---------- botões ---------- */
.btn { --bg: var(--signal); --fg: var(--ink); position: relative; display: inline-flex; align-items: center; gap: .7em; padding: .95em 1.3em; border: 0; background: var(--bg); color: var(--fg); text-decoration: none; cursor: pointer; font-size: .95rem; font-weight: 700; line-height: 1; transition: background .25s, color .25s; }
.btn:hover { --bg: var(--ink); --fg: var(--paper); }
.btn svg { width: 1.45em; transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(.25em); }
.btn--ghost { --bg: transparent; --fg: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.btn--ghost:hover { --bg: var(--ink); --fg: var(--paper); }
.inv .btn--ghost { --fg: var(--paper); box-shadow: inset 0 0 0 1px var(--paper); }
.inv .btn--ghost:hover { --bg: var(--paper); --fg: var(--ink); }
.inv .btn:hover { --bg: var(--paper); --fg: var(--ink); }
.btn[disabled] { opacity: .6; pointer-events: none; }

.link-arrow { display: inline-flex; align-items: center; gap: .5em; font-weight: 600; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: .15em; }
.link-arrow svg { width: 1.4em; transition: transform .35s var(--ease); }
.link-arrow:hover svg { transform: translateX(.3em); }
.link-arrow:hover { color: var(--signal); }

/* ---------- header ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; background: var(--paper); border-bottom: 1px solid transparent; transition: transform .45s var(--ease), border-color .3s; }
.site-header.is-hidden { transform: translateY(-100%); }
.site-header.is-scrolled { border-bottom-color: var(--ink); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: block; color: var(--ink); width: 108px; flex: none; }
.nav { display: flex; gap: clamp(16px, 2.4vw, 36px); margin-left: auto; }
.nav a { position: relative; text-decoration: none; font-size: .95rem; font-weight: 500; padding: 4px 0; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.lang { display: flex; gap: 2px; font-size: .85rem; }
.lang a, .lang-soon { text-decoration: none; padding: 4px; opacity: .45; } .lang-soon { cursor: default; } .lang a[aria-current="true"] { opacity: 1; font-weight: 600; }
.site-header .btn { padding: .75em 1em; font-size: .88rem; }
.menu-toggle { display: none; margin-left: auto; background: none; border: 0; width: 44px; height: 44px; padding: 0; cursor: pointer; position: relative; }
.menu-toggle i { position: absolute; left: 10px; right: 10px; height: 1.5px; background: var(--ink); transition: transform .35s var(--ease), top .35s var(--ease); }
.menu-toggle i:nth-of-type(1) { top: 18px; } .menu-toggle i:nth-of-type(2) { top: 25px; }
.menu-open .menu-toggle i { top: 21px; background: var(--paper); }
.menu-open .menu-toggle i:nth-of-type(1) { transform: rotate(45deg); }
.menu-open .menu-toggle i:nth-of-type(2) { transform: rotate(-45deg); }
.mobile-menu { position: fixed; inset: 0; z-index: 40; background: var(--ink); color: var(--paper); display: flex; flex-direction: column; justify-content: flex-start; overflow-y: auto; overscroll-behavior: contain; padding: 96px var(--gutter) max(28px, env(safe-area-inset-bottom)); transform: translateY(-100%); visibility: hidden; transition: transform .4s cubic-bezier(.7, 0, .84, 0), visibility 0s .4s; }
/* abre logo a seguir ao toque (ease-out) e fecha depressa */
.menu-open .mobile-menu { transform: none; visibility: visible; transition: transform .5s var(--ease-out); }
/* as linhas entram em cascata curta depois do painel */
.mobile-menu nav > *, .mobile-menu .mm-cta, .mobile-menu .mm-foot { opacity: 0; transform: translateY(14px); transition: opacity .2s, transform .2s; }
.menu-open .mobile-menu nav > *, .menu-open .mobile-menu .mm-cta, .menu-open .mobile-menu .mm-foot { opacity: 1; transform: none; transition: opacity .45s var(--ease-out), transform .6s var(--ease-out); transition-delay: calc(120ms + var(--i, 0) * 40ms); }
@media (prefers-reduced-motion: reduce) { .mobile-menu, .menu-open .mobile-menu { transition: visibility 0s; } .mobile-menu nav > *, .mobile-menu .mm-cta, .mobile-menu .mm-foot { transform: none !important; transition: opacity .2s !important; } }
.menu-open .site-header { background: transparent; border-color: transparent; }
.menu-open .brand { color: var(--paper); }
.mobile-menu nav a { display: block; font-size: clamp(3rem, 15vw, 5.5rem); font-family: var(--serif); font-weight: 400; text-transform: none; line-height: .95; text-decoration: none; border-top: var(--rule-inv); padding: 6px 0; }
/* página atual: a estrela laranja à frente do nome (o laranja fica só nos botões e na estrela) */
.mobile-menu nav a[aria-current="page"]::after { content: ""; display: inline-block; width: .2em; height: .34em; margin-left: .22em; vertical-align: .32em; background: var(--signal); -webkit-mask: var(--star) center / contain no-repeat; mask: var(--star) center / contain no-repeat; }
.mobile-menu .mm-foot { display: flex; justify-content: space-between; margin-top: 28px; font-size: var(--fs-sm); }
@media (max-width: 960px) { .nav, .site-header .btn, .site-header .lang { display: none; } .menu-toggle { display: block; } }

/* ---------- reveals ---------- */
/* a máscara das linhas tem folga (acentos, caudas e itálico); as margens negativas mantêm o espaçamento */
.line { display: block; overflow: clip; padding: .16em .12em .2em; margin: -.16em -.12em -.2em; }
.line > span { display: block; }

/* ==========================================================================
   HOME
   ========================================================================== */
.hero { padding-top: clamp(120px, 15vh, 168px); padding-bottom: clamp(36px, 4vw, 56px); }
.hero h1 { font-size: var(--fs-hero); line-height: .86; }
.hero-foot { margin-top: clamp(32px, 4vw, 64px); padding-top: 18px; border-top: var(--rule); align-items: start; }
.hero-foot .lead { grid-column: 1 / span 5; margin: 0; }
.hero-ctas { grid-column: 9 / span 4; display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
@media (max-width: 960px) { .hero-foot .lead, .hero-ctas { grid-column: 1 / -1; } .hero-ctas { justify-content: flex-start; margin-top: 24px; } }

/* fitas inclinadas: o único momento "alto" da página */
.tapes { position: relative; height: clamp(150px, 15vw, 220px); overflow: hidden; }
.tape { position: absolute; left: -5%; right: -5%; top: 50%; white-space: nowrap; overflow: hidden; padding: .5em 0; }
.tape--a { background: var(--signal); transform: translateY(-75%) rotate(-3deg); z-index: 2; }
.tape--b { background: var(--ink); color: var(--cream); transform: translateY(-15%) rotate(2deg); }
.tape-track { display: inline-flex; gap: .8em; font-size: clamp(1.6rem, 3vw, 2.8rem); letter-spacing: -.01em; font-family: var(--serif); font-weight: 400; text-transform: uppercase; line-height: 1.2; animation: tick 32s linear infinite; }
.tape--b .tape-track { animation-direction: reverse; animation-duration: 38s; }
.tape-track span { display: inline-flex; align-items: center; gap: .8em; }
.tape-track span::after { content: ""; width: .42em; height: .7em; background: currentColor; -webkit-mask: var(--star) center / contain no-repeat; mask: var(--star) center / contain no-repeat; }
@keyframes tick { to { transform: translateX(-50%); } }

/* secções */
.section { padding-block: var(--section); }
.section--tight { padding-block: calc(var(--section) * .55); }
.inv { background: var(--ink); color: var(--cream); }
.inv .muted { color: rgba(240, 230, 208, .62); }

/* lista de serviços */
.services { border-top: var(--rule); }
.inv .services { border-top: var(--rule-inv); }
.service-row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 5fr) minmax(0, 2fr); gap: 20px; align-items: center; padding: clamp(18px, 2vw, 28px) 0; border-bottom: var(--rule); text-decoration: none; }
.inv .service-row { border-bottom: var(--rule-inv); }
.service-row h3 { font-size: clamp(2rem, 4vw, 3.8rem); transition: transform .45s var(--ease), color .25s; }
.service-row p { margin: 0; max-width: 44ch; }
.service-row .go { justify-self: end; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; box-shadow: inset 0 0 0 1px currentColor; transition: background .25s, color .25s, box-shadow .25s; }
.service-row .go svg { width: 22px; }
.service-row:hover h3 { transform: translateX(12px); }
.service-row:hover .go { background: var(--signal); color: var(--ink); box-shadow: none; }
@media (max-width: 760px) { .service-row { grid-template-columns: 1fr auto; } .service-row > p, .service-row > div { grid-column: 1 / -1; grid-row: 2; } }

/* projetos empilhados */
.stack { display: grid; gap: clamp(20px, 3vw, 40px); }
.stack-card { position: sticky; top: calc(88px + var(--i, 0) * 14px); display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); background: var(--paper); color: var(--ink); border: var(--rule); text-decoration: none; transform-origin: 50% 0; align-items: stretch; }
.stack-media { position: relative; overflow: hidden; border-right: var(--rule); background: var(--paper-2); }
.stack-media img { width: 100%; height: auto; transition: transform 1s var(--ease-out); }
.stack-body { display: flex; flex-direction: column; padding: clamp(18px, 2.2vw, 32px); }
.stack-body .label-row { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 12px; border-bottom: var(--rule-soft); }
.stack-body h3 { font-size: clamp(2.8rem, 5.6vw, 5.8rem); line-height: .86; margin-top: auto; }
.stack-body p { margin: 16px 0 0; max-width: 36ch; color: var(--graphite); }
.stack-more { display: flex; justify-content: center; margin-top: clamp(32px, 4vw, 56px); }
@media (max-width: 860px) {
  .stack-card { grid-template-columns: 1fr; height: auto; position: relative; top: 0; }
  .stack-media { border-right: 0; border-bottom: var(--rule); }
  .stack-body h3 { margin-top: 20px; }
}

/* teaser do estúdio */
.teaser { align-items: start; }
.teaser .t-text { grid-column: 1 / span 6; }
.teaser .t-text p { font-size: var(--fs-lead); line-height: 1.4; max-width: 40ch; }
.teaser .t-quote { grid-column: 8 / span 5; margin: 0; border-top: var(--rule); padding-top: 18px; }
.teaser .t-quote blockquote { margin: 0 0 16px; font-size: clamp(1.4rem, 2vw, 1.9rem); line-height: 1.25; font-weight: 500; letter-spacing: -.01em; }
@media (max-width: 960px) { .teaser .t-text, .teaser .t-quote { grid-column: 1 / -1; } .teaser .t-quote { margin-top: 40px; } }

/* lista de artigos (home) */
.post-list { border-top: var(--rule); }
.post-row { display: grid; grid-template-columns: 140px minmax(0, 1fr) 140px 48px; gap: 20px; align-items: center; padding: 20px 0; border-bottom: var(--rule); text-decoration: none; }
.post-row h3 { font-size: clamp(1.4rem, 2.2vw, 2rem); transition: transform .45s var(--ease); }
.post-row:hover h3 { transform: translateX(10px); }
.post-row svg { width: 24px; justify-self: end; transition: color .2s; }
.post-row:hover svg { color: var(--signal); }
@media (max-width: 760px) { .post-row { grid-template-columns: 1fr auto; } .post-row .label:first-child { grid-column: 1 / -1; } .post-row .label:nth-of-type(2) { display: none; } }

/* CTA final com monograma halftone */
.cta-big { position: relative; overflow: hidden; }
.cta-big .ht-bg { position: absolute; right: 2%; top: 50%; width: clamp(200px, 30vw, 460px); aspect-ratio: 104 / 138; transform: translateY(-50%); background: var(--ink); -webkit-mask: url(../img/mono-halftone.svg) center / contain no-repeat; mask: url(../img/mono-halftone.svg) center / contain no-repeat; pointer-events: none; }
.inv.cta-big .ht-bg { background: var(--cream); opacity: .9; }
.cta-big a.cta-link { position: relative; display: block; text-decoration: none; font-size: var(--fs-mega); font-family: var(--serif); font-weight: 400; text-transform: uppercase; line-height: .84; }
.cta-big a.cta-link .line > span { transition: transform .7s var(--ease); }
.cta-big a.cta-link:hover .line:nth-child(2) > span { transform: translateX(.1em); }
.cta-big a.cta-link svg { display: inline-block; width: .62em; vertical-align: .04em; transition: color .3s; }
.cta-big a.cta-link:hover svg { color: var(--signal); }
.cta-row { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; margin-top: clamp(36px, 4vw, 60px); padding-top: 16px; border-top: var(--rule); font-size: var(--fs-sm); }
.inv .cta-row { border-top: var(--rule-inv); }
.cta-row a { text-decoration: none; font-weight: 600; } .cta-row a:hover { color: var(--signal); }
@media (max-width: 760px) { .cta-big .ht-bg { opacity: .18; right: -10%; } }

/* footer */
.site-footer { background: var(--ink); color: var(--cream); padding: 56px 0 24px; border-top: var(--rule-inv); }
.foot-mega { color: var(--cream); width: 100%; margin: 0 0 48px; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 28px; padding-bottom: 44px; }
.foot-grid h2, .foot-grid .foot-h { font-family: var(--font); font-size: var(--fs-xs); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 16px; opacity: .55; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot-grid a { text-decoration: none; } .foot-grid a:hover { color: var(--signal); }
.foot-motto { margin: 0 0 18px; font-family: var(--serif); font-size: clamp(1.6rem, 2.2vw, 2.1rem); line-height: 1; text-transform: uppercase; }
.foot-brand address { font-style: normal; opacity: .75; max-width: 30ch; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; padding-top: 18px; border-top: var(--rule-inv); font-size: .8rem; opacity: .65; }
.foot-bottom a { display: inline-block; padding: 8px 0; margin: -8px 14px -8px 0; text-decoration: none; } /* área de toque com 31px de altura sem mudar o aspeto */
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }

/* CTA flutuante com foto */
.float-cta { position: fixed; right: 16px; bottom: 16px; z-index: 45; display: flex; align-items: center; gap: 10px; padding: 6px 16px 6px 6px; background: var(--ink); color: var(--paper); text-decoration: none; border-radius: 999px; transform: translateY(160%); transition: transform .5s var(--ease), background .25s, color .25s; }
.float-cta.is-on { transform: none; }
.float-cta:hover { background: var(--signal); color: var(--ink); }
.float-cta img { width: 42px; height: 42px; object-fit: cover; border-radius: 50%; filter: grayscale(1); }
.float-cta strong { display: block; font-size: .92rem; font-weight: 700; line-height: 1.1; }
.float-cta small { display: flex; align-items: center; gap: 6px; font-size: .74rem; opacity: .7; }
.float-cta small::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }

/* ==========================================================================
   PÁGINAS INTERIORES
   ========================================================================== */
.page-hero { padding-top: clamp(118px, 15vh, 168px); padding-bottom: clamp(36px, 4.5vw, 64px); }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0 0 clamp(20px, 2.5vw, 36px); font-size: var(--fs-sm); color: var(--graphite); }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .5; }
.crumbs a { text-decoration: none; } .crumbs a:hover { color: var(--ink); text-decoration: underline; }
.page-hero h1 { grid-column: 1 / -1; font-size: var(--fs-hero); line-height: .86; }
.page-hero .lead { grid-column: 1 / span 6; margin-top: clamp(24px, 3vw, 36px); }
.page-hero .hero-ctas { grid-column: 1 / -1; justify-content: flex-start; margin-top: 28px; }
@media (max-width: 960px) { .page-hero .lead { grid-column: 1 / -1; } }

.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: var(--rule); border-bottom: var(--rule); margin: 0; }
.facts > div { padding: 14px 16px 16px 0; }
.facts > div + div { padding-left: 16px; border-left: var(--rule-soft); }
.facts dt { font-size: var(--fs-xs); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--graphite); margin-bottom: 6px; }
.facts dd { margin: 0; font-weight: 600; }
@media (max-width: 760px) { .facts { grid-template-columns: 1fr 1fr; } .facts > div:nth-child(3) { border-left: 0; padding-left: 0; } .facts > div:nth-child(n+3) { border-top: var(--rule-soft); } }

.split { align-items: start; }
.split > .s-l { grid-column: 1 / span 5; }
.split > .s-r { grid-column: 7 / span 6; }
@media (max-width: 960px) { .split > .s-l, .split > .s-r { grid-column: 1 / -1; } .split > .s-r { margin-top: 28px; } }

.checklist { list-style: none; margin: 0; padding: 0; border-top: var(--rule); }
.inv .checklist { border-top: var(--rule-inv); }
.checklist li { padding: 16px 0; border-bottom: var(--rule-soft); }
.inv .checklist li { border-bottom: var(--rule-inv); }
.checklist strong { display: block; font-weight: 600; margin-bottom: 2px; }
.checklist span { color: var(--graphite); }
.inv .checklist span { color: rgba(238, 237, 233, .65); }

.compare { width: 100%; border-collapse: collapse; font-size: .98rem; }
.compare th, .compare td { text-align: left; padding: 14px 16px 14px 0; border-bottom: var(--rule-soft); vertical-align: top; }
.compare thead th { font-size: 1.6rem; font-family: var(--serif); font-weight: 400; text-transform: none; border-bottom: var(--rule); }
.compare tbody th { font-weight: 600; width: 26%; }
.table-scroll { overflow-x: auto; }
/* telemóvel: a tabela ganha largura própria e desliza, em vez de ficar espremida e cortada à direita */
@media (max-width: 600px) { .table-scroll .compare { min-width: 34rem; } }
.table-scroll.can-scroll:not(.at-end) { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 56px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 56px), transparent); }
.scroll-hint { margin: 0 0 10px; color: var(--graphite); }
.split > .scroll-hint { grid-column: 1 / -1; margin-top: 28px; }
.split > .scroll-hint + .table-scroll { margin-top: 0; }

/* serviços (hub) */
.svc-block { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(12px, 1.6vw, 28px); padding: clamp(28px, 3.5vw, 48px) 0; border-top: var(--rule); }
.svc-block:last-child { border-bottom: var(--rule); }
.svc-block .label { grid-column: 1 / span 2; padding-top: .6em; }
.svc-block h2 { grid-column: 3 / span 5; font-size: clamp(2.4rem, 4.6vw, 4.4rem); }
.svc-block .svc-text { grid-column: 8 / span 5; }
.svc-block .svc-text p { margin-bottom: 16px; }
.svc-block ul { list-style: none; margin: 0 0 20px; padding: 0; }
.svc-block li { padding: 8px 0; border-top: var(--rule-soft); font-size: .98rem; }
@media (max-width: 960px) { .svc-block .label, .svc-block h2, .svc-block .svc-text { grid-column: 1 / -1; } .svc-block h2 { margin: 10px 0 20px; } }

.standards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(12px, 1.6vw, 28px); }
.standard { padding: 16px 0 32px; border-top: var(--rule); }
.inv .standard { border-top: var(--rule-inv); }
.standard h3 { font-size: clamp(1.6rem, 2.2vw, 2.2rem); margin: 0 0 10px; }
.standard p { margin: 0; }
@media (max-width: 960px) { .standards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .standards { grid-template-columns: 1fr; } }

.process-list { list-style: none; margin: 0; padding: 0; border-top: var(--rule); counter-reset: s; }
.process-list li { counter-increment: s; display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 5fr) minmax(0, 5fr); gap: 20px; align-items: baseline; padding: clamp(16px, 2vw, 26px) 0; border-bottom: var(--rule); }
.process-list li::before { content: "0" counter(s); font-size: clamp(2rem, 3.4vw, 3.4rem); font-family: var(--serif); font-weight: 400; line-height: .9; }
.process-list h3 { font-size: clamp(1.7rem, 2.8vw, 2.8rem); }
.process-list p { margin: 0; max-width: 46ch; color: var(--graphite); }
@media (max-width: 760px) { .process-list li { grid-template-columns: 56px 1fr; } .process-list p { grid-column: 2; } }

/* projetos (listagem) */
.filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: clamp(28px, 3.5vw, 48px); }
.filters button { border: 0; box-shadow: inset 0 0 0 1px var(--ink); background: none; padding: 9px 14px; border-radius: 999px; font-size: .88rem; font-weight: 500; cursor: pointer; transition: background .2s, color .2s; }
.filters button:hover { background: var(--paper-2); }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.work-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 4vw, 64px) clamp(16px, 2vw, 32px); }
.work-card { display: block; text-decoration: none; color: inherit; }
.work-card[hidden] { display: none; }
.work-media { overflow: hidden; position: relative; background: var(--paper-2); }
.work-media img { width: 100%; height: auto; transition: transform 1s var(--ease-out); }
.work-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-top: 12px; margin-top: 12px; border-top: var(--rule); }
.work-meta h3 { font-size: clamp(1.6rem, 2.4vw, 2.4rem); }
.work-meta p { margin: 0; font-size: var(--fs-sm); color: var(--graphite); text-align: right; }
@media (max-width: 700px) { .work-grid { grid-template-columns: 1fr; } }

/* estúdio */
.portrait { grid-column: 1 / span 5; margin: 0; }
.portrait img { width: 100%; height: auto; filter: grayscale(1); }
.portrait figcaption { margin-top: 10px; font-size: var(--fs-sm); color: var(--graphite); }
.bio { grid-column: 7 / span 6; }
.bio p { font-size: var(--fs-lead); line-height: 1.45; }
@media (max-width: 960px) { .portrait, .bio { grid-column: 1 / -1; } .bio { margin-top: 32px; } }
.clients { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); margin: 0; padding: 0; border-top: var(--rule); }
.clients li { list-style: none; aspect-ratio: 3 / 2; display: grid; place-items: center; padding: 20%; border-bottom: var(--rule-soft); }
.clients li:not(:nth-child(6n)) { border-right: var(--rule-soft); }
.clients img { max-height: 56px; width: auto; filter: grayscale(1) contrast(1.3); mix-blend-mode: multiply; opacity: .8; transition: opacity .2s; }
.clients li:hover img { opacity: 1; }
@media (max-width: 760px) { .clients { grid-template-columns: repeat(3, minmax(0, 1fr)); } .clients li:not(:nth-child(6n)) { border-right: 0; } .clients li:not(:nth-child(3n)) { border-right: var(--rule-soft); } }

.reviews-head { grid-column: 1 / span 4; }
.reviews-body { grid-column: 5 / span 8; }
@media (max-width: 960px) { .reviews-head, .reviews-body { grid-column: 1 / -1; } .reviews-body { margin-top: 32px; } }
.review-stage { display: grid; }
.review { margin: 0; grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .5s, visibility 0s .5s; }
.review.is-active { opacity: 1; visibility: visible; transition: opacity .5s; }
.review blockquote { margin: 0; font-size: clamp(1.6rem, 2.8vw, 2.6rem); line-height: 1.2; font-weight: 500; letter-spacing: -.015em; max-width: 30ch; }
.review figcaption { margin-top: 24px; font-size: var(--fs-sm); }
.review figcaption span { color: var(--graphite); margin-left: 8px; }
.review-ctrl { display: flex; align-items: center; gap: 8px; margin-top: 36px; }
.review-ctrl button { width: 48px; height: 48px; border: 0; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--ink); background: none; cursor: pointer; display: grid; place-items: center; transition: background .2s, color .2s; }
.review-ctrl button:hover { background: var(--ink); color: var(--paper); }
.review-ctrl button svg { width: 22px; }
.review-ctrl button:first-child svg { transform: scaleX(-1); }
.review-count { font-size: var(--fs-sm); margin-left: 8px; font-variant-numeric: tabular-nums; }

/* caso */
.case-cover { overflow: hidden; background: var(--paper-2); }
.case-cover img { width: 100%; height: auto; }
.case-body h2 { margin-bottom: 24px; }
.case-body p { max-width: 62ch; }
.results { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(12px, 1.6vw, 28px); }
.result { padding-top: 16px; border-top: var(--rule-inv); }
.result strong { display: block; font-size: clamp(3.6rem, 7vw, 7rem); font-family: var(--serif); font-weight: 400; line-height: .85; margin-bottom: 10px; }
.result .todo { display: inline-block; margin-top: 10px; font-size: var(--fs-xs); padding: 3px 6px; border: 1px dashed currentColor; opacity: .7; }
@media (max-width: 760px) { .results { grid-template-columns: 1fr; row-gap: 28px; } }
.gallery { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(10px, 1.4vw, 20px); }
.gallery figure { margin: 0; overflow: hidden; background: var(--paper-2); }
.gallery { align-items: start; }
.gallery img { width: 100%; height: auto; }
.g-full { grid-column: 1 / -1; } .g-7 { grid-column: span 7; } .g-5 { grid-column: span 5; } .g-6 { grid-column: span 6; }
@media (max-width: 760px) { .g-7, .g-5, .g-6 { grid-column: 1 / -1; } }
.next-case { display: block; text-decoration: none; padding-block: var(--section); }
.next-case .label { display: block; margin-bottom: 14px; }
.next-case strong { display: block; font-size: var(--fs-mega); font-family: var(--serif); font-weight: 400; text-transform: uppercase; line-height: .84; transition: transform .7s var(--ease); }
.next-case:hover strong { transform: translateX(.04em); }
.quote-solo blockquote { margin: 0; font-size: clamp(1.7rem, 3vw, 2.8rem); line-height: 1.2; font-weight: 500; max-width: 30ch; }
.quote-solo figcaption { margin-top: 20px; font-size: var(--fs-sm); color: var(--graphite); }

/* blog */
.posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(32px, 4vw, 56px) clamp(16px, 2vw, 32px); }
.post-card { text-decoration: none; display: flex; flex-direction: column; color: inherit; }
.post-card .work-media { aspect-ratio: 3 / 2; margin-bottom: 14px; }
.post-card .post-meta { display: flex; gap: 12px; padding-top: 12px; border-top: var(--rule); margin-bottom: 12px; font-size: var(--fs-sm); color: var(--graphite); }
.post-card h3 { font-size: clamp(1.6rem, 2.1vw, 2.1rem); margin-bottom: 10px; transition: color .2s; }
.post-card:hover h3 { color: var(--signal); }
.post-card p { color: var(--graphite); margin: 0; }
.inv .post-card p, .inv .post-card .post-meta { color: rgba(238, 237, 233, .62); }
.inv .post-card .post-meta { border-top: var(--rule-inv); }
.post-cover { width: 100%; height: 100%; display: grid; place-items: center; background: var(--cream); position: relative; overflow: hidden; }
.inv .post-cover { background: #2a2a28; }
.post-cover .ht { width: 30%; aspect-ratio: 104 / 138; background: var(--ink); -webkit-mask: url(../img/mono-halftone.svg) center / contain no-repeat; mask: url(../img/mono-halftone.svg) center / contain no-repeat; transition: transform .8s var(--ease-out); }
.inv .post-cover .ht { background: var(--paper); }
.post-card:hover .ht, .post-feature:hover .ht { transform: scale(1.08) rotate(-4deg); }
.post-cover b { position: absolute; left: 14px; top: 12px; font-size: var(--fs-xs); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.post-cover--ink, .post-cover--cream { background: var(--paper-2); }
@media (max-width: 960px) { .posts { grid-template-columns: 1fr; } }
@media (min-width: 640px) and (max-width: 960px) { .posts { grid-template-columns: 1fr 1fr; } }
.post-feature { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(12px, 1.6vw, 28px); text-decoration: none; padding-bottom: clamp(36px, 4vw, 56px); margin-bottom: clamp(36px, 4vw, 56px); border-bottom: var(--rule); }
.post-feature .work-media { grid-column: 1 / span 7; aspect-ratio: 16 / 10; }
.post-feature > div:last-child { grid-column: 9 / span 4; display: flex; flex-direction: column; justify-content: flex-end; }
.post-feature h2 { font-size: clamp(2.2rem, 3.6vw, 3.6rem); margin: 12px 0 16px; }
.post-feature .post-meta { display: flex; gap: 12px; font-size: var(--fs-sm); color: var(--graphite); }
@media (max-width: 960px) { .post-feature .work-media, .post-feature > div:last-child { grid-column: 1 / -1; } .post-feature > div:last-child { margin-top: 20px; } }
.post-card[hidden] { display: none; }

/* artigo */
.article-head h1 { font-size: clamp(2.8rem, 7vw, 7rem); max-width: 15ch; }
.byline { display: flex; align-items: center; gap: 12px; margin-top: 28px; font-size: var(--fs-sm); color: var(--graphite); }
.byline img { width: 44px; height: 44px; object-fit: cover; border-radius: 50%; filter: grayscale(1); }
.byline strong { display: block; color: var(--ink); }
.article-layout { align-items: start; }
.toc { grid-column: 1 / span 3; position: sticky; top: 100px; font-size: var(--fs-sm); }
.toc p { font-weight: 600; margin-bottom: 10px; }
.toc ol { list-style: none; padding: 0; margin: 0; border-top: var(--rule); }
.toc li { border-bottom: var(--rule-soft); }
.toc a { display: block; padding: 9px 0; text-decoration: none; color: var(--graphite); transition: color .2s; }
.toc a:hover { color: var(--ink); } .toc a.is-active { color: var(--ink); font-weight: 600; padding-left: 10px; box-shadow: inset 2px 0 0 var(--signal); }
.prose { grid-column: 5 / span 7; font-size: 1.125rem; line-height: 1.65; }
.prose > * { max-width: 66ch; }
.prose h2 { font-size: clamp(2rem, 3.2vw, 2.8rem); margin: 1.8em 0 .5em; }
.prose h3 { font-size: 1.6rem; margin: 1.6em 0 .4em; }
.prose ul { padding-left: 1.2em; } .prose li { margin-bottom: .5em; }
.prose blockquote { margin: 2em 0; padding: 0 0 0 20px; border-left: 2px solid var(--ink); font-size: 1.45rem; line-height: 1.3; font-weight: 500; }
.prose .tldr { border-top: var(--rule); border-bottom: var(--rule); padding: 18px 0; margin-bottom: 2em; max-width: none; }
.prose .tldr > p:first-child { font-size: var(--fs-xs); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px; }
.prose .tldr ul { margin: 0; }
.prose .table-scroll { max-width: none; margin: 1.6em 0; }
.prose code { font-size: .88em; background: var(--paper-2); padding: .1em .35em; }
.prose a { font-weight: 600; text-decoration-color: var(--signal); }
.reading-bar { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; background: var(--signal); transform-origin: left; transform: scaleX(0); }
.author-box { display: grid; grid-template-columns: 80px 1fr; gap: 20px; padding-top: 20px; border-top: var(--rule); margin-top: 56px; max-width: 66ch; }
.author-box img { width: 80px; height: 80px; object-fit: cover; border-radius: 50%; filter: grayscale(1); }
.author-box h2 { font-size: 1.8rem; margin: 0 0 6px; }
.inline-cta { background: var(--ink); color: var(--paper); padding: 28px; margin: 2.2em 0; max-width: none; }
.inline-cta h3 { margin: 0 0 10px; font-size: 2.2rem; }
.inline-cta p { opacity: .75; }
@media (max-width: 960px) { .toc { display: none; } .prose { grid-column: 1 / -1; } }
@media (max-width: 560px) { .author-box { grid-template-columns: 1fr; } }

/* FAQ */
.faq-head { grid-column: 1 / span 4; }
.faq { grid-column: 5 / span 8; border-top: var(--rule); }
.faq details { border-bottom: var(--rule); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 0; font-size: clamp(1.4rem, 2vw, 1.9rem); font-family: var(--serif); font-weight: 400; text-transform: none; line-height: 1; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { width: 16px; height: 16px; flex: none; position: relative; transition: transform .4s var(--ease); }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; background: currentColor; }
.faq summary i::before { left: 0; right: 0; top: 7px; height: 2px; }
.faq summary i::after { top: 0; bottom: 0; left: 7px; width: 2px; }
.faq details[open] summary i { transform: rotate(135deg); color: var(--signal); }
.faq .answer { overflow: hidden; }
.faq .answer > div { padding: 0 48px 22px 0; max-width: 64ch; color: var(--graphite); }
@media (max-width: 960px) { .faq, .faq-head { grid-column: 1 / -1; } .faq-head { margin-bottom: 24px; } }

/* ---------- formulário ---------- */
.contact-layout { align-items: start; }
.contact-side { grid-column: 1 / span 4; position: sticky; top: 100px; }
.contact-side dl { margin: 28px 0 0; border-top: var(--rule); }
.contact-side dl > div { padding: 12px 0; border-bottom: var(--rule-soft); }
.contact-side dt { font-size: var(--fs-xs); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--graphite); }
.contact-side dd { margin: 4px 0 0; font-weight: 500; }
.contact-side dd a { text-decoration: none; } .contact-side dd a:hover { text-decoration: underline; }
.form-shell { grid-column: 6 / span 7; }
.contact-layout > .form-shell, .contact-layout > .contact-side { grid-row: 1; } /* o formulário vem primeiro no HTML (telemóvel); no desktop a coluna do Rafael fica à esquerda */
@media (max-width: 960px) { .contact-side, .form-shell { grid-column: 1 / -1; } .contact-layout > .form-shell, .contact-layout > .contact-side { grid-row: auto; } .contact-side { position: static; margin-top: 56px; } }
.progress { display: flex; gap: 4px; margin-bottom: 32px; }
.progress span { flex: 1; height: 3px; background: rgba(29, 29, 27, .15); position: relative; overflow: hidden; }
.progress span::after { content: ""; position: absolute; inset: 0; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.progress span.done::after { transform: scaleX(1); }
.step-label { display: block; margin-bottom: 10px; font-size: var(--fs-sm); color: var(--graphite); }
.step { border: 0; padding: 0; margin: 0; min-width: 0; }
.step[hidden] { display: none; }
.step legend { font-size: clamp(2.2rem, 4vw, 3.6rem); font-family: var(--serif); font-weight: 400; text-transform: none; line-height: .9; padding: 0; margin-bottom: 28px; }
.choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; margin: 0; }
.choice label { display: flex; flex-direction: column; gap: 2px; padding: 16px 18px 16px 46px; box-shadow: inset 0 0 0 1px rgba(29, 29, 27, .25); cursor: pointer; position: relative; min-height: 100%; transition: box-shadow .2s, background .2s, color .2s; }
.choice label::before { content: ""; position: absolute; left: 18px; top: 20px; width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1px currentColor; transition: background .2s, box-shadow .2s; }
.choice label strong { font-weight: 600; }
.choice label span { font-size: var(--fs-sm); color: var(--graphite); }
.choice input:hover + label { box-shadow: inset 0 0 0 1px var(--ink); }
.choice input:focus-visible + label { outline: 2px solid var(--signal); outline-offset: 2px; }
.choice input:checked + label { background: var(--ink); color: var(--paper); box-shadow: none; }
.choice input:checked + label span { color: rgba(238, 237, 233, .7); }
.choice input:checked + label::before { background: var(--signal); box-shadow: none; }
/* escolha múltipla (serviços): quadrado com visto; as de escolha única continuam redondas */
.choice input[type="checkbox"] + label::before { border-radius: 0; }
.choice input[type="checkbox"]:checked + label::after { content: ""; position: absolute; left: 23px; top: 22px; width: 4px; height: 8px; border: solid var(--ink); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.drawer .choice input[type="checkbox"]:checked + label::after { left: 21px; top: 20px; }
.step-hint { margin: -16px 0 18px; font-size: var(--fs-sm); color: var(--graphite); }
.drawer .step-hint { margin: -12px 0 14px; }
.choices--pills { display: flex; flex-wrap: wrap; }
.choices--pills .choice label { padding: 12px 16px 12px 40px; border-radius: 999px; }
.choices--pills .choice label::before { left: 16px; top: 50%; margin-top: -7px; }
@media (max-width: 560px) { .choices { grid-template-columns: 1fr; } }
.field { position: relative; margin-bottom: 14px; }
.field input, .field textarea { width: 100%; background: transparent; border: 0; border-bottom: var(--rule); padding: 24px 0 8px; font-size: 1.1rem; border-radius: 0; }
.field textarea { min-height: 120px; resize: vertical; }
.field label { position: absolute; left: 0; top: 24px; pointer-events: none; color: var(--graphite); transition: transform .3s var(--ease-out); transform-origin: left; }
.field input:focus, .field textarea:focus { outline: none; border-bottom: 2px solid var(--ink); }
.field input:focus + label, .field input:not(:placeholder-shown) + label, .field textarea:focus + label, .field textarea:not(:placeholder-shown) + label { transform: translateY(-20px) scale(.78); }
.field .err { display: none; color: var(--err); font-size: var(--fs-sm); margin: 6px 0 0; }
.field.invalid input, .field.invalid textarea { border-bottom-color: var(--err); }
.field.invalid .err { display: block; }
.fields-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
@media (max-width: 560px) { .fields-2 { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -9999px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: var(--fs-sm); margin: 18px 0; color: var(--graphite); }
.consent input { width: 18px; height: 18px; accent-color: var(--ink); margin-top: 2px; flex: none; }
.step-nav { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-top: 32px; }
.step-nav .back { background: none; border: 0; font-weight: 500; cursor: pointer; padding: 10px 0; text-decoration: underline; text-underline-offset: .25em; }
.step-nav .back[hidden] { visibility: hidden; display: block; }
.step-error { color: var(--err); font-size: var(--fs-sm); margin-top: 14px; min-height: 1.4em; }
.summary { border-top: var(--rule); margin: 0 0 20px; }
.summary div { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-bottom: var(--rule-soft); font-size: .94rem; }
.summary dt { color: var(--graphite); } .summary dd { margin: 0; font-weight: 600; text-align: right; }
.form-done[hidden] { display: none; }
.form-done .seal { width: 72px; height: 72px; display: grid; place-items: center; background: var(--signal); border-radius: 50%; margin-bottom: 28px; }
.form-done .seal svg { width: 30px; }
.form-done h2, .form-done-title { font-family: var(--serif); font-size: var(--fs-d2); line-height: .95; letter-spacing: -.02em; }

/* ---------- movimento reduzido ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .stack-card { position: relative; top: 0; }
}

/* estrela de 4 pontas (único glifo do site) */
.star { display: inline-block; width: .42em; height: .74em; vertical-align: -.02em; margin: 0 .06em; background: var(--signal); -webkit-mask: var(--star) center / contain no-repeat; mask: var(--star) center / contain no-repeat; }
.foot-tiger { width: 72px; color: var(--signal); margin-bottom: 18px; }
.sec-bar .label:first-child { display: inline-flex; align-items: center; gap: 8px; }
.sec-bar .label:first-child::before { content: ""; width: 7px; height: 12px; background: var(--signal); -webkit-mask: var(--star) center / contain no-repeat; mask: var(--star) center / contain no-repeat; }

/* ==========================================================================
   v5 — camada editorial
   ========================================================================== */

/* figuras com legenda */
.fig { margin: 0; }
.fig .ph { overflow: hidden; position: relative; background: var(--paper-2); }
.fig .ph img { width: 100%; height: auto; will-change: transform; }
.fig figcaption { display: flex; justify-content: space-between; gap: 12px; margin-top: 10px; font-size: var(--fs-xs); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.fig figcaption span + span { color: var(--graphite); font-weight: 500; text-align: right; }
.inv .fig figcaption span + span { color: rgba(240, 230, 208, .6); }

/* capitular e texto a colunas */
.dropcap::first-letter { float: left; font-family: var(--serif); font-size: 5.4em; line-height: .78; padding: .08em .1em 0 0; color: var(--ink); }
.inv .dropcap::first-letter { color: var(--cream); }
.cols-2 { columns: 2; column-gap: clamp(20px, 2.4vw, 40px); }
.cols-2 p { break-inside: avoid; }
@media (max-width: 760px) { .cols-2 { columns: 1; } }
h1 em, h2 em, .statement em { font-style: italic; }

/* hero editorial */
.hero--ed { padding-bottom: 0; }
.hero-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(12px, 1.6vw, 28px); margin-top: clamp(36px, 4.5vw, 64px); padding-top: 18px; border-top: var(--rule); align-items: start; }
.hero-text { grid-column: 1 / span 4; grid-row: 1; }
.hero-text .lead { margin: 0 0 28px; }
.hero-text .hero-ctas { justify-content: flex-start; }
.hero-a { grid-column: 6 / span 7; grid-row: 1 / span 2; }
.hero-b { grid-column: 2 / span 3; grid-row: 2; margin-top: clamp(40px, 6vw, 96px); }
@media (max-width: 960px) {
  .hero-text, .hero-a { grid-column: 1 / -1; grid-row: auto; }
  .hero-a { margin-top: 36px; }
  .hero-b { display: none; }
}

/* manifesto editorial */
.ed-intro { align-items: start; }
.ed-intro .statement { grid-column: 1 / span 10; margin: 0 0 clamp(40px, 5vw, 72px); font-family: var(--serif); font-size: clamp(2.2rem, 4.4vw, 4.6rem); line-height: 1.04; letter-spacing: -.02em; }
.ed-intro .statement .word { opacity: .14; }
.ed-intro .portrait-sm { grid-column: 1 / span 4; }
.ed-intro .portrait-sm img { filter: grayscale(1); }
.ed-intro .ed-text { grid-column: 6 / span 7; font-size: 1.1rem; line-height: 1.6; }
@media (max-width: 960px) { .ed-intro .statement, .ed-intro .portrait-sm, .ed-intro .ed-text { grid-column: 1 / -1; } .ed-intro .ed-text { margin-top: 32px; } }

/* imagem que segue o cursor (índice de serviços) */
.hover-img { position: fixed; left: 0; top: 0; width: 320px; pointer-events: none; z-index: 30; opacity: 0; overflow: hidden; clip-path: inset(50% 0 50% 0); transition: opacity .25s, clip-path .5s var(--ease); }
.hover-img.is-on { opacity: 1; clip-path: inset(0); }
.hover-img img { width: 100%; height: auto; }

/* imagem que cresce até ecrã inteiro */
.zoom { position: relative; height: 100vh; overflow: hidden; display: grid; place-items: center; background: var(--paper); }
.zoom-media { position: absolute; inset: 0; clip-path: inset(18% 30% 18% 30%); will-change: clip-path; }
.zoom-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.25); }
.zoom-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(29,29,27,.38), rgba(29,29,27,.68)); }
.zoom-text { position: relative; z-index: 2; text-align: center; color: var(--cream); padding-inline: var(--gutter); opacity: 0; }
.zoom-text h2 { font-size: var(--fs-d1); line-height: .95; }
.zoom-text p { margin-top: 18px; font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.zoom-cap { position: absolute; left: var(--gutter); bottom: 20px; z-index: 2; color: var(--cream); font-size: var(--fs-xs); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
@media (prefers-reduced-motion: reduce) { .zoom-media { clip-path: none; } .zoom-text { opacity: 1; } }

/* galeria horizontal do arquivo */
.hgal { overflow: hidden; padding-block: clamp(20px, 3vw, 40px) var(--section); }
.hgal-head { margin-bottom: clamp(28px, 3.5vw, 48px); }
.hgal-track { display: flex; gap: clamp(16px, 2vw, 32px); align-items: flex-end; width: max-content; padding-inline: var(--gutter); }
.hgal .fig { width: var(--w, 26vw); flex: none; }
.hgal-progress { height: 1px; background: rgba(29, 29, 27, .15); margin: clamp(28px, 3vw, 44px) var(--gutter) 0; position: relative; }
.hgal-progress i { position: absolute; inset: 0; background: var(--ink); transform-origin: left; transform: scaleX(0); }
@media (max-width: 760px) {
  .hgal-track { width: auto; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none; }
  .hgal-track::-webkit-scrollbar { display: none; }
  .hgal-track { align-items: flex-start; }
  .hgal .fig { width: 78vw; scroll-snap-align: start; }
  .hgal-progress { display: none; }
}

/* citação grande */
.pull { text-align: center; }
.pull blockquote { margin: 0 auto; max-width: 24ch; font-family: var(--serif); font-style: italic; font-size: clamp(2rem, 4.4vw, 4.4rem); line-height: 1.05; letter-spacing: -.02em; }
.pull figcaption { margin-top: 28px; font-size: var(--fs-sm); }
.pull figcaption span { color: var(--graphite); }
.pull .star { font-size: 3.6rem; margin-bottom: 24px; }

/* grelha editorial de projetos */
.ed-grid { align-items: start; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(40px, 5vw, 80px) clamp(12px, 1.6vw, 28px); }
.ed-grid .work-card { grid-column: span 6; }
.ed-grid .work-card.w-8 { grid-column: span 8; } .ed-grid .work-card.w-4 { grid-column: span 4; }
.ed-grid .work-card.w-7 { grid-column: span 7; } .ed-grid .work-card.w-5 { grid-column: span 5; }
.ed-grid .work-card.w-12 { grid-column: 1 / -1; }
.ed-grid .work-card.off { margin-top: clamp(40px, 8vw, 140px); }
.work-meta .num { font-family: var(--serif); font-style: italic; color: var(--graphite); margin-right: 10px; }
@media (max-width: 760px) { .ed-grid .work-card, .ed-grid .work-card[class*="w-"] { grid-column: 1 / -1; margin-top: 0; } }

/* serviços com imagem */
/* foto logo abaixo do título; o texto ocupa a coluna da direita nas duas linhas */
.svc-block { grid-template-rows: auto 1fr; }
.svc-block > .label, .svc-block > h2 { grid-row: 1; align-self: start; }
.svc-block .svc-text { grid-row: 1 / span 2; align-self: start; }
.svc-block .svc-img { grid-column: 3 / span 5; grid-row: 2; align-self: start; margin-top: clamp(20px, 2.4vw, 32px); }
@media (max-width: 960px) {
  .svc-block { grid-template-rows: none; }
  .svc-block > .label, .svc-block > h2, .svc-block .svc-text, .svc-block .svc-img { grid-row: auto; }
  .svc-block .svc-img { grid-column: 1 / -1; order: 2; margin: 0 0 24px; }
  .svc-block .svc-text { order: 3; }
}

/* cortina das transições entre páginas */
.curtain { position: fixed; inset: 0; z-index: 150; background: var(--ink); display: grid; place-items: center; transform: translateY(100%); pointer-events: none; }
.curtain svg { width: 54px; color: var(--signal); }
.is-loading .curtain { transform: none; }

/* ---------- autocolantes ---------- */
.has-stk { position: relative; }
.stk { position: absolute; z-index: 6; width: var(--w, 180px); transform: rotate(var(--rot, -6deg)); filter: drop-shadow(0 2px 3px rgba(29, 29, 27, .07)); cursor: grab; user-select: none; -webkit-user-select: none; }
.stk.is-drag { cursor: grabbing; filter: drop-shadow(0 6px 10px rgba(29, 29, 27, .1)); }
.stk svg, .stk img { display: block; width: 100%; height: auto; overflow: visible; }
.stk img { pointer-events: none; }
.stk text { font-family: var(--font); }
.stk .dc { fill: #fff; stroke: #fff; stroke-width: 14; stroke-linejoin: round; }
.stk .k { fill: var(--ink); color: var(--ink); }
.stk .c { fill: var(--cream); }
.stk .cr { fill: var(--cream); }
.stk .w { fill: #fff; }
.stk .s { fill: var(--signal); color: var(--signal); }
.stk .ln { fill: none; stroke: var(--ink); stroke-width: 2; }
.stk .ink-stroke { stroke: var(--ink); stroke-width: 3; }
.stk .ink-stroke-4 { stroke: var(--ink); stroke-width: 4; }
@media (max-width: 760px) { .stk { width: calc(var(--w, 180px) * .58); } .stk.m-hide { display: none; } }
@media (hover: none) { .stk { cursor: default; } }
/* nada (autocolantes incluídos) pode alargar a página em mobile; clip não cria contentor de scroll, por isso sticky e pins continuam a funcionar */
main { overflow-x: clip; }
@media (max-width: 760px) { .stk[style*="right:-"], .stk[style*="right:calc(var(--gutter) -"] { right: 4px !important; } }

/* ---------- drawer do orçamento ---------- */
html.drawer-open { overflow: hidden; }
.drawer { position: fixed; inset: 0 0 0 auto; margin: 0; width: min(620px, 100vw); max-width: 100vw; height: 100dvh; max-height: none; padding: 0; border: 0; background: var(--paper); color: var(--ink); overflow-y: auto; overscroll-behavior: contain; transform: translateX(100%); transition: transform .6s var(--ease); }
.drawer.is-open { transform: none; }
.drawer::backdrop { background: rgba(29, 29, 27, .55); opacity: 0; transition: opacity .45s; }
.drawer.is-open::backdrop { opacity: 1; }
.drawer-inner { min-height: 100%; display: flex; flex-direction: column; padding: clamp(20px, 3vw, 40px); }
.drawer-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding-bottom: 20px; margin-bottom: 28px; border-bottom: var(--rule); }
.drawer-title { font-family: var(--serif); font-size: clamp(2.2rem, 4vw, 3.2rem); margin-top: 10px; }
.drawer-close { flex: none; width: 48px; height: 48px; border: 0; border-radius: 50%; background: var(--ink); cursor: pointer; position: relative; transition: background .2s, transform .4s var(--ease); }
.drawer-close:hover { background: var(--signal); transform: rotate(90deg); }
.drawer-close i { position: absolute; left: 14px; right: 14px; top: 23px; height: 2px; background: var(--paper); }
.drawer-close i:first-child { transform: rotate(45deg); } .drawer-close i:last-child { transform: rotate(-45deg); }
.drawer .form-shell { grid-column: auto; flex: 1; }
.drawer .step legend { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin-bottom: 22px; }
.drawer .choice label { padding: 14px 16px 14px 44px; }
.drawer .choice label::before { left: 16px; top: 18px; }
.drawer-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 32px; padding-top: 16px; border-top: var(--rule-soft); font-size: var(--fs-sm); }
.drawer-foot a { font-weight: 600; text-decoration: none; } .drawer-foot a:hover { color: var(--signal); }
@media (max-width: 560px) { .drawer .choices { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .drawer, .drawer::backdrop { transition: none; } }
.mobile-menu .mm-cta { margin-top: 28px; align-self: flex-start; }
html.drawer-open .float-cta { transform: translateY(160%); }
.drawer:focus, .drawer:focus-visible { outline: none; }

/* ==========================================================================
   Hero cartaz (P&B, movimento, grão, tipografia técnica)
   ========================================================================== */
.poster { position: relative; min-height: 100svh; overflow: hidden; background: var(--ink); color: var(--cream); isolation: isolate; }
.poster-media { position: absolute; inset: 0; z-index: -2; }
.poster-media img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 50%; }
.poster-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(29,29,27,.55) 0%, rgba(29,29,27,.05) 30%, rgba(29,29,27,.1) 55%, rgba(29,29,27,.78) 100%); }
/* grão de película por CSS (não pesa na imagem) */
.poster::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .5; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.poster-lines { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.poster-lines line { stroke: rgba(240, 230, 208, .32); stroke-width: 1; vector-effect: non-scaling-stroke; }
.poster-circle { position: absolute; left: 50%; top: 50%; width: min(72vh, 58vw); aspect-ratio: 1; border: 1px solid rgba(240, 230, 208, .38); border-radius: 50%; transform: translate(-50%, -50%); z-index: -1; pointer-events: none; }
.poster-circle span, .poster-notes li, .poster-meta, .poster-base { font-size: .66rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; line-height: 1.25; }
.poster-circle span { position: absolute; color: rgba(240, 230, 208, .75); white-space: nowrap; }
.pc-n { left: 50%; top: -1.6em; transform: translateX(-50%); }
.pc-s { left: 50%; bottom: -1.6em; transform: translateX(-50%); }
.pc-e { left: calc(100% + 10px); top: 50%; transform: translateY(-50%); }
.pc-w { right: calc(100% + 10px); top: 50%; transform: translateY(-50%); }
.poster-notes { list-style: none; margin: 0; padding: 0; position: absolute; left: calc(50% + 12px); top: max(150px, 19%); z-index: -1; pointer-events: none; display: grid; gap: 1.5em; }
.poster-notes li { color: var(--signal); }
.poster-inner { position: relative; min-height: 100svh; display: grid; grid-template-rows: auto 1fr auto auto auto; padding-top: 92px; padding-bottom: 20px; }
.poster-meta { display: grid; grid-template-columns: repeat(3, 1fr); padding-top: 14px; border-top: 1px solid rgba(240, 230, 208, .35); }
.poster-meta span:nth-child(2) { text-align: center; } .poster-meta span:nth-child(3) { text-align: right; }
.poster-title { grid-row: 3; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(12px, 1.6vw, 28px); align-items: end; }
.poster-title h1 { grid-column: 1 / span 9; font-size: clamp(3rem, 8.6vw, 9rem); line-height: .86; color: var(--cream); }
.poster-info { grid-column: 10 / span 3; display: flex; gap: 12px; align-items: flex-start; padding-bottom: .9em; }
.pi-mark { width: 34px; flex: none; color: var(--cream); }
.poster-info p { margin: 0; font-size: .82rem; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; line-height: 1.25; }
.poster-info sup { font-size: .6em; letter-spacing: .06em; }
.poster-foot { grid-row: 4; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; margin-top: clamp(24px, 3vw, 40px); padding-top: 18px; border-top: 1px solid rgba(240, 230, 208, .35); }
.poster-lead { margin: 0; max-width: 46ch; font-size: 1.02rem; color: rgba(240, 230, 208, .86); }
.poster .btn--ghost { --fg: var(--cream); box-shadow: inset 0 0 0 1px var(--cream); }
.poster .btn--ghost:hover { --bg: var(--cream); --fg: var(--ink); }
.poster-base { grid-row: 5; display: flex; justify-content: space-between; gap: 12px; margin-top: 22px; color: rgba(240, 230, 208, .6); }
@media (max-width: 960px) {
  .poster-title h1 { grid-column: 1 / -1; }
  .poster-info { grid-column: 1 / -1; margin-top: 20px; padding-bottom: 0; }
  .poster-notes, .pc-e, .pc-w { display: none; }
  .poster-meta span:nth-child(2) { display: none; } .poster-meta { grid-template-columns: 1fr 1fr; }
  .poster-circle { width: 86vw; }
}
@media (max-width: 600px) { .poster-base span:nth-child(2) { display: none; } }

/* header claro sobre o hero escuro (até começar o scroll) */
.hero-dark .site-header:not(.is-scrolled) { background: transparent; color: var(--cream); }
.hero-dark .site-header:not(.is-scrolled) .brand { color: var(--cream); }
.hero-dark .site-header:not(.is-scrolled) .menu-toggle i { background: var(--cream); }
@media (max-height: 820px) { .pc-e, .pc-w { display: none; } .poster-notes { gap: 1.1em; } }
@media (max-width: 760px) {
  .poster-media img { object-position: 62% 50%; }
  .poster-media::after { background: linear-gradient(180deg, rgba(29,29,27,.55) 0%, rgba(29,29,27,.45) 30%, rgba(29,29,27,.82) 52%, rgba(29,29,27,.92) 100%); }
  .pc-s { display: none; }
}

/* variante do cartaz com foto vertical na metade direita (Estúdio) */
.poster--split .poster-media { left: 50%; }
.poster--split .poster-media::after { background: linear-gradient(90deg, rgba(29,29,27,.65) 0%, rgba(29,29,27,0) 30%), linear-gradient(180deg, rgba(29,29,27,.4) 0%, rgba(29,29,27,0) 35%, rgba(29,29,27,.7) 100%); }
.poster--split .poster-title h1 { grid-column: 1 / span 7; }
.poster--split .poster-info { grid-column: 9 / span 4; }
.poster--split .poster-notes { left: calc(50% + 12px); }
@media (max-width: 960px) {
  .poster--split .poster-media { left: 0; }
  .poster--split .poster-media::after { background: linear-gradient(180deg, rgba(29,29,27,.5) 0%, rgba(29,29,27,.35) 30%, rgba(29,29,27,.85) 58%, rgba(29,29,27,.94) 100%); }
  .poster--split .poster-title h1, .poster--split .poster-info { grid-column: 1 / -1; }
}

/* fotos P&B do estilo cartaz: grão de película por CSS */
.fig--pb .ph, .fig--pb .pb-wrap { position: relative; display: block; overflow: hidden; }
.fig--pb .ph::after, .fig--pb .pb-wrap::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .55; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.fig--pb img { filter: none; }
.poster--split .poster-title h1.h1-wide { grid-column: 1 / span 8; font-size: clamp(3rem, 7.6vw, 8rem); }
@media (max-width: 960px) { .poster--split .poster-title h1.h1-wide { grid-column: 1 / -1; } }
.poster--split .pc-w { display: none; }

/* ==========================================================================
   Serviços: índice no hero, navegação fixa, metadados e CTAs por serviço
   ========================================================================== */
.svc-hero .wrap { align-items: end; }
.svc-hero-l { grid-column: 1 / span 6; }
.svc-hero-l h1 { font-size: var(--fs-hero); line-height: .86; }
.svc-hero-l .lead { margin-top: clamp(20px, 2.5vw, 32px); }
.svc-index { grid-column: 8 / span 5; }
.svc-index .label { display: block; padding-bottom: 10px; border-bottom: var(--rule); }
.svc-index ol { list-style: none; margin: 0; padding: 0; }
.svc-index a { display: grid; grid-template-columns: 36px 1fr auto 26px; gap: 12px; align-items: baseline; padding: 14px 0; border-bottom: var(--rule-soft); text-decoration: none; transition: color .2s; }
.svc-index a > span:not(.si-s) { transition: transform .35s var(--ease); }
.svc-index .si-n { font-size: var(--fs-xs); font-weight: 600; color: var(--graphite); }
.svc-index .si-t { font-family: var(--serif); font-size: clamp(1.5rem, 2.1vw, 2rem); line-height: 1; }
.svc-index .si-s { font-size: var(--fs-sm); color: var(--graphite); }
.svc-index svg { width: 22px; align-self: center; opacity: 0; transform: translateX(-8px); transition: opacity .25s, transform .35s var(--ease); }
.svc-index a:hover > span:not(.si-s) { transform: translateX(10px); }
.svc-index a:hover svg { opacity: 1; transform: none; color: var(--signal); }
@media (max-width: 960px) {
  .svc-hero-l, .svc-index { grid-column: 1 / -1; }
  .svc-index { margin-top: 36px; }
  .svc-index .si-s { display: none; }
  .svc-index a { grid-template-columns: 32px 1fr 22px; }
}

.svc-nav { position: sticky; top: 68px; z-index: 40; background: var(--paper); border-top: var(--rule); border-bottom: var(--rule); transition: top .45s var(--ease); }
html.hdr-hidden .svc-nav { top: 0; }
.svc-nav ol { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(16px, 2.6vw, 40px); overflow-x: auto; scrollbar-width: none; }
.svc-nav ol::-webkit-scrollbar { display: none; }
.svc-nav a { display: block; white-space: nowrap; padding: 14px 0; font-size: .92rem; font-weight: 500; text-decoration: none; color: var(--graphite); box-shadow: inset 0 -2px 0 transparent; transition: color .2s, box-shadow .3s; }
.svc-nav a span { font-size: var(--fs-xs); font-weight: 600; margin-right: 4px; }
.svc-nav a:hover { color: var(--ink); }
.svc-nav a.is-active { color: var(--ink); box-shadow: inset 0 -2px 0 var(--signal); }

.svc-block { scroll-margin-top: 130px; }
.svc-meta { margin: 6px 0 24px; border-top: var(--rule-soft); }
.svc-meta > div { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 10px 0; border-bottom: var(--rule-soft); font-size: .95rem; }
.svc-meta dt { font-size: var(--fs-xs); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--graphite); padding-top: .2em; }
.svc-meta dd { margin: 0; }
.svc-meta a { font-weight: 600; text-decoration-color: var(--signal); }
.svc-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }

.svc-help { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(12px, 1.6vw, 28px); align-items: end; padding: clamp(28px, 4vw, 56px); background: var(--paper-2); }
.svc-help > div:first-child { grid-column: 1 / span 6; }
.svc-help > div:last-child { grid-column: 8 / span 5; }
.svc-help h2 { margin-top: 14px; }
.svc-help .lead { margin-bottom: 22px; }
@media (max-width: 960px) { .svc-help > div:first-child, .svc-help > div:last-child { grid-column: 1 / -1; } .svc-help > div:last-child { margin-top: 24px; } }
@media (prefers-reduced-motion: no-preference) { html:has(.svc-nav) { scroll-behavior: smooth; } }
@media (max-width: 960px) { .svc-hero .stk { left: auto !important; right: 4px; top: 70px !important; } }

/* ==========================================================================
   Sistema de cartaz alargado a todas as páginas
   ========================================================================== */
/* índice dos serviços sobreposto ao cartaz */
.poster-title:has(.svc-index) h1 { grid-column: 1 / span 7; }
.poster .svc-index { grid-column: 8 / span 5; margin: 0; padding-bottom: .4em; }
.poster .svc-index .label { color: var(--cream); border-bottom-color: rgba(240, 230, 208, .45); }
.poster .svc-index a { border-bottom-color: rgba(240, 230, 208, .2); color: var(--cream); padding: 11px 0; }
.poster .svc-index .si-n, .poster .svc-index .si-s { color: rgba(240, 230, 208, .65); }
.poster .svc-index .si-t { font-size: clamp(1.3rem, 1.8vw, 1.75rem); }
.poster-meta a { text-decoration: none; } .poster-meta a:hover { color: var(--signal); }
@media (max-width: 960px) { .poster-title:has(.svc-index) h1, .poster .svc-index { grid-column: 1 / -1; } .poster .svc-index { margin-top: 24px; } }

/* "Vamos falar" em cartaz: mesma foto, linhas e grão em todas as páginas */
.cta-big { isolation: isolate; background: var(--ink); }
.cta-big .poster-media img { opacity: .62; }
.cta-big::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .5; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.cta-big .wrap { position: relative; }
.cta-big .cta-row { border-top-color: rgba(240, 230, 208, .35); }

/* rasto de movimento: cópia da foto que se desloca com a velocidade do scroll */
.poster-media .ghost { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; pointer-events: none; will-change: transform, opacity; }

/* projetos: ao passar o rato, a capa fica P&B e desenha-se a mira com a legenda */
.wm-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; }
.wm-lines line, .wm-lines circle { fill: none; stroke: rgba(240, 230, 208, .8); stroke-width: 1; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .9s var(--ease); }
.wm-lines circle { transition-delay: .15s; }
.wm-cap { position: absolute; z-index: 3; left: 14px; right: 14px; display: flex; justify-content: space-between; gap: 12px; font-size: .66rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--cream); opacity: 0; transform: translateY(6px); transition: opacity .4s, transform .5s var(--ease); pointer-events: none; }
.wm-cap--t { top: 12px; } .wm-cap--b { bottom: 12px; }
.work-media img, .stack-media img { transition: transform 1s var(--ease-out), filter .6s var(--ease); }
.work-media::after, .stack-media::after { content: ""; position: absolute; inset: 0; z-index: 1; background: rgba(29, 29, 27, .28); opacity: 0; transition: opacity .5s; pointer-events: none; }

/* ==========================================================================
   Mira dos cartazes (hero e CTA): presa ao foco da foto, --fx/--fy calculados em JS
   ========================================================================== */
.poster--focus, .cta-big { --fx: 50%; --fy: 45%; }
.poster-reticle { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.pr-h, .pr-v { position: absolute; }
.pr-h { left: 0; right: 0; top: var(--fy); height: 1px; transform-origin: var(--fx) 50%; background: linear-gradient(90deg, rgba(240, 230, 208, 0) 0%, rgba(240, 230, 208, 0) 40%, rgba(240, 230, 208, .32) 62%); }
.pr-v { top: 0; bottom: 0; left: var(--fx); width: 1px; transform-origin: 50% var(--fy); background: linear-gradient(180deg, rgba(240, 230, 208, .32) 0, rgba(240, 230, 208, .32) calc(var(--fy) + 18vh), rgba(240, 230, 208, 0) calc(var(--fy) + 42vh)); }
.poster-reticle .poster-circle { left: var(--fx); top: var(--fy); width: clamp(190px, 34vh, 340px); border-color: rgba(240, 230, 208, .5); }
.poster-reticle .poster-circle::before, .poster-reticle .poster-circle::after { content: ""; position: absolute; left: 50%; top: 50%; background: var(--cream); }
.poster-reticle .poster-circle::before { width: 13px; height: 1px; transform: translate(-50%, -50%); }
.poster-reticle .poster-circle::after { width: 1px; height: 13px; transform: translate(-50%, -50%); }
.poster-reticle .pc-n, .poster-reticle .pc-e { display: block; left: 50%; transform: none; padding-left: 8px; color: var(--cream); font-variant-numeric: tabular-nums; }
.poster-reticle .pc-n { top: auto; bottom: calc(100% + 8px); }
.poster-reticle .pc-e { top: calc(100% + 8px); }
.poster--focus .poster-meta span:nth-child(2) { display: block; }
.poster--focus .poster-meta sup { font-size: .7em; }
.poster--focus .poster-title:not(:has(.svc-index)) h1.h1-wide { grid-column: 1 / -1; font-size: clamp(3rem, 8.4vw, 8.8rem); }
@media (min-width: 961px) { .poster--focus.poster--split .poster-media { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 28%); mask-image: linear-gradient(90deg, transparent 0, #000 28%); } }
@media (max-width: 960px) {
  .poster-reticle .poster-circle { width: 44vw; max-width: 260px; }
  .pr-v { background: linear-gradient(180deg, rgba(240, 230, 208, .32) 0, rgba(240, 230, 208, .32) calc(var(--fy) + 22vw), rgba(240, 230, 208, 0) calc(var(--fy) + 34vw)); }
  .poster--focus .poster-meta { grid-template-columns: 1fr auto; }
  .poster--focus .poster-meta span:nth-child(2) { display: none; }
}
@media (max-width: 600px) { .poster-reticle .pc-n, .poster-reticle .pc-e { display: none; } }

/* blog: capas fotográficas (P&B PM24, grão já gravado na imagem) */
.post-photo { position: relative; overflow: hidden; background: var(--ink); }
.post-photo img { display: block; width: 100%; height: auto; }
.post-photo b { position: absolute; left: 14px; top: 12px; z-index: 1; color: var(--cream); font-size: var(--fs-xs); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.article-cover { margin-top: clamp(32px, 4vw, 56px); }
.article-cover .ph { overflow: hidden; }
.article-cover img { display: block; width: 100%; height: auto; }

/* ==========================================================================
   Variantes do cartaz (mesma linguagem: P&B com arrasto, mira, título serifado)
   ========================================================================== */
.poster { --edge: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))); }

/* moldura: foto vertical emoldurada à direita, o título passa por cima */
.poster--frame .poster-media { inset: auto; top: 172px; bottom: 168px; right: var(--edge); width: min(34vw, 520px); overflow: clip; outline: 1px solid rgba(240, 230, 208, .3); outline-offset: 12px; }
.poster--frame .poster-media::after { background: linear-gradient(180deg, rgba(29, 29, 27, .1) 40%, rgba(29, 29, 27, .55) 100%); }
.poster--frame .poster-title h1.h1-wide { position: relative; }

/* faixa: título em cima, foto numa banda panorâmica, texto em baixo */
.poster--band .poster-media { inset: auto 0; top: 50%; height: 31%; overflow: clip; border-block: 1px solid rgba(240, 230, 208, .35); }
.poster-sheet { top: 50%; height: 31%; }
.poster--band .poster-media::after { background: linear-gradient(90deg, rgba(29, 29, 27, .45), rgba(29, 29, 27, 0) 30%, rgba(29, 29, 27, 0) 70%, rgba(29, 29, 27, .45)); }
.poster--band .poster-title, .poster--sheet .poster-title { grid-row: 2; align-self: start; padding-top: clamp(20px, 4vh, 48px); }

/* folha de contactos: três fotogramas numerados, a mira no do meio */
.poster-sheet { position: absolute; left: var(--edge); right: var(--edge); z-index: -2; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(8px, 1.1vw, 18px); }
.sheet-frame { margin: 0; display: flex; flex-direction: column; min-height: 0; }
.sheet-frame figcaption { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 8px; font-size: .66rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: rgba(240, 230, 208, .75); }
.sheet-img { position: relative; flex: 1; min-height: 0; overflow: clip; outline: 1px solid rgba(240, 230, 208, .25); }
.sheet-img img { width: 100%; height: 100%; object-fit: cover; }
.sheet-img::after { content: ""; position: absolute; inset: 0; background: rgba(29, 29, 27, .18); pointer-events: none; }

@media (max-width: 960px) {
  .poster--frame .poster-media { top: 138px; bottom: auto; left: var(--gutter); right: var(--gutter); width: auto; height: 38svh; outline-offset: 8px; }
  .poster--band .poster-media, .poster-sheet { top: 47%; height: 24%; }
  .poster-sheet { gap: 6px; }
  .sheet-frame figcaption span:last-child { display: none; }
}

/* ==========================================================================
   Identidade dos cartazes no corpo das páginas: prova de impressão
   (régua com marcas de registo, legendas entre parênteses retos, títulos em
   maiúsculas, imagens com moldura de prova, mira ao passar o rato, grão)
   ========================================================================== */
:root { --cross: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 11 11'%3E%3Cpath d='M5 0h1v11H5zM0 5h11v1H0z'/%3E%3C/svg%3E"); }

/* títulos de secção como os dos cartazes */
main .section h2, main .section--tight h2, .drawer-title { text-transform: uppercase; letter-spacing: -.012em; line-height: .88; }
main .section h2 em, main .section--tight h2 em, .drawer-title em { display: inline; }
.post-feature h2, .prose h2, .author-box h2, .form-done h2, main .quote-form h2 { text-transform: none; letter-spacing: -.02em; line-height: .95; }
h2 { font-size: clamp(2.4rem, 5vw, 5.2rem); }
.svc-block h2 { font-size: clamp(2.2rem, 4vw, 4rem); }

/* régua de secção: desenha-se ao entrar e tem marcas de registo nas pontas */
.sec-bar { position: relative; border-top: 0; padding-top: 14px; }
.inv .sec-bar { border-top: 0; }
.sec-bar::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: currentColor; opacity: .85; transform-origin: 0 50%; }
.sec-bar::after { content: ""; position: absolute; left: -5px; right: -5px; top: -5px; height: 11px; background: currentColor;
  -webkit-mask: var(--cross) left center / 11px no-repeat, var(--cross) right center / 11px no-repeat; mask: var(--cross) left center / 11px no-repeat, var(--cross) right center / 11px no-repeat; }
.sec-bar .label:last-child:not(:first-child) { font-variant-numeric: tabular-nums; }
.sec-bar .label:last-child:not(:first-child)::before { content: "["; }
.sec-bar .label:last-child:not(:first-child)::after { content: "]"; }
.js .sec-bar::before { transform: scaleX(0); transition: transform 1.2s var(--ease); }
.js .sec-bar::after { opacity: 0; transition: opacity .6s .5s; }
.js .sec-bar.is-in::before { transform: none; }
.js .sec-bar.is-in::after { opacity: 1; }
.reduced .sec-bar::before, .reduced .sec-bar::after { transition: none; }
.hgal .fig .ph { outline-offset: 5px; }

/* índices de lista entre parênteses retos, como as legendas da mira */
.svc-block > .label::before { content: "["; } .svc-block > .label::after { content: "]"; }

/* imagens como provas: moldura fina afastada e grão de película */
.fig .ph, .ed-grid .work-media, .post-photo, .posts .work-media, .gallery figure, .case-cover { outline: 1px solid rgba(29, 29, 27, .2); outline-offset: 7px; }
.inv .fig .ph, .inv .work-media, .inv .post-photo { outline-color: rgba(240, 230, 208, .22); }
.fig figcaption { margin-top: 16px; }
.post-card .work-media { margin-bottom: 20px; }
.gallery figure { position: relative; overflow: hidden; }
.fig .ph::before, .work-media::before, .gallery figure::before { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: .22; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.work-media { position: relative; }

/* mira ao passar o rato (substitui as diagonais antigas): linhas cruzam e o círculo fecha */
.hov-ret { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.hov-ret::before, .hov-ret::after { content: ""; position: absolute; background: rgba(240, 230, 208, .8); transition: transform .9s var(--ease); }
.hov-ret::before { left: 0; right: 0; top: 50%; height: 1px; transform: scaleX(0); }
.hov-ret::after { top: 0; bottom: 0; left: 50%; width: 1px; transform: scaleY(0); }
.hov-ret i { position: absolute; left: 50%; top: 50%; width: min(38%, 220px); aspect-ratio: 1; border: 1px solid rgba(240, 230, 208, .85); border-radius: 50%; transform: translate(-50%, -50%) scale(1.8); opacity: 0; transition: transform .9s var(--ease), opacity .5s; }
@media (hover: hover) {
  .post-card:hover .post-photo img, .post-feature:hover .post-photo img { filter: grayscale(1) contrast(1.1); }
  .post-photo img { transition: filter .6s var(--ease); }
  :is(.post-card, .post-feature):hover .hov-ret::before { transform: none; }
  :is(.post-card, .post-feature):hover .hov-ret::after { transform: none; }
  :is(.post-card, .post-feature):hover .hov-ret i { transform: translate(-50%, -50%); opacity: 1; }
}

/* secções escuras com o mesmo grão dos cartazes */
.inv:not(.cta-big) { position: relative; isolation: isolate; }
.inv:not(.cta-big)::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .35; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* citação em destaque: a mira dos cartazes à volta da estrela */
.pull { position: relative; isolation: isolate; }
.pull::before { content: ""; position: absolute; left: 50%; top: 1.8rem; width: clamp(160px, 18vw, 240px); aspect-ratio: 1; border: 1px solid rgba(29, 29, 27, .28); border-radius: 50%; transform: translate(-50%, -50%); z-index: -1; }
.pull::after { content: ""; position: absolute; left: 0; right: 0; top: 1.8rem; height: 1px; z-index: -1; background: linear-gradient(90deg, transparent, rgba(29, 29, 27, .28) 20%, rgba(29, 29, 27, .28) 80%, transparent); }

/* ritmo vertical um pouco mais curto entre secções */
:root { --section: clamp(72px, 8.5vw, 136px); }
.gallery { gap: clamp(18px, 2vw, 28px); }
/* títulos de leitura (cartões, artigo, formulário) ficam em caixa normal */
main .post-feature h2, main .prose h2, main .author-box h2, main .form-done h2, main .quote-form h2 { text-transform: none; letter-spacing: -.02em; line-height: .95; }
/* filtros e escolhas com cantos retos, como os botões e as molduras */
.filters button, .choices--pills .choice label { border-radius: 0; }
.filters button[aria-pressed="true"]::before { content: "["; } .filters button[aria-pressed="true"]::after { content: "]"; }

/* mira fixa nas fotos P&B do corpo (posição em --rx/--ry, legendas como as dos cartazes) */
.pb-wrap { position: relative; }
.ret-static { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.ret-static::before, .ret-static::after { content: ""; position: absolute; background: rgba(240, 230, 208, .55); }
.ret-static::before { left: 0; right: 0; top: var(--ry); height: 1px; transform-origin: var(--rx) 50%; }
.ret-static::after { top: 0; bottom: 0; left: var(--rx); width: 1px; transform-origin: 50% var(--ry); }
.ret-static i { position: absolute; left: var(--rx); top: var(--ry); width: 36%; aspect-ratio: 1; border: 1px solid rgba(240, 230, 208, .8); border-radius: 50%; transform: translate(-50%, -50%); }
.ret-static b { position: absolute; left: calc(var(--rx) + 8px); font-size: .62rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--cream); white-space: nowrap; }
.ret-static .rs-n { top: calc(var(--ry) - 18% - 1.6em); }
.ret-static .rs-s { top: calc(var(--ry) + 18% + .5em); }
.js [data-ret] .ret-static::before { transform: scaleX(0); transition: transform 1.3s var(--ease); }
.js [data-ret] .ret-static::after { transform: scaleY(0); transition: transform 1.3s .1s var(--ease); }
.js [data-ret] .ret-static i { transform: translate(-50%, -50%) scale(2); opacity: 0; transition: transform 1.3s .3s var(--ease-out), opacity .6s .3s; }
.js [data-ret] .ret-static b { opacity: 0; transition: opacity .5s 1s; }
.js [data-ret].is-in .ret-static::before, .js [data-ret].is-in .ret-static::after { transform: none; }
.js [data-ret].is-in .ret-static i { transform: translate(-50%, -50%); opacity: 1; }
.js [data-ret].is-in .ret-static b { opacity: 1; }
.reduced [data-ret] .ret-static *, .reduced [data-ret] .ret-static::before, .reduced [data-ret] .ret-static::after { transition: none !important; }
.ret-static { mix-blend-mode: difference; }

/* autocolantes mais discretos: ~60% do tamanho, rotação mais suave, sem sombra */
.stk { width: calc(var(--w, 180px) * .6); transform: rotate(calc(var(--rot, -6deg) * .55)); filter: none; opacity: .92; }
.stk.is-drag { filter: drop-shadow(0 4px 8px rgba(29, 29, 27, .08)); opacity: 1; }
@media (max-width: 760px) { .stk { width: calc(var(--w, 180px) * .42); } }

/* Grelha com nós (refs Stories / Go for it): 3 colunas finas sobre o cartaz e quadrados onde cruzam as réguas.
   Os nós usam left/right -3px para o centro de cada quadrado cair na mesma posição que a linha de 1px. */
.poster, .cta-big { --gx-line: linear-gradient(rgba(240, 230, 208, .14), rgba(240, 230, 208, .14)); --gx-node: linear-gradient(var(--cream), var(--cream)); }
.cta-big { --edge: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))); }
.poster-inner::before, .cta-big::before { content: ""; position: absolute; top: 0; bottom: 0; z-index: -1; pointer-events: none;
  background: var(--gx-line) 25% 0 / 1px 100% no-repeat, var(--gx-line) 50% 0 / 1px 100% no-repeat, var(--gx-line) 75% 0 / 1px 100% no-repeat; }
.poster-inner::before { left: var(--gutter); right: var(--gutter); }
.cta-big::before { left: var(--edge); right: var(--edge); }
.poster-meta, .poster-foot { position: relative; }
.poster-meta::before, .poster-foot::before, .cta-big .cta-row::before { content: ""; position: absolute; left: -3px; right: -3px; top: -4px; height: 7px; pointer-events: none;
  background: var(--gx-node) 0 0 / 7px 7px no-repeat, var(--gx-node) 25% 0 / 7px 7px no-repeat, var(--gx-node) 50% 0 / 7px 7px no-repeat, var(--gx-node) 75% 0 / 7px 7px no-repeat, var(--gx-node) 100% 0 / 7px 7px no-repeat; }
@media (max-width: 760px) {
  .poster-inner::before, .cta-big::before { background: var(--gx-line) 50% 0 / 1px 100% no-repeat; }
  .poster-meta::before, .poster-foot::before, .cta-big .cta-row::before { background: var(--gx-node) 0 0 / 7px 7px no-repeat, var(--gx-node) 50% 0 / 7px 7px no-repeat, var(--gx-node) 100% 0 / 7px 7px no-repeat; }
}
@keyframes gx-draw { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0); } }
@media (prefers-reduced-motion: no-preference) { html:not(.reduced) .poster-inner::before { animation: gx-draw 1.6s var(--ease) .15s both; } }

/* Cabeçalhos claros das páginas interiores: só a Home tem cartaz.
   split = texto + índice (Serviços), stack = título largo com texto por baixo (Serviço, Caso), row = título e texto lado a lado */
.pgh { padding-top: clamp(112px, 14vh, 156px); padding-bottom: clamp(40px, 5vw, 80px); }
.pgh .sec-bar { margin-bottom: clamp(32px, 5vw, 80px); }
.ph-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(12px, 1.6vw, 28px); align-items: end; }
.pgh h1 { grid-column: 1 / span 7; font-size: clamp(min(3rem, 12.2vw), 7.4vw, 7.6rem); line-height: .86; } /* abaixo de ~393px encolhe com o ecrã para "Sistemas de gestão" caber numa linha */
.ph-side { grid-column: 9 / -1; }
.ph-side .lead, .ph-l .lead { margin: 0; }
.pgh .hero-ctas { justify-content: flex-start; margin-top: 24px; }
.ph--stack h1 { grid-column: 1 / -1; }
.ph--stack .ph-side { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; margin-top: clamp(28px, 3.5vw, 48px); }
.ph--stack .hero-ctas { margin-top: 0; }
.ph--split .ph-l { grid-column: 1 / span 6; }
.ph--split .ph-l .lead { margin-top: clamp(20px, 2.5vw, 32px); }
.ph--split .svc-index { grid-column: 8 / -1; }
@media (max-width: 960px) {
  .pgh h1, .ph-side, .ph--split .ph-l, .ph--split .svc-index { grid-column: 1 / -1; }
  .ph-side, .ph--split .svc-index { margin-top: 28px; }
}

/* Régua de secção com h2 (Projetos, Blog): o título fica com o aspeto das etiquetas */
main .sec-bar h2.label { font-family: var(--font); font-size: var(--fs-xs); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; line-height: 1.3; }

/* Vídeos dos projetos: gravação do site no cartão e etiqueta "Vídeo" nos que abrem o YouTube */
.work-media video { display: block; width: 100%; height: auto; background: var(--ink); }
.vid-tag { position: absolute; left: 12px; bottom: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px 7px 10px; background: var(--ink); color: var(--cream); font-size: var(--fs-xs); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; transition: background .2s; }
.vid-tag::before { content: ""; width: 0; height: 0; border-left: 8px solid currentColor; border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.video-dlg { width: min(1100px, calc(100vw - 2 * var(--gutter))); max-width: none; padding: 0; border: 0; background: var(--ink); color: var(--cream); }
.video-dlg::backdrop { background: rgba(29, 29, 27, .82); }
.video-dlg-inner { position: relative; padding: 52px 16px 16px; }
.video-dlg .drawer-close { position: absolute; top: 8px; right: 8px; color: var(--cream); }
.video-frame { aspect-ratio: 16 / 9; background: #000; }
.video-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.video-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding-top: 14px; font-size: var(--fs-sm); }
.video-list { display: flex; flex-wrap: wrap; gap: 8px; }
.video-list button { font: inherit; color: inherit; background: none; border: 1px solid rgba(240, 230, 208, .4); padding: 6px 12px; cursor: pointer; }
.video-list button[aria-pressed="true"] { background: var(--cream); color: var(--ink); }
.video-out { color: inherit; font-weight: 600; }

/* Capas do blog na proporção original (sem caixa fixa nem corte) */
.post-card .work-media.post-photo, .post-feature .work-media.post-photo { aspect-ratio: auto; }

/* Site ao vivo no caso de estudo: passos à esquerda, ecrãs fixos à direita com a captura a deslizar */
.live-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(12px, 1.6vw, 28px); }
.live-steps { grid-column: 1 / span 4; }
.live-step { min-height: 78svh; display: flex; flex-direction: column; justify-content: center; opacity: .3; transition: opacity .5s var(--ease); }
.live-step:first-child { min-height: 60svh; justify-content: flex-start; padding-top: 8svh; }
.live-step.is-active { opacity: 1; }
.live-step .label { margin-bottom: 14px; } .live-step .label::before { content: "["; } .live-step .label::after { content: "]"; }
.live-step h3 { font-size: clamp(2rem, 3.4vw, 3.4rem); text-transform: uppercase; line-height: .9; margin-bottom: 18px; }
.live-step p { max-width: 36ch; }
.live-stage { grid-column: 6 / -1; position: sticky; top: max(96px, calc(50svh - 300px)); align-self: start; height: min(600px, 74svh); }
.dev { position: absolute; background: var(--ink); }
.dev-screen { position: relative; overflow: hidden; height: 100%; background: var(--paper-2); }
.dev-screen img { display: block; width: 100%; height: auto; will-change: transform; }
.dev--laptop { left: 0; right: 9%; top: 0; aspect-ratio: 16 / 10; padding: 10px 10px 14px; border-radius: 14px 14px 4px 4px; }
.dev--laptop::after { content: ""; position: absolute; left: -6%; right: -6%; bottom: -12px; height: 12px; background: var(--ink); border-radius: 0 0 14px 14px; }
.dev--phone { right: 0; bottom: 6%; width: 23%; aspect-ratio: 390 / 844; padding: 7px; border-radius: 26px; box-shadow: 0 0 0 1px rgba(240, 230, 208, .15); }
.dev--phone .dev-screen { border-radius: 20px; }
.live-cap { position: absolute; left: 0; right: 0; bottom: -8px; display: flex; justify-content: space-between; gap: 12px; font-size: var(--fs-xs); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--graphite); }
.live-cap a { color: inherit; }
@media (max-width: 960px) {
  .live-steps { grid-column: 1 / span 7; }
  .live-stage { grid-column: 8 / -1; top: 96px; height: 62svh; }
  .dev--laptop { display: none; }
  .dev--phone { position: relative; width: 100%; bottom: auto; right: auto; }
  .live-cap { position: static; flex-direction: column; gap: 4px; margin-top: 12px; font-size: .6rem; }
  .live-cap a { overflow-wrap: anywhere; }
  .live-step { min-height: 70svh; }
  .live-step h3 { font-size: 1.9rem; }
}

/* Transição contínua: a capa do cartão cresce até à capa do caso (só navegações a partir de um cartão com data-vt) */
@media (prefers-reduced-motion: no-preference) { @view-transition { navigation: auto; } }
[data-vt="case-saline"] { view-transition-name: case-saline; }
[data-vt="case-ondina"] { view-transition-name: case-ondina; }
[data-vt="case-galp"] { view-transition-name: case-galp; }
[data-vt="case-wavin"] { view-transition-name: case-wavin; }
::view-transition-group(case-saline), ::view-transition-group(case-ondina), ::view-transition-group(case-galp), ::view-transition-group(case-wavin) { animation-duration: .7s; animation-timing-function: cubic-bezier(.7, 0, .2, 1); }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .45s; }

/* Botão para o site do projeto ao vivo: seta inclinada indica que abre noutro separador */
.btn--ext svg { transform: rotate(-45deg); }

/* Selos de linha (estilo carimbo): contorno a tinta sobre papel, sem sombra; só os selos usam formas redondas */
.stk .pf { fill: var(--paper); }
.stk .ln { stroke-width: 1.6; }
.stk[class*="stk--seal"] { filter: none; opacity: 1; width: calc(var(--w, 180px) * .85); }
@media (max-width: 760px) { .stk[class*="stk--seal"] { width: calc(var(--w, 180px) * .62); } }
/* Badges da marca (recortados): tamanho real, sombra curta de autocolante; no telemóvel ficam no canto e mais pequenos */
.stk[class*="stk--img-"] { opacity: 1; width: var(--w, 180px); transform: rotate(var(--rot, -6deg)); filter: drop-shadow(0 1px 2px rgba(29, 29, 27, .14)); }
@media (max-width: 960px) { .stk[class*="stk--img-"] { width: calc(var(--w, 180px) * .6); left: auto !important; right: 4px !important; top: 64px !important; } }
@media (max-width: 760px) { .stk[class*="stk--img-"] { display: none; } }

/* Ícones de linha nas listas de padrões e princípios (sem caixas nem pílulas: cantos retos na interface) */
.standard .ico { display: block; width: 40px; height: 40px; margin: 6px 0 16px; }
.standard .ico svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* Margens editoriais: cabeço corrido vertical nas margens (só ecrãs largos) e palavra gigante esbatida */
.runhead { display: none; }
@media (min-width: 1200px) {
  .runhead { display: block; position: fixed; inset: 120px 0 36px; z-index: 40; pointer-events: none; color: #fff; mix-blend-mode: difference; opacity: .55; }
  .runhead span { position: absolute; top: 0; bottom: 0; display: flex; align-items: center; writing-mode: vertical-rl; font-size: .62rem; font-weight: 600; text-transform: uppercase; letter-spacing: .14em; white-space: nowrap; }
  .rh-l { left: calc(var(--gutter) / 2 - .4em); transform: rotate(180deg); }
  .rh-r { right: calc(var(--gutter) / 2 - .4em); }
}
.giant { margin: clamp(32px, 4vw, 64px) 0 0; padding-bottom: .12em; font-family: var(--serif); font-size: clamp(5rem, 17vw, 17rem); line-height: .9; text-transform: uppercase; letter-spacing: -.02em; white-space: nowrap; color: rgba(29, 29, 27, .06); pointer-events: none; user-select: none; }
.inv .giant { color: rgba(240, 230, 208, .07); }
@media (max-width: 600px) { .giant { font-size: 17vw; white-space: normal; } }

/* Arquivo da Home: mural com os logótipos todos, imagens inteiras (16:9, sem corte), separadas por linhas finas.
   Ao passar o rato o logótipo escolhido fica em destaque e aparece o nome; em ecrãs de toque o nome fica sempre por baixo.
   A última célula fecha a fila (--rest é calculado no main.js a partir do número de colunas). */
.arch h2 { margin-bottom: clamp(32px, 4vw, 56px); }
.arch-wall { --cols: 6; display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: 1px; margin: 0; padding: 1px; list-style: none; background: rgba(29, 29, 27, .18); }
.arch-tile { position: relative; overflow: hidden; background: #EFEFEF; }
.arch-tile img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; transition: transform .6s var(--ease), opacity .4s var(--ease); }
.arch-cap { position: absolute; inset: auto 0 0; display: flex; flex-wrap: wrap; column-gap: 8px; align-items: baseline; padding: 8px 10px 9px; background: var(--ink); color: var(--paper); font-size: var(--fs-xs); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; line-height: 1.3; transform: translateY(101%); transition: transform .35s var(--ease); }
.arch-cap .num, .arch-cap .at { opacity: .6; }
.arch-cap .at { flex-basis: 100%; }
.arch-more { grid-column: span var(--rest, 3); display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; gap: 16px; padding: clamp(14px, 1.6vw, 22px); background: var(--paper); }
.arch-more p { margin: 0; font-family: var(--serif); font-size: clamp(1.4rem, 2vw, 1.9rem); line-height: 1; text-wrap: balance; }
@media (hover: hover) and (pointer: fine) {
  .arch-tile:hover .arch-cap { transform: none; }
  .arch-tile:hover img { transform: scale(1.04); }
  .arch-wall:hover .arch-tile:not(:hover) img { opacity: .45; }
}
@media (max-width: 1200px) { .arch-wall { --cols: 4; } }
@media (max-width: 600px) { .arch-wall { --cols: 2; } .arch-more p { font-size: 1.15rem; } }
@media (hover: none), (pointer: coarse) {
  .arch-cap { position: static; transform: none; flex-wrap: nowrap; padding: 6px 8px 8px; background: none; color: inherit; }
  .arch-cap .an { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .arch-cap .at { display: none; }
}
@media (max-width: 960px) { .arch .stk { display: none; } }

/* Pacotes de branding: título com preço, alinhado à lista */
.pkg-h { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-bottom: 14px; margin-bottom: 4px; font-size: clamp(1.8rem, 2.6vw, 2.6rem); }
.pkg-h span { font-family: var(--font); font-size: var(--fs-sm); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }

/* Páginas legais: texto corrido numa coluna confortável; tabela de cookies com 4 colunas */
.prose.legal { grid-column: 1 / span 8; }
.prose.legal .compare th, .prose.legal .compare td { font-size: .95rem; }
@media (max-width: 960px) { .prose.legal { grid-column: 1 / -1; } }
.nf .giant { margin-top: clamp(24px, 3vw, 48px); }

/* Telemóvel: colunas com grid-column em linha passam a largura total; etiquetas nunca abaixo de 11px */
@media (max-width: 760px) {
  .grid > [style*="grid-column"] { grid-column: 1 / -1 !important; }
  .poster-meta, .poster-base, .poster-circle span, .live-cap { font-size: 11px !important; }
}

/* Revisão no telemóvel */
.float-cta { border-radius: 0; padding: 6px 16px 6px 6px; }
.float-cta img { border-radius: 0; }
.sec-bar .label:last-child { white-space: nowrap; }
@media (max-width: 600px) {
  .float-cta { right: 12px; bottom: 12px; padding: 4px; gap: 0; }
  .float-cta img { width: 40px; height: 40px; }
  .float-cta > span, .float-cta > div { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (max-width: 760px) { .contact-layout .stk, .stk--seal-reply { display: none; } }


/* Barras de scroll no estilo do site: calha papel, polegar a tinta com cantos retos, laranja ao passar */
/* Firefox só aceita cor e espessura; Chrome e Safari usam o desenho completo abaixo (a propriedade padrão anularia esse desenho) */
@supports (-moz-appearance: none) {
  html { scrollbar-color: var(--ink) var(--paper); scrollbar-width: thin; }
  .inv, .drawer, .video-dlg { scrollbar-color: var(--cream) var(--ink); }
}
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--paper); border-left: 1px solid rgba(29, 29, 27, .12); }
::-webkit-scrollbar-thumb { background: var(--ink); border: 3px solid var(--paper); border-radius: 0; }
::-webkit-scrollbar-thumb:hover { background: var(--signal); }
::-webkit-scrollbar-corner { background: var(--paper); }
.inv ::-webkit-scrollbar-track, .drawer::-webkit-scrollbar-track, .drawer ::-webkit-scrollbar-track { background: var(--ink); border-left-color: rgba(240, 230, 208, .15); }
.inv ::-webkit-scrollbar-thumb, .drawer::-webkit-scrollbar-thumb, .drawer ::-webkit-scrollbar-thumb { background: var(--cream); border-color: var(--ink); }
/* listas e tabelas com scroll interno: barra mais fina */
.table-scroll::-webkit-scrollbar { width: 6px; height: 6px; }
.table-scroll::-webkit-scrollbar-thumb { border-width: 1px; }
@supports (-moz-appearance: none) { .table-scroll { scrollbar-width: thin; } }

/* Lenis: estilos recomendados; listas e gavetas com scroll próprio não são apanhadas pelo scroll suave */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

/* Toque: links pequenos ganham área de toque sem mexer no layout; o autocolante do CTA final tapava o título em ecrãs estreitos */
@media (pointer: coarse), (max-width: 760px) {
  .sec-bar .label a, .sec-bar a.label, .site-footer address a, .cta-row a, .mm-foot a { display: inline-block; padding-block: 12px; margin-block: -12px; }
  .mm-foot span a { padding-inline: 12px; margin-inline: -12px; }
  .link-arrow { padding-top: .7em; }
}
@media (max-width: 760px) { .cta-big .stk { display: none; } }
/* Submenu de serviços em ecrãs estreitos: as pontas desvanecem para se perceber que a lista continua para os lados */
@media (max-width: 760px) { .svc-nav ol { -webkit-mask: linear-gradient(90deg, transparent, #000 18px, #000 calc(100% - 28px), transparent); mask: linear-gradient(90deg, transparent, #000 18px, #000 calc(100% - 28px), transparent); padding-inline: 18px 28px; } }

/* Submenu de Serviços no cabeçalho: painel a toda a largura com os 5 serviços lado a lado (coluna inteira clicável) e, por baixo, "Todos os serviços".
   Fica invisível (fora da ordem do Tab) até abrir; :root.nav-sub-open põe o cabeçalho em papel mesmo sobre um hero escuro. */
.nav-sub { display: flex; align-items: center; }
.sub-toggle { display: grid; place-items: center; width: 26px; height: 32px; margin-right: -8px; padding: 0; border: 0; background: none; color: inherit; cursor: pointer; }
.sub-toggle svg { width: 10px; transition: transform .3s var(--ease); }
.sub-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.subnav { position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); color: var(--ink); border-top: var(--rule); border-bottom: var(--rule); visibility: hidden; clip-path: inset(0 0 100% 0); transition: clip-path .4s var(--ease), visibility 0s .4s; }
:root.nav-sub-open .subnav { visibility: visible; clip-path: inset(0 0 -1px 0); transition: clip-path .45s var(--ease); }
:root.nav-sub-open .site-header:not(.is-hidden) { background: var(--paper); color: var(--ink); }
:root.nav-sub-open .site-header:not(.is-hidden) .brand { color: var(--ink); }
.site-header .subnav-in { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: clamp(24px, 3vw, 48px); align-items: start; height: auto; padding-block: 20px; }
/* serviços: grelha 2 colunas com linhas finas entre as casas (o fundo aparece no espaço de 1px);
   a margem negativa alinha o ícone da 1.ª casa com o logótipo */
.subnav-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin: 0 0 0 -20px; padding: 0; list-style: none; background: rgba(29, 29, 27, .14); }
.subnav-list li { display: flex; background: var(--paper); }
.subnav-list a { display: grid; grid-template-columns: 40px minmax(0, 1fr); grid-template-rows: auto 1fr; column-gap: 16px; align-items: start; width: 100%; padding: 18px 20px; text-decoration: none; transition: background-color .2s; }
.subnav-list a:hover, .subnav-list a:focus-visible, .subnav-list a.is-on { background: rgba(29, 29, 27, .05); }
.subnav-list .ico { grid-row: 1 / span 2; width: 40px; height: 40px; }
.subnav-list .ico svg { display: block; width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.subnav-list .sn-t { font-family: var(--serif); font-size: clamp(1.3rem, 1.6vw, 1.6rem); line-height: 1.05; }
.subnav-list .sn-d { margin-top: 5px; font-size: var(--fs-sm); line-height: 1.4; color: var(--graphite); }
.subnav-list a[aria-current="page"] .sn-t { font-style: italic; }
/* 6.ª casa: ligação simples para a página Serviços, alinhada com os títulos */
.subnav-list .sn-all a { align-content: center; }
.subnav-list .sn-all a.is-on, .subnav-list .sn-all a:hover { background: none; }
.subnav-list .sn-all .link-arrow { grid-column: 2; justify-self: start; font-size: .9rem; }
.subnav-list .sn-all a:hover .link-arrow svg { transform: translateX(.3em); }
/* imagem do serviço debaixo do rato */
.subnav-fig { margin: 0; }
.subnav-fig .sf-ph { position: relative; aspect-ratio: 16 / 9; }
.subnav-fig img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity .35s var(--ease); }
.subnav-fig img.is-on { opacity: 1; }
.subnav-fig figcaption { display: flex; justify-content: space-between; gap: 12px; margin-top: 10px; font-size: var(--fs-xs); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.subnav-fig figcaption span + span { color: var(--graphite); font-weight: 500; text-align: right; }
@media (max-width: 960px) { .subnav { display: none; } }

/* Menu do telemóvel: "Serviços" expande a lista dos 5 serviços por baixo */
.mobile-menu > nav { margin-top: auto; }
.mobile-menu .mm-group { display: flex; align-items: center; gap: 12px; border-top: var(--rule-inv); }
.mobile-menu nav .mm-group a { flex: 1; border-top: 0; }
.mm-sub-toggle { flex: none; display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: var(--rule-inv); border-radius: 50%; background: none; color: inherit; cursor: pointer; }
.mm-sub-toggle svg { width: 14px; transition: transform .3s var(--ease); }
.mm-sub-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.mm-sub { list-style: none; margin: 0; padding: 4px 0 14px; }
.mobile-menu nav .mm-sub a { font-family: var(--font); font-size: 1.05rem; line-height: 1.3; border-top: 0; padding: 9px 0; opacity: .8; }
.mobile-menu nav .mm-sub a[aria-current="page"] { opacity: 1; }
.mobile-menu nav .mm-sub a[aria-current="page"]::after { width: .5em; height: .8em; margin-left: .45em; vertical-align: -.05em; }

/* Números do estúdio (Home e Estúdio): factos verificáveis; os anos contam-se a partir do ano de início (data-since, main.js) */
.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(16px, 2vw, 28px); margin: clamp(20px, 2.5vw, 32px) 0; border-top: var(--rule); }
.kpis > div { padding: 14px 0 16px; border-bottom: var(--rule-soft); }
.kpis dt { font-family: var(--serif); font-size: clamp(2rem, 3vw, 2.8rem); line-height: 1; text-transform: uppercase; }
.kpis dd { margin: 6px 0 0; font-size: var(--fs-sm); color: var(--graphite); }
.kpis > div:last-child:nth-child(odd) { grid-column: 1 / -1; }
/* Casos de estudo: imagens e vídeos dos projetos numa só coluna, inteiros */
.case-stack { display: grid; gap: clamp(48px, 6vw, 96px); margin-top: var(--section); }
.fig .ph video { display: block; width: 100%; height: auto; }
.fig .vimeo { position: relative; width: 100%; }
.fig .vimeo iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; pointer-events: none; } /* vídeos de fundo, sem controlos: o scroll da roda passa para a página (o Lenis não recebe eventos dentro de iframes) */
.case-stack .fig--tall { width: min(100%, 440px); justify-self: center; }

/* Páginas de projeto (portfólio de marca): a capa do cartão continua na capa do projeto */
[data-vt="p-onboard"] { view-transition-name: p-onboard; } [data-vt="p-36days"] { view-transition-name: p-36days; } [data-vt="p-efc"] { view-transition-name: p-efc; }
[data-vt="p-printee"] { view-transition-name: p-printee; } [data-vt="p-xnilow"] { view-transition-name: p-xnilow; }
[data-vt="p-lines"] { view-transition-name: p-lines; } [data-vt="p-jobsite"] { view-transition-name: p-jobsite; }
[data-vt="p-barzinho"] { view-transition-name: p-barzinho; } [data-vt="p-logofolio"] { view-transition-name: p-logofolio; }
[data-vt="p-restarts"] { view-transition-name: p-restarts; }
[data-vt="p-thisorthat"] { view-transition-name: p-thisorthat; } [data-vt="p-seek"] { view-transition-name: p-seek; }
::view-transition-group(p-onboard), ::view-transition-group(p-36days), ::view-transition-group(p-efc), ::view-transition-group(p-printee), ::view-transition-group(p-xnilow),
::view-transition-group(p-lines), ::view-transition-group(p-jobsite), ::view-transition-group(p-barzinho), ::view-transition-group(p-logofolio),
::view-transition-group(p-restarts), ::view-transition-group(p-thisorthat), ::view-transition-group(p-seek) { animation-duration: .7s; animation-timing-function: cubic-bezier(.7, 0, .2, 1); }
/* 36 Days of Type: as 36 letras numa grelha (numa só coluna seriam 36 ecrãs de scroll) */
.type-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(6px, .8vw, 12px); }
.type-grid img { display: block; width: 100%; height: auto; }
@media (max-width: 600px) { .type-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.facts--credits { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); }
@media (max-width: 760px) { .facts--credits { grid-template-columns: 1fr; } .facts--credits > div { border-left: 0 !important; padding-left: 0 !important; } .facts--credits > div + div { border-top: var(--rule-soft); } }
[data-vt="case-rvrt"] { view-transition-name: case-rvrt; }
::view-transition-group(case-rvrt) { animation-duration: .7s; animation-timing-function: cubic-bezier(.7, 0, .2, 1); }

/* contacto: retrato de quem responde */
.contact-face { margin: 0 0 8px; max-width: 220px; }
.contact-face img { filter: grayscale(1); }
@media (max-width: 960px) { .contact-face { max-width: 160px; } }
/* 404: foto ao lado dos caminhos */
.nf-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.nf-grid .fig { margin: 0; }
@media (max-width: 760px) { .nf-grid { grid-template-columns: 1fr; } .nf-grid .fig { max-width: 260px; } }

/* ---------- aviso de cookies (consent.js): Aceitar e Rejeitar com o mesmo peso, sem bloquear a página ---------- */
.cookie-box { position: fixed; left: 16px; bottom: 16px; z-index: 60; width: min(440px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow: auto; padding: 22px 22px 20px; background: var(--ink); color: var(--paper); font-size: var(--fs-sm); line-height: 1.5; box-shadow: 0 0 0 1px rgba(240, 230, 208, .12); }
.cookie-title { margin: 0 0 6px; font-family: var(--serif); font-size: 1.6rem; line-height: 1; }
.cookie-text { margin: 0; }
.cookie-text a { color: inherit; text-underline-offset: 3px; }
.cookie-prefs { display: grid; gap: 12px; margin: 18px 0 0; padding-top: 16px; border-top: var(--rule-inv); }
.cookie-prefs label { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.cookie-prefs input { width: 18px; height: 18px; margin-top: 2px; flex: none; accent-color: var(--cream); }
.cookie-prefs input:disabled + span { opacity: .7; }
.cookie-prefs strong { display: block; font-weight: 700; }
.cookie-prefs span { opacity: .85; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.cookie-actions .btn { flex: 1 1 auto; justify-content: center; padding: .8em 1em; --fg: var(--paper); box-shadow: inset 0 0 0 1px var(--paper); }
.cookie-actions .btn:hover { --bg: var(--paper); --fg: var(--ink); }
.cookie-box [hidden] { display: none !important; }
html.cookie-open .float-cta { transform: translateY(160%); }
@media (max-width: 600px) { .cookie-box { left: 0; bottom: 0; width: 100%; max-height: 85vh; padding: 18px max(16px, env(safe-area-inset-left)) calc(16px + env(safe-area-inset-bottom)); } }

/* conteúdo externo bloqueado até haver consentimento (Vimeo nos casos, YouTube no leitor de vídeo) */
.embed-gate { position: absolute; inset: 0; z-index: 2; display: grid; place-content: center; justify-items: center; gap: 14px; padding: 20px; background: var(--paper-2); color: var(--ink); text-align: center; font-size: var(--fs-sm); }
.embed-gate p { margin: 0; max-width: 34ch; }
.video-frame { position: relative; }
.video-frame .embed-gate { background: #000; color: var(--paper); }
.video-frame .embed-gate .btn--ghost { --fg: var(--paper); box-shadow: inset 0 0 0 1px var(--paper); }
.video-frame .embed-gate .btn--ghost:hover { --bg: var(--paper); --fg: var(--ink); }
.foot-bottom button[data-consent-open] { padding: 8px 0; margin: -8px 14px -8px 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }

/* WordPress: com sessão iniciada, a barra de administração (32px, 46px em ecrãs estreitos) fica por cima do cabeçalho fixo */
body.admin-bar .site-header, body.admin-bar .mobile-menu { top: 32px; }
@media (max-width: 782px) { body.admin-bar .site-header, body.admin-bar .mobile-menu { top: 46px; } }
@media (max-width: 600px) { #wpadminbar { position: fixed; } }
