/* tastemaker · macrostructure: Editorial Index, one page per theme · mood: elegant (brand-locked) · page: cover + inner pages (institucional)
 * arc: hook(cover: eyebrow, title, mark) -> who(sobre) -> what(promoção e investimento, projects) -> diversify(investimentos estratégicos) -> own(ativos próprios) -> close(contactos)
 * nav: N2 (no CTA, PT/EN, burger below 75rem) · hero: H3 variant as a full-viewport cover (Porto rooftops clipped to the mark, right) · footer: Ft1 masthead · sections: S1 hanging
 * palette: brand-extracted from logo + deck (#0B3B70 / #002550 / #AABBD0 / #FFFFFF) · contrast: pass (matrix, 2026-11-03)
 * critique: ShowTell 4 · Phil 4 · Hier 4 · Spec 4 · Restr 5 · Var 4 */

:root {
  /* color: from the logo (#0B3B70) and the client's deck (#002550, #AABBD0) */
  --navy: #0b3b70;
  --navy-deep: #002550;
  --mist: #aabbd0;
  --surface: #eef2f7;
  --border: #c9d4e2;
  --ink: #1e2b3c;
  --muted: #5a6b80;
  --white: #ffffff;

  --font-display: "Newsreader", "Times New Roman", serif;
  --font-body: "Hanken Grotesk", system-ui, sans-serif;

  /* type scale */
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.5rem, 1.25rem + 0.9vw, 1.875rem);
  --step-3: clamp(1.875rem, 1.4rem + 1.7vw, 2.625rem);
  --step-4: clamp(2.5rem, 1.7rem + 2.6vw, 3.75rem);
  --step-5: clamp(2.625rem, 1.5rem + 3.6vw, 4.5rem);

  /* spacing scale */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-6: 1.5rem;
  --s-8: 2rem;
  --s-12: 3rem;
  --s-16: 4rem;
  --s-24: 6rem;
  --s-32: 8rem;
  --s-40: 10rem;

  --radius: 2px;
  --wrap: 76rem;
  --gutter: clamp(1rem, 0.5rem + 2.5vw, 2.5rem);
  --header-h: 6.5rem;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; }

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

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: var(--s-4); top: -4rem; z-index: 100;
  background: var(--navy); color: var(--white); padding: var(--s-2) var(--s-4);
}
.skip:focus { top: var(--s-4); }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }

/* ---------- header (N2) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(255 255 255 / 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms var(--ease-out);
}
.site-header.is-scrolled { border-bottom-color: var(--border); }

.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-8); min-height: var(--header-h);
}

.brand { flex: none; }
.brand img { width: auto; height: 3.5rem; }

.nav { display: flex; align-items: center; gap: var(--s-8); }
.nav__links { display: flex; gap: var(--s-8); margin: 0; padding: 0; list-style: none; }
.nav__links a,
.lang a {
  display: inline-block; padding: var(--s-2) 0;
  font-size: var(--step-0); font-weight: 500; letter-spacing: 0.01em; white-space: nowrap;
  text-decoration: none; color: var(--ink);
  background: linear-gradient(var(--navy), var(--navy)) left bottom / 0 1px no-repeat;
  transition: background-size 200ms var(--ease-out), color 200ms var(--ease-out);
}
.nav__links a[aria-current="page"] { background-size: 100% 1px; color: var(--navy); }
@media (hover: hover) and (pointer: fine) {
  .nav__links a:hover { background-size: 100% 1px; color: var(--navy); }
  .lang a:hover { color: var(--navy); }
}

.lang { display: flex; gap: var(--s-3); margin: 0; padding-left: var(--s-6); border-left: 1px solid var(--border); }
.lang a { color: var(--muted); }
.lang a[aria-current="true"] { color: var(--navy); font-weight: 600; }

.menu-toggle {
  display: none; align-items: center; justify-content: center;
  width: 2.75rem; height: 2.75rem; padding: 0;
  background: none; border: 0; color: var(--navy); cursor: pointer;
}
.menu-toggle .icon--close { display: none; }
.menu-toggle[aria-expanded="true"] .icon--open { display: none; }
.menu-toggle[aria-expanded="true"] .icon--close { display: block; }

/* ---------- shared text pieces ---------- */
.section-title {
  margin: 0 0 var(--s-12);
  max-width: 22ch;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--step-3);
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--navy);
}
.section-title--inverse { color: var(--white); }

.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3rem; padding: 0 var(--s-6);
  background: var(--navy); color: var(--white);
  border: 1px solid var(--navy); border-radius: var(--radius);
  font: 600 var(--step--1) / 1 var(--font-body); letter-spacing: 0.02em;
  text-decoration: none; cursor: pointer;
  transition: background-color 200ms var(--ease-out), border-color 200ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .button:hover { background: var(--navy-deep); border-color: var(--navy-deep); }
}
.button:active { transform: translateY(1px); }
.button:disabled { opacity: 0.7; cursor: progress; }

