/* Fontes servidas pelo próprio site (Cormorant Garamond e Jost, licença OFL) */
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/cormorant-garamond-latin-ext-0.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: 'Cormorant Garamond'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/cormorant-garamond-latin-1.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: 'Cormorant Garamond'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/cormorant-garamond-latin-ext-0.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: 'Cormorant Garamond'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/cormorant-garamond-latin-1.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: 'Jost'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/jost-latin-ext-2.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: 'Jost'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/jost-latin-3.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: 'Jost'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/jost-latin-ext-2.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: 'Jost'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/jost-latin-3.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 {
  --ink: #1d1a17;
  --text: #4a443e;
  --muted: #6b645d;
  --sand: #efece6;
  --line: #c4bbb0;
  --dark: #1a1714;
  --cream: #ece4d8;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;
  --pad: clamp(16px, 6vw, 88px);
  --wrap: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--sand); color: var(--text); font-family: var(--serif); font-size: 19px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
picture { display: block; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
h1, h2, h3 { font-weight: 400; text-transform: uppercase; letter-spacing: .01em; line-height: 1.06; color: var(--ink); }

.label, .kicker, .links, .cta, .scroll, .more, .type, .band-cta, .back, .caption, .ba-tag, figcaption {
  font-family: var(--sans); font-size: 11px; font-weight: 400; letter-spacing: .28em; text-transform: uppercase;
}
.label { display: flex; align-items: center; gap: 14px; color: var(--ink); margin-bottom: 28px; }
.label::after { content: ""; width: 52px; height: 1px; background: var(--line); }
.type { display: block; font-size: 10px; color: var(--muted); }
.arrow { width: 22px; height: 11px; fill: none; stroke: currentColor; stroke-width: 1; flex: none; }
.ph { width: 100%; height: 100%; background: linear-gradient(135deg, #d9d2c8, #c2b8ab); }

/* Navegação */
.top { position: absolute; top: 0; left: 0; right: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; padding: 36px var(--pad) 0 calc(var(--pad) * .6); color: #fff; }
.logo { font-size: 26px; letter-spacing: .32em; }
.logo-place { display: none; }
.links { display: flex; align-items: center; gap: 44px; }
.links a { opacity: .88; transition: opacity .2s; }
.top { text-shadow: 0 1px 14px rgba(15,12,10,.45), 0 0 2px rgba(15,12,10,.25); }
.links a:hover, .links a[aria-current] { opacity: 1; }
.lang { padding-left: 28px; border-left: 1px solid rgba(255,255,255,.4); }
.burger { display: none; background: none; border: 0; width: 32px; height: 20px; position: relative; cursor: pointer; }
.burger span { position: absolute; left: 0; right: 0; height: 1px; background: currentColor; transition: transform .25s; }
.burger span:first-child { top: 6px; }
.burger span:last-child { top: 13px; }

/* Hero */
.hero { position: relative; height: min(100vh, 960px); min-height: 600px; color: #fff; overflow: hidden; background: var(--dark); }
.hero > picture { position: absolute; inset: 0; height: 100%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15,12,10,.6) 0%, rgba(15,12,10,.22) 48%, rgba(15,12,10,0) 72%), linear-gradient(180deg, rgba(15,12,10,.48) 0%, rgba(15,12,10,.18) 12%, rgba(15,12,10,0) 26%); }
.hero-text { position: absolute; z-index: 2; left: var(--pad); bottom: 12%; }
.kicker { line-height: 2; opacity: .85; }
.hero h1 { color: #fff; font-size: clamp(41px, 5.55vw, 85px); margin: 32px 0 50px; }
.cta { display: inline-flex; align-items: center; gap: 16px; font-size: 12px; font-weight: 500; letter-spacing: .3em; }
.circle { display: grid; place-items: center; width: 50px; height: 50px; border: 1px solid rgba(255,255,255,.85); border-radius: 50%; transition: background .25s, color .25s, transform .25s; }
.cta:hover .circle { transform: translateX(3px); }
.cta:hover .circle { background: #fff; color: var(--ink); }
.scroll { position: absolute; z-index: 2; right: var(--pad); bottom: 12%; writing-mode: vertical-rl; transform: rotate(180deg); padding-right: 16px; border-right: 1px solid rgba(255,255,255,.4); opacity: .7; }
.hero-project { height: min(78vh, 760px); min-height: 420px; }
.hero-project::after { background: linear-gradient(180deg, rgba(15,12,10,.45) 0%, rgba(15,12,10,0) 30%); }

/* Secções */
.transform, .feature, .dev { max-width: calc(var(--wrap) + 2 * var(--pad)); margin: 0 auto; padding: 120px var(--pad) 0; }
.sec-head { margin-bottom: 72px; }
.transform h2 { font-size: clamp(28px, 2.95vw, 42px); max-width: 720px; }
.caption { display: flex; justify-content: space-between; gap: 20px; margin-top: 16px; font-size: 10px; color: var(--muted); }

/* Slider antes/depois */
.ba-slider { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--dark); user-select: none; -webkit-user-select: none; touch-action: pan-y; }
@media (hover: hover) { .ba-slider { cursor: ew-resize; } }
.ba-slider img { pointer-events: none; -webkit-user-drag: none; }
.ba-before, .ba-after { position: absolute; inset: 0; }
.ba-before picture, .ba-after picture { height: 100%; }
.ba-after { clip-path: inset(0 0 0 var(--pos)); }
.ba-tag { position: absolute; top: 22px; z-index: 2; color: #fff; padding: 7px 12px; background: rgba(20,17,15,.45); backdrop-filter: blur(4px); pointer-events: none; }
.ba-tag-before { left: 22px; }
.ba-tag-after { right: 22px; }
.ba-handle { position: absolute; z-index: 2; top: 0; bottom: 0; left: var(--pos); width: 1px; background: rgba(255,255,255,.85); pointer-events: none; }
.ba-handle span { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); transition: transform .25s, background .25s; display: flex; align-items: center; justify-content: center; gap: 2px; width: 54px; height: 54px; border: 1px solid rgba(255,255,255,.85); border-radius: 50%; background: rgba(20,17,15,.35); backdrop-filter: blur(4px); color: #fff; }
.ba-handle .arrow { width: 13px; }
.ba-handle .arrow:first-child { transform: scaleX(-1); }
.ba-slider input { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; opacity: 0; margin: 0; pointer-events: none; -webkit-appearance: none; appearance: none; }
.ba-slider.drag .ba-handle span, .ba-slider:hover .ba-handle span { transform: translate(-50%, -50%) scale(1.08); background: rgba(20,17,15,.5); }
.ba-slider input:focus-visible { opacity: 0; }
.ba-slider:has(input:focus-visible) .ba-handle span { outline: 2px solid #fff; outline-offset: 3px; }

/* Projeto em destaque */
.feature-main { display: block; aspect-ratio: 16 / 9; overflow: hidden; }
.feature-main picture, .feature-pair picture, .dev-img picture { height: 100%; }
.feature-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.feature-pair a { display: block; aspect-ratio: 3 / 2; overflow: hidden; }
.feature img, .dev img { transition: transform 1.2s ease; }
.feature a:hover img { transform: scale(1.025); }
.feature-info { display: grid; grid-template-columns: 1fr 1.2fr auto; gap: 48px; align-items: start; margin-top: 30px; }
.feature-info h3 { font-size: 30px; margin-bottom: 6px; }
.feature-info .text { font-size: 18px; max-width: 460px; }
.more { display: inline-flex; align-items: center; gap: 12px; font-size: 10px; color: var(--ink); white-space: nowrap; padding-top: 10px; }
.more .arrow { width: 16px; }

/* Espaço antes da faixa escura, com ou sem "outros" / "próximos" projetos */
.feature, .others { padding-bottom: 120px; }
.feature + .others, .feature + .dev, .others + .dev { padding-top: 0; }

/* Outros projetos */
.others { max-width: calc(var(--wrap) + 2 * var(--pad)); margin: 0 auto; padding: 100px var(--pad) 120px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.card { display: block; color: var(--ink); }
.card-img { aspect-ratio: 4 / 3; overflow: hidden; }
.card-img picture { height: 100%; }
.card img { transition: transform 1.2s ease; }
.card:hover img { transform: scale(1.025); }
.card-title { display: flex; justify-content: space-between; align-items: center; font-size: 22px; text-transform: uppercase; margin: 14px 0 4px; }

/* Em desenvolvimento */
.dev { padding-bottom: 120px; }
.dev-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.dev-img { aspect-ratio: 3 / 4; overflow: hidden; }
.dev-img img { filter: saturate(.85); }
.dev figcaption { margin-top: 18px; letter-spacing: normal; text-transform: none; }
.dev-title { display: block; font-family: var(--serif); font-size: 24px; line-height: 1.2; text-transform: uppercase; color: var(--ink); margin-bottom: 6px; }

/* Faixa escura */
.band { display: grid; grid-template-columns: 42% 1fr auto; align-items: center; gap: 4vw; background: var(--dark); color: var(--cream); padding-right: var(--pad); }
.band-img { height: 100%; min-height: 420px; }
.band-img picture { height: 100%; }
.band h2 { color: var(--cream); font-size: clamp(28px, 2.6vw, 38px); }
.band p { max-width: 420px; margin-top: 24px; font-size: 20px; line-height: 1.55; color: #b9b0a5; }
.band-cta { display: flex; align-items: center; gap: 14px; white-space: nowrap; }
.band-cta .arrow { transition: transform .25s; }
.band-cta:hover .arrow { transform: translateX(4px); }
.band-cta:hover { color: #fff; }

/* Contacto */
.contact { padding: 128px 24px 112px; text-align: center; background: var(--sand); border-top: 1px solid #e2dcd3; }
.contact .label { justify-content: center; margin-bottom: 34px; }
.contact .label::after { display: none; }
.contact h2 { font-size: clamp(32px, 3.4vw, 50px); }
.contact-sub { max-width: 460px; margin: 18px auto 0; font-size: 19px; color: var(--muted); }
.contact-cta { display: inline-flex; align-items: center; gap: 14px; margin-top: 40px; padding-bottom: 8px; border-bottom: 1px solid var(--ink); font-family: var(--sans); font-size: 12px; font-weight: 500; letter-spacing: .3em; text-transform: uppercase; color: var(--ink); }
.contact-cta { background: none; border-width: 0 0 1px; cursor: pointer; }
.contact-cta .arrow { transition: transform .25s; }
.contact-cta:hover .arrow { transform: translateX(4px); }
.channels { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 0; margin-top: 64px; font-family: var(--sans); font-size: 11px; letter-spacing: .16em; color: var(--muted); }
.channels a { padding: 0 20px; transition: color .2s; }
.channels a + a { border-left: 1px solid var(--line); }
.channels a:hover { color: var(--ink); }

/* Aviso de privacidade */
.cookie { position: fixed; right: 24px; bottom: 24px; z-index: 60; display: flex; align-items: center; gap: 24px; max-width: 520px; padding: 20px 22px; background: rgba(26,23,20,.94); color: var(--cream); backdrop-filter: blur(6px); box-shadow: 0 10px 30px rgba(0,0,0,.18); }
.cookie[hidden] { display: none; }
.cookie p { font-size: 16px; line-height: 1.45; color: #d8d0c5; }
.cookie a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.cookie button { flex: none; padding: 12px 18px; border: 1px solid rgba(236,228,216,.6); background: transparent; color: #fff; font-family: var(--sans); font-size: 11px; letter-spacing: .24em; text-transform: uppercase; cursor: pointer; transition: background .2s, color .2s; }
.cookie button:hover { background: var(--cream); color: var(--ink); }

/* Formulário de contacto */
.enquiry { margin: auto; width: min(860px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: clamp(40px, 6vw, 72px) clamp(24px, 6vw, 72px); border: 0; background: #f6f3ee; color: var(--ink); overflow-y: auto; }
.enquiry:focus { outline: 0; }
.enquiry::backdrop { background: rgba(20,17,15,.55); }
.enquiry h2 { font-size: clamp(30px, 3.4vw, 46px); margin-bottom: 40px; padding-right: 32px; }
.enquiry-close { position: absolute; top: 20px; right: 20px; width: 40px; height: 40px; background: none; border: 0; cursor: pointer; color: var(--ink); }
.enquiry-close svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 30px 48px; }
.fields .full { grid-column: 1 / -1; }
.fields span { display: block; font-family: var(--sans); font-size: 11px; letter-spacing: .24em; text-transform: uppercase; }
.fields em { font-style: normal; letter-spacing: .12em; color: var(--muted); }
.fields input, .fields select, .fields textarea { display: block; width: 100%; padding: 10px 0; border: 0; border-bottom: 1px solid #8f877e; border-radius: 0; background: transparent; color: var(--ink); font: 19px var(--serif); outline: 0; }
.fields input:focus, .fields select:focus, .fields textarea:focus { border-bottom-color: var(--ink); box-shadow: 0 1px 0 var(--ink); }
.fields select { height: 46px; }
.fields textarea { resize: vertical; }
.hp { position: absolute; left: -9999px; }
.consent { display: flex; align-items: flex-start; gap: 12px; margin-top: 32px; font-size: 17px; line-height: 1.45; color: var(--text); cursor: pointer; }
.consent input { flex: none; width: 18px; height: 18px; margin-top: 3px; accent-color: var(--ink); cursor: pointer; }
.enquiry-error { margin-top: 24px; color: #9c4034; font-size: 17px; }
.enquiry-send { display: inline-flex; align-items: center; gap: 16px; margin-top: 36px; padding: 18px 28px; border: 0; background: #2a241f; color: #fff; font-family: var(--sans); font-size: 12px; letter-spacing: .26em; text-transform: uppercase; cursor: pointer; transition: background .2s; }
.enquiry-send:hover { background: #000; }
.enquiry-send:disabled { opacity: .6; cursor: default; }
.enquiry-done h2 { margin-bottom: 14px; }
.enquiry-done p { font-size: 21px; }

/* Política de privacidade e 404 */
.page-head { position: relative; height: 110px; background: var(--dark); color: #fff; }
.legal { max-width: calc(760px + 2 * var(--pad)); margin: 0 auto; padding: 72px var(--pad) 120px; }
.legal h1 { font-size: clamp(36px, 4.4vw, 60px); margin-bottom: 14px; }
.legal h2 { font-size: 24px; margin: 44px 0 10px; }
.legal p { font-size: 19px; }
.legal p a, .consent a { text-decoration: underline; text-underline-offset: 3px; }
.not-found h1 { margin-bottom: 22px; }
.not-found .more { margin-top: 32px; }
footer a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
footer a:hover { color: #fff; }

footer { background: var(--dark); color: #a39a90; text-align: center; font-family: var(--sans); font-size: 12px; letter-spacing: .06em; padding: 20px 16px; }

/* Página de projeto */
.project-intro { max-width: calc(var(--wrap) + 2 * var(--pad)); margin: 0 auto; padding: 72px var(--pad) 0; }
.project-intro h1 { font-size: clamp(38px, 4.6vw, 64px); margin: 0 0 22px; }
.project-intro > p:last-child { font-size: 21px; max-width: 620px; }
.back { display: inline-flex; align-items: center; gap: 12px; color: var(--muted); margin-bottom: 40px; }
.back .arrow { transform: scaleX(-1); width: 16px; }
.page .transform { padding-top: 96px; }
.gallery { max-width: calc(var(--wrap) + 2 * var(--pad)); margin: 0 auto; padding: 110px var(--pad) 0; }
.gallery.before { padding-bottom: 120px; }
.row { display: grid; gap: 14px; margin-bottom: 36px; }
.row-2 { grid-template-columns: 1fr 1fr; }
.row-3 { grid-template-columns: repeat(3, 1fr); }
.row figure picture { aspect-ratio: 3 / 2; overflow: hidden; }
.row-1 figure picture { aspect-ratio: 16 / 9; }
.before .row figure picture { aspect-ratio: 4 / 5; }
.before img { filter: saturate(.9); }
.row figcaption { margin-top: 12px; font-size: 10px; color: var(--muted); }

/* Mobile */
@media (max-width: 800px) {
  body { font-size: 17px; }
  .top { padding: 22px 16px 0; }
  .logo { font-size: 20px; line-height: 1; }
  /* No celular, a localização da marca fica junto ao logótipo e não por cima do título */
  .logo-place { display: block; margin-top: 8px; font-family: var(--sans); font-size: 9px; letter-spacing: .3em; text-transform: uppercase; opacity: .85; }
  .hero .kicker { display: none; }
  .burger { display: block; color: #fff; z-index: 2; }
  .links { position: fixed; inset: 0; flex-direction: column; justify-content: center; gap: 32px; background: var(--dark); font-size: 13px; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
  .lang { border: 0; padding: 0; }
  .menu-open { overflow: hidden; }
  .menu-open .links { opacity: 1; visibility: visible; }
  .menu-open .burger span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .menu-open .burger span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

  /* Hero: foto 3:2 inteira, texto num bloco abaixo */
  .hero { height: auto; min-height: 0; overflow: visible; }
  .hero > picture { position: relative; aspect-ratio: 3 / 2; }
  .hero::after { bottom: auto; height: 120px; background: linear-gradient(180deg, rgba(15,12,10,.5), rgba(15,12,10,0)); }
  .hero-text { position: static; padding: 40px 16px 52px; }
  .hero h1 { margin: 24px 0 36px; }
  .scroll { display: none; }
  .hero-project > picture { aspect-ratio: 4 / 3; }

  .transform, .feature, .dev, .gallery, .project-intro { padding-left: 16px; padding-right: 16px; }
  .transform, .feature, .dev { padding-top: 72px; }
  .ba-slider { aspect-ratio: 4 / 3; }
  .sec-head { margin-bottom: 40px; }
  .ba-tag { top: 12px; padding: 5px 9px; font-size: 9px; }
  .ba-tag-before { left: 12px; }
  .ba-tag-after { right: 12px; }
  .ba-handle span { width: 48px; height: 48px; }
  .caption span:last-child { display: none; }
  .feature-main { aspect-ratio: 4 / 3; }
  .feature-pair { gap: 8px; margin-top: 8px; }
  .feature-pair a { aspect-ratio: 4 / 5; }
  .feature-info { grid-template-columns: 1fr; gap: 14px; }
  .others { padding: 72px 16px 0; }
  .cards { grid-template-columns: 1fr; gap: 32px; }
  .dev { padding-bottom: 72px; }
  .feature, .others { padding-bottom: 72px; }
  .feature + .others, .feature + .dev, .others + .dev { padding-top: 0; }
  .dev-grid { grid-template-columns: 1fr; gap: 36px; }
  .band { grid-template-columns: 1fr; padding: 0 0 56px; gap: 32px; }
  .band-img { min-height: 0; aspect-ratio: 3 / 2; }
  .band-text, .band-cta { padding: 0 16px; }
  .contact { padding: 88px 16px 80px; }
  .channels { flex-direction: column; align-items: center; gap: 14px; margin-top: 48px; }
  .channels a + a { border-left: 0; }
  .gallery { padding-top: 72px; }
  .gallery.before { padding-bottom: 72px; }
  .row { gap: 8px; margin-bottom: 24px; }
  .row-1 figure picture { aspect-ratio: 3 / 2; }
  .row-3 { grid-template-columns: 1fr; gap: 24px; }
  .fields { grid-template-columns: 1fr; gap: 24px; }
  .cookie { left: 12px; right: 12px; bottom: 12px; flex-direction: column; align-items: flex-start; gap: 14px; max-width: none; padding: 18px; }
  }