.text-link {
  display: inline-flex; align-items: center; gap: var(--s-1);
  min-height: 2.75rem;
  font-weight: 500; color: var(--navy);
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.3em;
  text-decoration-color: var(--mist);
  transition: text-decoration-color 200ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .text-link:hover { text-decoration-color: currentColor; }
}
.text-link--inverse { color: var(--white); text-decoration-color: rgb(255 255 255 / 0.4); }

.icon--inline { width: 1em; height: 1em; flex: none; }

/* ---------- cover (H3 variant: the home is a single cover, city seen through the mark) ---------- */
.cover {
  display: flex; align-items: center;
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
  padding: var(--s-12) 0 var(--s-16);
}

.cover__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
  gap: var(--s-16);
}

.cover__eyebrow {
  margin: 0 0 var(--s-6);
  font-family: var(--font-body);
  font-size: var(--step--1); font-weight: 600; letter-spacing: 0.04em;
  color: var(--navy);
}

.cover__title {
  margin: 0;
  max-width: 17ch;
  text-wrap: balance;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: var(--step-5);
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--navy);
}

.cover__visual { margin: 0; }

/* the mark keeps the 131 x 71 proportions of the logo; each shape is clipped from the same photo */
.cover__mark {
  position: relative;
  /* never taller than the space left under the header, and never distorted: width follows the height cap */
  width: min(100%, calc((100vh - var(--header-h) - var(--s-24)) * 131 / 71));
  width: min(100%, calc((100svh - var(--header-h) - var(--s-24)) * 131 / 71));
  aspect-ratio: 131 / 71;
  margin-left: auto;
}
.cover__shape { position: absolute; inset: 0; overflow: hidden; }
.cover__shape--a { -webkit-clip-path: url(#mark-a); clip-path: url(#mark-a); }
.cover__shape--b { -webkit-clip-path: url(#mark-b); clip-path: url(#mark-b); }
.cover__shape--c { -webkit-clip-path: url(#mark-c); clip-path: url(#mark-c); }
.cover__shape img {
  position: absolute; inset: -6% 0;
  width: 100%; height: 112%; max-width: none;
  object-fit: cover; object-position: 50% 50%;
  background: var(--surface);
}

/* ---------- inner page head ---------- */
.page-head { padding: var(--s-16) 0; }
.page-head__eyebrow { margin: 0 0 var(--s-4); font-size: var(--step--1); font-weight: 600; letter-spacing: 0.02em; color: var(--muted); }
.page-head__title {
  margin: 0;
  max-width: 20ch;
  text-wrap: balance;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: var(--step-4);
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--navy);
}
.page-head__lede { margin: var(--s-8) 0 0; max-width: 58ch; font-size: var(--step-1); line-height: 1.55; }

/* ---------- about ---------- */
.about { padding: var(--s-24) 0; border-top: 1px solid var(--border); }

.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--s-16);
  align-items: start;
}
.about__grid .section-title { margin-bottom: 0; }

.prose p { margin: 0 0 var(--s-6); max-width: 62ch; }

/* ---------- legal pages ---------- */
.legal { padding: var(--s-16) 0 var(--s-24); border-top: 1px solid var(--border); }
.legal__body h2 {
  margin: var(--s-12) 0 var(--s-4);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--step-2);
  line-height: 1.2;
  text-wrap: balance;
  color: var(--navy);
}
.legal__body h2:first-child { margin-top: 0; }
.legal__body p { text-wrap: pretty; }
.legal__updated { margin-top: var(--s-12); font-size: var(--step--1); color: var(--muted); }

/* ---------- 404 ---------- */
.notfound__actions { margin: var(--s-12) 0 0; }
.notfound__en { margin: var(--s-8) 0 0; color: var(--muted); }

/* ---------- two activities side by side ---------- */
.split { padding: 0 0 var(--s-16); }
.split__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-8); }
.split__item { padding: var(--s-8); background: var(--surface); }
.split__item p { margin: 0; max-width: 52ch; }
.split__title { margin: 0 0 var(--s-3); font-family: var(--font-display); font-weight: 400; font-size: var(--step-2); color: var(--navy); }

/* ---------- projects (F7 gallery) ---------- */
.projects { padding: var(--s-24) 0 var(--s-32); border-top: 1px solid var(--border); }
.projects__more { margin: var(--s-12) 0 0; max-width: 52ch; font-family: var(--font-display); font-size: var(--step-1); color: var(--navy); }

.projects__group {
  margin: 0 0 var(--s-6);
  padding-top: var(--s-4);
  border-top: 1px solid var(--border);
  font-size: var(--step--1); font-weight: 600; letter-spacing: 0.02em;
  color: var(--muted);
}

.projects__grid { display: grid; gap: var(--s-8); margin-bottom: var(--s-24); }
.projects__grid:last-child { margin-bottom: 0; }
.projects__grid--current { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.projects__grid--current img { aspect-ratio: 4 / 3; }
.projects__grid--done { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.project { margin: 0; }
.project img { width: 100%; object-fit: cover; background: var(--surface); }
.project--wide img { aspect-ratio: 4 / 3; }
.project--tall img { aspect-ratio: 3 / 4; }
.project--landscape { grid-column: span 2; }
.project--landscape img { aspect-ratio: 1.59; }

.project figcaption {
  display: flex; flex-direction: column; gap: var(--s-1);
  margin-top: var(--s-4);
}
.project__name { font-family: var(--font-display); font-size: var(--step-1); line-height: 1.25; color: var(--navy); }
.project__place { font-size: var(--step--1); color: var(--muted); }

/* ---------- partners (fund managers) ---------- */
.partners { padding: var(--s-24) 0 var(--s-32); background: var(--surface); }

.partners__list {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-6);
  margin: 0; padding: 0; list-style: none;
}
.partner a {
  display: flex; flex-direction: column; height: 100%;
  background: var(--white); text-decoration: none; color: var(--navy);
  border: 1px solid transparent;
  transition: border-color 200ms var(--ease-out);
}
.partner__logo {
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 3 / 2; padding: var(--s-8);
}
.partner__logo img { max-height: 4.5rem; width: auto; max-width: 100%; object-fit: contain; }
.partner__name {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-2);
  padding: var(--s-4) var(--s-6);
  border-top: 1px solid var(--surface);
  font-weight: 500; font-size: var(--step--1);
}
@media (hover: hover) and (pointer: fine) {
  .partner a:hover { border-color: var(--border); }
}

/* ---------- assets (owned brands) ---------- */
.assets { padding: 0 0 var(--s-32); }
.assets .wrap { display: grid; gap: var(--s-16); }

.asset {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s-12);
  align-items: center;
}
.asset--flip .asset__media { order: 2; }
.asset__media { margin: 0; }
.asset__media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--surface); }
.asset__media--logo {
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 3 / 2; background: var(--white); border: 1px solid var(--border);
}
.asset__media--logo img { width: auto; max-width: 40%; aspect-ratio: auto; background: none; }
.asset__logo { width: auto; height: auto; margin-bottom: var(--s-6); }
.asset__logo--wide { width: min(100%, 18rem); }
.asset__name { margin: 0 0 var(--s-4); font-family: var(--font-display); font-weight: 400; font-size: var(--step-3); line-height: 1.12; color: var(--navy); }
.asset__body p { margin: 0 0 var(--s-4); max-width: 52ch; }
.asset__meta { font-size: var(--step--1); color: var(--muted); }

/* ---------- next page link ---------- */
.next { border-top: 1px solid var(--border); }
.next__link {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--s-1) var(--s-6);
  padding: var(--s-12) 0;
  text-decoration: none; color: var(--navy);
}
.next__label { grid-column: 1; font-size: var(--step--1); font-weight: 600; color: var(--muted); }
.next__title { grid-column: 1; font-family: var(--font-display); font-size: var(--step-3); line-height: 1.12; }
.next__link .icon { grid-column: 2; grid-row: 1 / span 2; width: 2rem; height: 2rem; transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .next__link:hover .icon { transform: translateX(6px); }
}

/* ---------- contact ---------- */
.contact { padding: 0 0 var(--s-32); }

.contact__grid {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s-16);
  align-items: start;
}
.contact__details .section-title { margin-bottom: var(--s-8); }
.contact address { font-style: normal; }
.contact address p { margin: 0 0 var(--s-6); }
.contact address a { text-decoration: none; color: var(--navy); }
@media (hover: hover) and (pointer: fine) {
  .contact address a:hover { text-decoration: underline; text-underline-offset: 0.3em; }
}

.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-6); }
.field { display: flex; flex-direction: column; gap: var(--s-2); }
.field:nth-of-type(n + 3) { grid-column: 1 / -1; }
.field label { font-size: var(--step--1); font-weight: 500; }

.field input[type="text"],
.field input[type="email"],
.field textarea {
  width: 100%;
  padding: var(--s-3) var(--s-4);
  font: inherit; color: var(--ink);
  background: var(--white);
  border: 1px solid var(--border); border-bottom-color: var(--muted);
  border-radius: var(--radius);
  transition: border-color 200ms var(--ease-out);
}
.field input:focus-visible,
.field textarea:focus-visible { outline: 2px solid var(--navy); outline-offset: 0; border-color: var(--navy); }
.field [aria-invalid="true"] { border-color: #a32020; }

.field--check { flex-direction: row; align-items: flex-start; gap: var(--s-3); }
.field--check input { width: 1.25rem; height: 1.25rem; margin-top: 0.2rem; accent-color: var(--navy); flex: none; }
.field--check label { font-weight: 400; color: var(--muted); }

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

.form__status { grid-column: 1 / -1; margin: 0; min-height: 1.6em; font-size: var(--step--1); color: var(--navy); }
.form .button { grid-column: 1 / -1; justify-self: start; }

/* ---------- footer (Ft1) ---------- */
.site-footer { padding: var(--s-16) 0 var(--s-8); background: var(--navy-deep); color: var(--white); }

.site-footer__top {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 4fr); gap: var(--s-12);
  align-items: start;
  padding-bottom: var(--s-12);
}
.site-footer__brand { display: inline-block; }
.site-footer__logo { width: 17rem; max-width: 100%; height: auto; }
.site-footer__head { margin: 0 0 var(--s-4); font-size: var(--step--1); font-weight: 600; letter-spacing: 0.02em; color: var(--mist); }
.site-footer__col ul { display: flex; flex-direction: column; gap: var(--s-2); margin: 0; padding: 0; list-style: none; }
.site-footer__col address { font-style: normal; }
.site-footer__col address p { margin: 0 0 var(--s-4); }
.site-footer a { color: var(--white); text-decoration: none; }
/* the global navy ring disappears on navy-deep (1.36:1); white measures 15.21:1 */
.site-footer :focus-visible { outline-color: var(--white); }
@media (hover: hover) and (pointer: fine) {
  .site-footer a:hover { text-decoration: underline; text-underline-offset: 0.3em; }
}

.site-footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-4) var(--s-8);
  padding-top: var(--s-6);
  border-top: 1px solid rgb(255 255 255 / 0.16);
  font-size: var(--step--1); color: var(--mist);
}
.site-footer__bottom p { margin: 0; }
.site-footer__bottom ul { display: flex; flex-wrap: wrap; gap: var(--s-6); margin: 0; padding: 0; list-style: none; }
.site-footer__bottom a { color: var(--mist); }

/* ---------- responsive ---------- */
@media (max-width: 80rem) {
  .nav, .nav__links { gap: var(--s-6); }
  .nav__links a, .lang a { font-size: 0.9375rem; }
  .lang { padding-left: var(--s-4); }
}

/* below 75rem the five links no longer fit next to the logo on one line */
@media (max-width: 75rem) {
  .menu-toggle { display: inline-flex; }
  .nav {
    position: absolute; inset: 100% 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: var(--s-4) var(--gutter) var(--s-8);
    background: var(--white); border-bottom: 1px solid var(--border);
    visibility: hidden; opacity: 0; transform: translateY(-0.5rem);
    transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out), visibility 0s linear 200ms;
  }
  .nav.is-open {
    visibility: visible; opacity: 1; transform: none;
    transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out), visibility 0s;
  }
  .nav__links { flex-direction: column; gap: 0; }
  .nav__links a { display: flex; align-items: center; min-height: 3rem; font-size: var(--step-0); }
  .lang { padding: var(--s-4) 0 0; margin-top: var(--s-4); border-left: 0; border-top: 1px solid var(--border); }
  .lang a { display: inline-flex; align-items: center; min-height: 2.75rem; font-size: var(--step-0); }

  :root { --header-h: 5rem; }
  .brand img { height: 2.75rem; }
}

@media (max-width: 60rem) {
  .cover { padding: var(--s-8) 0 var(--s-12); }
  .cover__grid { gap: var(--s-12); }
  .cover__mark { width: 100%; max-width: 36rem; margin-left: 0; }
  .cover__grid,
  .about__grid,
  .contact__grid { grid-template-columns: 1fr; gap: var(--s-12); }
  .page-head { padding: var(--s-12) 0; }
  .split__grid { grid-template-columns: 1fr; }
  .partners__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .asset { grid-template-columns: 1fr; gap: var(--s-6); }
  .asset--flip .asset__media { order: 0; }
  .projects__grid--current { grid-template-columns: 1fr; }
  .projects__grid--done { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer__top { grid-template-columns: 1fr 1fr; }
  .site-footer__brand { grid-column: 1 / -1; }
  .site-footer__logo { width: 14rem; }
}

@media (max-width: 40rem) {
  .brand img { height: 2.5rem; }
  .partners,
  .projects { padding: var(--s-16) 0; }
  .assets,
  .contact { padding-bottom: var(--s-16); }
  .projects__grid--done { grid-template-columns: 1fr; }
  .project--landscape { grid-column: auto; }
  .partners__list { grid-template-columns: 1fr; }
  .site-footer__top { grid-template-columns: 1fr; gap: var(--s-8); }
  .form { grid-template-columns: 1fr; }
  .field:nth-of-type(n + 3) { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
