/* ALEXTOMA: institutional site. Light, cool architectural greys, graphite text, one point of red from the logo. */

:root {
  --bg: #FAFAFB;          /* near white (owner, 21 Nov 2026): the lightest tone sits next to the top images */
  --bg-rgb: 250, 250, 251;
  --surface: #FFFFFF;
  --surface-2: #E7E9EB;   /* alternating bands, image placeholders */
  --text: #15181C;        /* graphite, close to the logo's line work */
  --muted: #62676E;
  --accent: #CC090D;      /* sampled from the logo's red rule */
  --accent-rgb: 204, 9, 13;
  --dark: #1B1F24;
  --dark-2: #121519;
  --on-dark: #EEF0F2;
  --on-dark-muted: #A2A8B0;
  --line: #D6D9DD;
  --line-dark: rgba(238, 240, 242, .16);

  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Hanken Grotesk", var(--font);

  --header-h: 92px;
  --gutter: clamp(16px, 4vw, 56px);
  --section: clamp(88px, 11vw, 176px);
  --ease: cubic-bezier(.2, .7, .1, 1);
  --tshadow: 0 1px 2px rgba(8, 10, 16, .35), 0 6px 28px rgba(8, 10, 16, .35);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--header-h); }
html, body { overflow-x: hidden; overflow-x: clip; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 17px/1.65 var(--font); font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
h1, h2, h3, p, ol, ul, dl, dd, figure, blockquote { margin: 0; }
ol, ul { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: rgba(var(--accent-rgb), .18); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 4px; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: 1680px; margin-inline: auto; padding-inline: var(--gutter); } /* owner, 27 Nov 2026: was 1440, too much empty margin on wide screens */

/* ---------- type */
.display-1, .display-2, .display-3 { font-family: var(--font-display); font-weight: 300; letter-spacing: -.028em; }
.display-1 { font-size: clamp(2.75rem, 6.6vw, 7rem); line-height: .98; }
.display-2 { font-size: clamp(2rem, 3.9vw, 3.75rem); line-height: 1.05; max-width: 20ch; }
.display-3 { font-size: clamp(1.4rem, 2.2vw, 2.1rem); line-height: 1.22; letter-spacing: -.018em; }
.display-1 em, .display-2 em { font-style: normal; color: var(--muted); }
.lead { font-size: clamp(1.06rem, 1.25vw, 1.25rem); line-height: 1.6; color: var(--muted); max-width: 46ch; margin-top: 28px; }
.lead--xl { font-family: var(--font-display); font-weight: 300; font-size: clamp(1.4rem, 2.3vw, 2.15rem); line-height: 1.32; letter-spacing: -.015em; color: var(--text); max-width: 34ch; margin-top: 0; }
.label { font: 500 12px/1.4 var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.section-label { display: flex; align-items: center; gap: 14px; }
.section-label__n { font-variant-numeric: tabular-nums; color: var(--text); }
.section-label__n::after { content: ""; display: inline-block; width: 28px; height: 1px; background: currentColor; opacity: .4; margin-left: 14px; vertical-align: middle; }
.note { margin-top: 40px; font-size: 13px; color: var(--muted); max-width: 70ch; }

/* ---------- buttons and links */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 28px; border-radius: 100px; border: 1px solid transparent;
  font: 500 15px/1 var(--font); letter-spacing: .01em; text-decoration: none; cursor: pointer;
  transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: #A8070B; }
.btn--light { background: var(--bg); color: var(--text); }
.btn--light:hover { background: #fff; }
.btn--ghost-light { border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn--ghost-light:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }
.link-arrow, .link-light { display: inline-flex; align-items: center; gap: 12px; font-weight: 500; text-decoration: none; }
.link-arrow { margin-top: 36px; padding-bottom: 6px; border-bottom: 1px solid currentColor; }
.link-arrow::after {
  content: ""; width: 22px; height: 10px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 10'%3E%3Cpath d='M0 5h20M16 1l4 4-4 4' fill='none' stroke='black' stroke-width='1.3'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 10'%3E%3Cpath d='M0 5h20M16 1l4 4-4 4' fill='none' stroke='black' stroke-width='1.3'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .4s var(--ease);
}
.link-arrow:hover::after { transform: translateX(5px); }
.link-light { color: var(--on-dark); border-bottom: 1px solid rgba(238, 240, 242, .4); padding-bottom: 4px; }

/* ---------- header */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  border-bottom: 1px solid transparent; transition: border-color .4s, box-shadow .4s;
}
/* the blur sits on its own layer so the full-screen mobile menu is not trapped inside the header */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(var(--bg-rgb), .86); -webkit-backdrop-filter: blur(14px) saturate(1.1); backdrop-filter: blur(14px) saturate(1.1);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand { display: block; flex: none; position: relative; z-index: 2; }
.brand img { height: 74px; width: auto; }
.nav { display: flex; align-items: center; gap: 40px; }
.nav__links { display: flex; gap: 34px; }
.nav__links a { font-size: 15px; font-weight: 500; text-decoration: none; padding: 8px 0; position: relative; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 2px; height: 1px; background: currentColor; transition: right .4s var(--ease); }
.nav__links a:hover::after, .nav__links a[aria-current="page"]::after { right: 0; }
.lang { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; letter-spacing: .08em; }
.lang a { text-decoration: none; color: var(--muted); padding: 10px 2px; }
.lang a[aria-current] { color: var(--text); }
.lang a:hover { color: var(--text); }
.lang span { color: var(--line); }
.menu-btn { display: none; }
/* owner, 27 Nov 2026: top menu slightly larger on computers (was 15 px, languages 13 px) */
@media (min-width: 701px) {
  .nav__links a { font-size: 17px; }
  .lang { font-size: 14px; }
}
/* narrower laptop windows (owner, 20 Nov 2026): menu names stay in the header down to 701px */
@media (min-width: 701px) and (max-width: 1100px) {
  .site-header__inner { gap: 24px; }
  .nav { gap: 24px; }
  .nav__links { gap: 22px; }
}

@media (max-width: 700px) {
  :root { --header-h: 68px; }
  .brand img { height: 50px; }
  .menu-btn {
    display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px;
    background: none; border: 0; cursor: pointer; margin-right: -10px; position: relative; z-index: 2;
  }
  .menu-btn__bars, .menu-btn__bars::before { display: block; width: 24px; height: 1.5px; background: var(--text); transition: transform .4s var(--ease); }
  .menu-btn__bars { position: relative; transform: translateY(-4px); }
  .menu-btn__bars::before { content: ""; position: absolute; top: 8px; }
  .menu-open .menu-btn__bars { transform: translateY(0) rotate(45deg); }
  .menu-open .menu-btn__bars::before { transform: translateY(-8px) rotate(-90deg); }
  .nav {
    position: fixed; inset: 0; z-index: 1; flex-direction: column; align-items: flex-start; justify-content: center; gap: 48px;
    padding: var(--header-h) var(--gutter) 40px; background: var(--bg);
    opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility .4s;
  }
  .menu-open .nav { opacity: 1; visibility: visible; }
  .nav__links { flex-direction: column; gap: 6px; }
  .nav__links a { font: 300 clamp(2rem, 9vw, 3rem)/1.2 var(--font-display); letter-spacing: -.02em; }
  .nav__links a::after { display: none; }
  .lang { font-size: 15px; }
  .menu-open { overflow: hidden; }
}

/* ---------- scroll rail (signature: plan line with a red point) */
.rail { position: fixed; left: calc(var(--gutter) / 2 - 1px); top: 30vh; height: 40vh; width: 1px; background: var(--line); z-index: 40; pointer-events: none; opacity: 0; transition: opacity .6s; }
.rail.is-on { opacity: 1; }
.rail__dot { position: absolute; left: -2.5px; top: 0; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); will-change: transform; }
@media (max-width: 1180px) { .rail { display: none; } }

/* ---------- hero */
/* light, daylight hero: graphite type on a soft light veil, no heavy scrim */
.hero { position: relative; height: 190vh; background: var(--bg); }
.hero__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; color: var(--text); }
.hero__media, .hero__img, .hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; }
.hero__img { animation: hero-drift 22s var(--ease) both; }
.hero__video { opacity: 0; transition: opacity 1s ease; }
.hero.is-video .hero__video { opacity: 1; }
@keyframes hero-drift { from { transform: scale(1.06); } to { transform: scale(1); } }
/* lighter, narrower veil (owner, 20 Nov 2026: the hero looked washed out); just enough behind the text */
.hero__scrim { position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(var(--bg-rgb), .8) 0%, rgba(var(--bg-rgb), .52) 26%, rgba(var(--bg-rgb), .08) 48%, rgba(var(--bg-rgb), 0) 60%),
  linear-gradient(0deg, rgba(var(--bg-rgb), .4) 0%, rgba(var(--bg-rgb), 0) 24%); }
.hero__content {
  position: absolute; inset: auto 0 0; padding-bottom: clamp(72px, 14vh, 150px); padding-top: var(--header-h);
  transform: translate3d(0, calc(var(--hp, 0) * -60px), 0); opacity: calc(1 - var(--hp, 0) * 1.4);
}
.hero__kicker { color: var(--muted); margin-bottom: 26px; }
/* factual title, longer than a slogan: a calmer size so it sits in three lines */
/* owner, 20 Nov 2026: the text must not fade into the picture. A soft light halo behind the letters,
   a slightly heavier title and the subtitle in full text colour */
.hero__title { max-width: 17ch; font-size: clamp(2.3rem, 5vw, 4.9rem); line-height: 1.04; font-weight: 400; color: #101317;
  text-shadow: 0 0 2px rgba(var(--bg-rgb), .9), 0 0 18px rgba(var(--bg-rgb), .85), 0 0 42px rgba(var(--bg-rgb), .6); }
.hero__title em { color: var(--accent); }
/* owner, 20 Nov 2026: three key words, one per line, clean (no red marks) */
.hero__title span { display: block; }
.hero__title { font-size: clamp(2.8rem, 6.2vw, 6rem); line-height: 1; letter-spacing: -.035em; }
.hero__sub { margin-top: 26px; font-size: clamp(1.05rem, 1.35vw, 1.3rem); color: var(--text); font-weight: 500; max-width: 40ch;
  text-shadow: 0 0 2px rgba(var(--bg-rgb), .95), 0 0 14px rgba(var(--bg-rgb), .9), 0 0 30px rgba(var(--bg-rgb), .7); }
.hero__actions { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 14px; }
.btn--ghost { border-color: rgba(21, 24, 28, .35); color: var(--text); background: rgba(255, 255, 255, .35); }
.btn--ghost:hover { border-color: var(--text); background: rgba(255, 255, 255, .7); }
.hero__scroll {
  position: absolute; right: var(--gutter); bottom: 40px; display: flex; flex-direction: column; align-items: center; gap: 14px;
  font: 500 11px/1 var(--font); letter-spacing: .2em; text-transform: uppercase; color: var(--muted);
  writing-mode: vertical-rl; opacity: calc(1 - var(--hp, 0) * 3);
}
.hero__scroll span { width: 1px; height: 56px; background: rgba(21, 24, 28, .18); position: relative; overflow: hidden; }
.hero__scroll span::after { content: ""; position: absolute; inset: 0; background: var(--text); transform: translateY(-100%); animation: scroll-line 2.6s var(--ease) infinite; }
@keyframes scroll-line { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }

/* ---------- sections */
.section { padding-block: var(--section); position: relative; }
.section--tight { padding-block: clamp(48px, 6vw, 96px); }
.section--alt { background: var(--surface-2); }
.section--dark { background: var(--dark); color: var(--on-dark); }
.section--dark .label, .section--dark .lead { color: var(--on-dark-muted); }
.section--dark .section-label__n { color: var(--on-dark); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 28px; }
.col-label { grid-column: 1 / span 3; padding-top: 14px; }
.col-main { grid-column: 4 / span 9; }

.figures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: clamp(64px, 8vw, 120px); }
.figures--top { margin-top: 0; }
.figure { border-top: 1px solid var(--line); padding-top: 22px; display: grid; gap: 10px; }
.figure__n { font: 300 clamp(3rem, 6vw, 5.5rem)/1 var(--font-display); letter-spacing: -.04em; }
.figure__l { font-size: 15px; color: var(--muted); max-width: 26ch; }

.areas { margin-top: clamp(48px, 6vw, 88px); border-bottom: 1px solid var(--line); }
.area {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: baseline;
  padding-block: clamp(22px, 2.6vw, 34px); border-top: 1px solid var(--line);
}
.area__n { grid-column: 1 / span 3; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; letter-spacing: .08em; }
.area__t { grid-column: 4 / span 4; font: 400 clamp(1.25rem, 1.9vw, 1.75rem)/1.2 var(--font-display); letter-spacing: -.015em; transition: transform .5s var(--ease); }
.area__x { grid-column: 8 / span 5; color: var(--muted); font-size: 16px; }
.area:hover .area__t { transform: translateX(8px); }

/* ---------- projects: shared picture language (rounded frames, layered and tilted pairs) */
:root { --r-lg: 22px; --r-md: 16px; --frame: 9px; --lift: 0 34px 70px -28px rgba(18, 20, 24, .42); }
.project { margin: 0; }
.project__media { position: relative; }
/* the caption sits beside the hanging second picture, never under it */
.track__grid .project figcaption { padding-right: 40%; }
.track__grid .project--h2 figcaption, .track__grid .project--h3 figcaption { padding: 18px 0 0 46%; }
.track__grid .project--h4 figcaption { padding: 18px 0 0 40%; }
.project__img { position: relative; overflow: hidden; background: var(--surface-2); border-radius: var(--r-lg); }
.project__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--ease); }
.project:hover .project__img img { transform: scale(1.035); }
.project__inset {
  /* hangs below the main picture by a third of its own height, whatever the main picture's shape */
  position: absolute; width: 40%; aspect-ratio: 4 / 5; right: -7%; bottom: 0; z-index: 2;
  border: var(--frame) solid var(--bg); border-radius: calc(var(--r-md) + var(--frame)); overflow: hidden;
  background: var(--surface-2); box-shadow: var(--lift);
  transform: translate3d(0, calc(34% + var(--py, 0px)), 0) rotate(2.4deg); transition: box-shadow .6s var(--ease);
}
.project__inset img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--r-md); }
.project--h2 .project__inset, .project--h3 .project__inset, .project--h4 .project__inset { right: auto; left: -7%; transform: translate3d(0, calc(34% + var(--py, 0px)), 0) rotate(-2.2deg); }
.project--h2 .project__inset { width: 46%; aspect-ratio: 1; }
.project--h4 .project__inset { aspect-ratio: 5 / 4; width: 54%; left: -20%; }
.project figcaption { padding-top: 18px; display: grid; gap: 4px; }
.project__name { font: 400 clamp(1.15rem, 1.6vw, 1.45rem)/1.25 var(--font-display); letter-spacing: -.012em; }
/* owner, 27 Nov 2026: home page title and pictures link to the project's details */
a.project__img, a.project__inset { display: block; color: inherit; }
.project__name a { color: inherit; text-decoration: none; background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 1px no-repeat; transition: background-size .35s var(--ease); }
.project__name a:hover, .project__name a:focus-visible, .project:hover .project__name a { background-size: 100% 1px; }
.project__meta { font-size: 14px; color: var(--muted); }
.project__area { font-size: 14px; color: var(--text); }
.spread__area { color: var(--text); }
.devrow__area { font-size: 14px; color: var(--on-dark); }
.project__stage { font-size: 13px; font-weight: 500; color: var(--text); display: flex; align-items: center; gap: 8px; }
.project__stage::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

.track__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: clamp(48px, 7vw, 110px); margin-top: clamp(56px, 7vw, 104px); align-items: start; }
.project--h1 { grid-column: 1 / span 7; }
.project--h2 { grid-column: 9 / span 4; margin-top: 22vh; }
.project--h3 { grid-column: 2 / span 5; }
.project--h4 { grid-column: 7 / span 6; margin-top: 12vh; }
.project--h5 { grid-column: 3 / span 7; }
.track__more { margin-top: clamp(40px, 5vw, 72px); display: flex; justify-content: flex-end; }

/* ---------- home: São Bento Residences first */
.feature { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: end; margin-top: clamp(48px, 6vw, 96px); }
.feature__media { grid-column: 1 / span 8; position: relative; display: block; overflow: hidden; border-radius: var(--r-lg); aspect-ratio: 5 / 4; background: var(--surface-2); }
.feature__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--ease); }
.feature:hover .feature__media img { transform: scale(1.03); }
.feature__body { grid-column: 9 / span 4; display: grid; gap: 10px; padding-bottom: 8px; }
.feature__name { font: 300 clamp(2rem, 3.6vw, 3.4rem)/1.02 var(--font-display); letter-spacing: -.03em; }
.feature__meta { color: var(--muted); font-size: 15px; }
.feature .link-arrow { margin-top: 18px; justify-self: start; }
.track .track__grid { margin-top: clamp(80px, 10vw, 150px); }
/* owner, 20 Nov 2026: on the Infantado card (2nd in the list) the small photo hid the best part of the main one;
   it now sits on the bottom-right corner, and the caption keeps clear of it */
.track__grid--list .project--h2 .project__inset { left: auto; right: -2%; transform: translate3d(0, calc(34% + var(--py, 0px)), 0) rotate(2.4deg); }
.track__grid--list .project--h2 figcaption { padding: 18px 42% 0 0; }
/* owner: one project per row, never side by side; alternating left and right (desktop) */
@media (min-width: 901px) {
  .track__grid--list > .project { grid-column: 1 / span 7; margin-top: 0; }
  .track__grid--list > .project:nth-child(even) { grid-column: 6 / span 7; }
  /* left-hand projects carry their second photo on the right, right-hand ones on the left */
  .track__grid--list .project--h3 .project__inset { left: auto; right: -7%; transform: translate3d(0, calc(34% + var(--py, 0px)), 0) rotate(2.4deg); }
  .track__grid--list .project--h3 figcaption { padding: 18px 40% 0 0; }
  .track__grid--list > .project--tall { grid-column: 2 / span 5; }
  .track__grid--list > .project--tall:nth-child(even) { grid-column: 7 / span 5; }}

/* ---------- home: one project per row (owner, 20 Nov 2026): large photo, smaller photo beside it, short text on the right */
.track__rows { display: grid; row-gap: clamp(64px, 8vw, 120px); margin-top: clamp(80px, 10vw, 150px); }
.hp { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: end; }
.hp__big { grid-column: 1 / span 6; position: relative; display: block; overflow: hidden; border-radius: var(--r-lg); background: var(--surface-2); }
.hp__small { grid-column: 7 / span 3; position: relative; overflow: hidden; border-radius: var(--r-md); background: var(--surface-2); margin-bottom: clamp(24px, 4vw, 64px); }
.hp__big img, .hp__small img { width: 100%; height: auto; display: block; transition: transform 1.6s var(--ease); }
.hp:hover .hp__big img { transform: scale(1.03); }
.hp__body { grid-column: 10 / span 3; display: grid; gap: 10px; padding-bottom: 8px; }
.hp__name { font: 300 clamp(1.6rem, 2.4vw, 2.3rem)/1.08 var(--font-display); letter-spacing: -.022em; }
.hp__meta { color: var(--muted); font-size: 15px; }
.hp__area { font: 400 clamp(1.4rem, 2vw, 1.9rem)/1 var(--font-display); letter-spacing: -.02em; margin-top: 6px; }
.hp__area small { font-size: .55em; color: var(--muted); letter-spacing: 0; }
.hp .link-arrow { margin-top: 14px; justify-self: start; }
@media (max-width: 900px) {
  .hp__big { grid-column: 1 / -1; }
  .hp__small { grid-column: 6 / -1; margin: -18% 0 0; box-shadow: 0 18px 50px rgba(0,0,0,.18); }
  .hp__body { grid-column: 1 / -1; margin-top: 20px; }
}

/* ---------- home + O Grupo: own portfolio */
.port { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: clamp(48px, 6vw, 88px); }
@media (max-width: 1100px) { .port { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.port-stat { display: grid; grid-template-columns: auto 1fr; column-gap: clamp(18px, 2.4vw, 32px); align-items: end;
  margin: clamp(28px, 3.6vw, 44px) 0 clamp(24px, 3vw, 36px); padding-left: clamp(16px, 1.8vw, 24px); border-left: 3px solid var(--accent); }
.port-stat__pre { grid-column: 1; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.port-stat__n { grid-column: 1; font: 400 clamp(2.8rem, 6.4vw, 5.4rem)/.95 var(--font-display); letter-spacing: -.03em; color: var(--text); white-space: nowrap; }
.port-stat__n small { font-size: .42em; letter-spacing: 0; color: var(--muted); }
.port-stat__x { grid-column: 2; grid-row: 1 / span 2; align-self: end; max-width: 34ch; color: var(--muted); font-size: 15px; line-height: 1.5; padding-bottom: .5em; }
@media (max-width: 640px) { .port-stat { grid-template-columns: 1fr; } .port-stat__x { grid-column: 1; grid-row: auto; padding: 12px 0 0; } }
.port__item { border-top: 1px solid var(--line); padding-top: 22px; }
.port__item h3 { font: 400 clamp(1.3rem, 2vw, 1.7rem)/1.2 var(--font-display); letter-spacing: -.015em; margin-bottom: 8px; }
.port__item p { color: var(--muted); font-size: 15px; }

/* ---------- Projects page: project details (São Bento Residences, Quinta de São Bento) */
.fichas { display: grid; gap: clamp(88px, 11vw, 160px); margin-top: clamp(48px, 6vw, 96px); }
.ficha__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: start; }
.ficha__main, .ficha__plan { grid-column: 1 / span 7; }
.ficha__main { --ar: 5 / 4; }
.ficha__body { grid-column: 9 / span 4; display: grid; gap: 12px; align-content: start; padding-top: 6px; }
.ficha__name { font: 300 clamp(2rem, 3.6vw, 3.4rem)/1.02 var(--font-display); letter-spacing: -.03em; }
.ficha__name::before { content: ""; display: block; width: 28px; height: 2px; background: var(--accent); margin-bottom: 20px; }
.ficha__meta { color: var(--muted); font-size: 15px; }
.ficha__desc { font-size: 17px; line-height: 1.6; margin-top: 8px; }
.ficha__types { color: var(--muted); font-size: 15px; margin-top: 6px; }   /* owner, 27 Nov 2026: unit types by lot, one quiet line */
.ficha__figure { font: 400 clamp(1.15rem, 1.7vw, 1.45rem)/1.3 var(--font-display); letter-spacing: -.01em; padding: 14px 0; border-block: 1px solid var(--line); margin-top: 6px; }
.ficha__body .btn { justify-self: start; margin-top: 14px; }
.ficha__mail { font-size: 14px; color: var(--muted); }
.ficha__thumbs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 24px; }
.ficha__thumb { --ar: 4 / 3; }
.ficha__thumbs--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 14px; }
.ficha__thumb--int { --ar: 16 / 10; }
.ficha__sublabel { margin-top: clamp(32px, 4vw, 52px); }
.ficha__plan .ph__frame { display: block; aspect-ratio: auto; background: #fff; border: 1px solid var(--line); }
.ficha__plan .ph__frame img { height: auto; object-fit: contain; }
.ficha__plan figcaption { margin-top: 14px; }
.ficha__plan > .ph__cap { z-index: 4; }
.ficha__plan .link-arrow { margin-top: 0; font-size: 14px; }
.lots { display: grid; gap: 0; margin-top: 10px; border-top: 1px solid var(--line); }
.lots li { display: grid; grid-template-columns: 16px 64px 1fr; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.lot__swatch { width: 16px; height: 16px; border-radius: 4px; border: 1px solid rgba(21, 24, 28, .25); }
.lot__n { font-weight: 500; }
.lot__use { color: var(--muted); }
/* owner, 20 Nov 2026: the lot legend sits under the plan, small and compact, in two columns */
.lots--legend { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; margin: 0 0 14px; border-top: 0; }
.lots--legend li { grid-template-columns: 10px auto 1fr; gap: 8px; padding: 6px 0; font-size: 12.5px; border-bottom: 1px solid var(--line); }
.lots--legend .lot__swatch { width: 10px; height: 10px; border-radius: 3px; }
@media (max-width: 640px) { .lots--legend { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Projects page: other projects in development, dark band */
.dev { margin-top: clamp(96px, 12vw, 170px); padding-block: clamp(64px, 8vw, 110px) clamp(40px, 5vw, 64px); background: var(--dark); color: var(--on-dark); }
.dev__label { color: var(--on-dark-muted); }
/* other projects in development: one ordered row per project, pictures whole and aligned */
.devrows { display: grid; gap: clamp(56px, 7vw, 104px); margin-top: clamp(28px, 3.5vw, 48px); }
.devrow { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; padding-top: clamp(28px, 3.5vw, 44px); border-top: 1px solid var(--line-dark); }
.devrow__info { grid-column: 1 / span 3; align-self: start; position: sticky; top: calc(var(--header-h) + 96px); display: grid; gap: 10px; }
.devrow__name { font: 300 clamp(1.6rem, 2.6vw, 2.4rem)/1.08 var(--font-display); letter-spacing: -.02em; margin-top: 8px; }
.devrow__meta { font-size: 14px; color: var(--on-dark-muted); line-height: 1.5; }
.devrow__media { grid-column: 5 / span 8; display: grid; gap: 12px; }
.devrow__row { display: flex; gap: 12px; }
.dimg { margin: 0; position: relative; overflow: hidden; border-radius: var(--r-md); background: #262b30; min-width: 0; }
.dimg img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--ease); }
.dimg:hover img { transform: scale(1.02); }
.dimg .ph__cap { left: 10px; top: 10px; }
.devrow__row .dimg .ph__cap { font-size: 9.5px; padding: 5px 8px; }
.hs__ph.ph--sm { --h: min(34vh, 330px) !important; }

/* ---------- Track Record: section tabs (Obra Realizada / Em Desenvolvimento) */
.tabs {
  position: sticky; top: var(--header-h); z-index: 30;
  background: rgba(var(--bg-rgb), .9); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.tabs__inner { display: flex; gap: 6px; padding-block: 12px; }
html:has(.tabs) { scroll-padding-top: calc(var(--header-h) + 70px); }
.tabs__link {
  position: relative; display: inline-flex; align-items: baseline; gap: 6px; min-height: 44px; align-items: center;
  padding: 0 20px; border-radius: 100px; text-decoration: none; font: 500 15px/1 var(--font); color: var(--muted);
  border: 1px solid transparent; transition: color .3s, background .3s, border-color .3s;
}
.tabs__link sup { font-size: 11px; font-weight: 500; color: var(--muted); top: -.5em; }
.tabs__link:hover { color: var(--text); }
.tabs__link[aria-current="true"] { color: var(--text); background: var(--surface); border-color: var(--line); }
.tabs__link[aria-current="true"]::after { content: ""; position: absolute; left: 20px; bottom: 9px; width: 14px; height: 2px; background: var(--accent); }

/* ---------- Track Record: completed projects as editorial spreads */
.spreads { margin-top: clamp(56px, 7vw, 112px); display: grid; gap: clamp(110px, 13vw, 210px); }
.spread__head {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: end;
  padding-bottom: 22px; margin-bottom: clamp(28px, 3.4vw, 52px); border-bottom: 1px solid var(--line);
}
.spread__name { grid-column: 1 / span 8; font: 300 clamp(1.8rem, 3.4vw, 3.2rem)/1.05 var(--font-display); letter-spacing: -.025em; }
.spread__name::before { content: ""; display: block; width: 28px; height: 2px; background: var(--accent); margin-bottom: 22px; }
.spread__meta { grid-column: 9 / span 4; justify-self: end; text-align: right; font-size: 14px; color: var(--muted); line-height: 1.5; }

/* caption on the image itself: visualisations, presentation images, plans */
.ph__cap {
  position: absolute; left: 12px; top: 12px; z-index: 3; padding: 6px 10px; border-radius: 100px; pointer-events: none;
  font: 500 10.5px/1 var(--font); letter-spacing: .1em; text-transform: uppercase; color: #fff;
  background: rgba(18, 21, 25, .55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.project__img .ph__cap, .project__inset .ph__cap { left: 10px; top: 10px; }
.project__inset .ph__cap { font-size: 9.5px; padding: 5px 8px; }

.ph { margin: 0; position: relative; --rot: 0deg; transform: translate3d(0, var(--py, 0px), 0) rotate(var(--rot)); }
.ph__frame { position: relative; overflow: hidden; border-radius: var(--r-lg); background: var(--surface-2); aspect-ratio: var(--ar, 4 / 3); }
.ph__frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.8s var(--ease); }
.ph:hover .ph__frame img { transform: scale(1.03); }

.spread__media { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: start; }
.spread__media .ph { grid-row: 1; }

/* duo: large photograph, presentation image layered across its corner */
.spread--duo .ph--1 { grid-column: 1 / span 8; --ar: 5 / 4; }
.spread--duo .ph--2 { grid-column: 8 / span 5; margin-top: 34%; --ar: 4 / 5; --rot: 2deg; }
.spread--duo-r .ph--1 { grid-column: 5 / span 8; --ar: 5 / 4; }
.spread--duo-r .ph--2 { grid-column: 1 / span 5; margin-top: 34%; --ar: 4 / 5; --rot: -2deg; }
/* column: tall portrait beside a wide view, third picture layered below */
.spread--column .ph--1 { grid-column: 1 / span 5; grid-row: 1 / span 2; --ar: 3 / 4; }
.spread--column .ph--2 { grid-column: 6 / span 7; --ar: 4 / 3; }
.spread--column .ph--3 { grid-column: 8 / span 4; grid-row: 2; margin-top: -9%; --ar: 5 / 4; --rot: -2deg; }
.spread--column-r .ph--1 { grid-column: 8 / span 5; grid-row: 1 / span 2; --ar: 3 / 4; }
.spread--column-r .ph--2 { grid-column: 1 / span 7; --ar: 3 / 2; }
.spread--column-r .ph--3 { grid-column: 2 / span 4; grid-row: 2; margin-top: -10%; --ar: 4 / 5; --rot: 2deg; }
/* wide: panoramic aerial, two pictures beneath, one layered over its edge */
.spread--wide .ph--1 { grid-column: 1 / -1; --ar: 21 / 9; }
.spread--wide .ph--2 { grid-column: 2 / span 5; grid-row: 2; margin-top: -11%; --ar: 3 / 2; --rot: -1.6deg; }
.spread--wide .ph--3 { grid-column: 9 / span 4; grid-row: 2; margin-top: 3vw; --ar: 4 / 5; }
/* trio: wide night view, aerial layered in from the left, photograph below right */
.spread--trio .ph--1 { grid-column: 4 / span 9; --ar: 16 / 9; }
.spread--trio .ph--2 { grid-column: 1 / span 5; margin-top: 30%; --ar: 4 / 3; --rot: -2.2deg; }
.spread--trio .ph--3 { grid-column: 7 / span 5; grid-row: 2; margin-top: 4vw; --ar: 4 / 3; }
/* mosaic (four): aerial, top view, photograph layered, panoramic strip */
.spread--mosaic .ph--1 { grid-column: 1 / span 8; --ar: 16 / 10; }
.spread--mosaic .ph--2 { grid-column: 9 / span 4; margin-top: 14%; --ar: 4 / 5; }
.spread--mosaic .ph--3 { grid-column: 2 / span 4; grid-row: 2; margin-top: -12%; --ar: 4 / 3; --rot: -2deg; }
.spread--mosaic .ph--4 { grid-column: 6 / span 7; grid-row: 2; margin-top: 4vw; --ar: 21 / 9; }
/* pair: portrait presentation image beside an offset, tilted second view */
.spread--pair .ph--1 { grid-column: 2 / span 5; --ar: 4 / 5; }
.spread--pair .ph--2 { grid-column: 7 / span 5; margin-top: 22%; --ar: 5 / 4; --rot: 1.8deg; }
.spread--pair-r .ph--1 { grid-column: 7 / span 5; --ar: 4 / 5; }
.spread--pair-r .ph--2 { grid-column: 2 / span 5; margin-top: 22%; --ar: 4 / 3; --rot: -1.8deg; }
/* stagger: portrait, a wide picture set lower, a framed portrait layered beneath */
.spread--stagger .ph--1 { grid-column: 1 / span 5; --ar: 4 / 5; }
.spread--stagger .ph--2 { grid-column: 6 / span 7; margin-top: 20%; --ar: 3 / 2; }
.spread--stagger .ph--3 { grid-column: 8 / span 4; grid-row: 2; margin-top: -6%; --ar: 4 / 5; --rot: 1.8deg; }
.spread--duo .ph--2, .spread--column .ph--3, .spread--column-r .ph--3, .spread--wide .ph--2, .spread--stagger .ph--3,
.spread--trio .ph--2, .spread--mosaic .ph--3, .spread--pair .ph--2, .spread--pair-r .ph--2, .spread--duo-r .ph--2 { z-index: 2; }
.spread--duo-r .ph--2 .ph__frame,
.spread--duo .ph--2 .ph__frame, .spread--column .ph--3 .ph__frame, .spread--column-r .ph--3 .ph__frame, .spread--wide .ph--2 .ph__frame, .spread--stagger .ph--3 .ph__frame,
.spread--trio .ph--2 .ph__frame, .spread--mosaic .ph--3 .ph__frame, .spread--pair .ph--2 .ph__frame, .spread--pair-r .ph--2 .ph__frame {
  border: var(--frame) solid var(--bg); border-radius: calc(var(--r-md) + var(--frame)); box-shadow: var(--lift);
}
.spread--duo .ph--2 img, .spread--column .ph--3 img, .spread--column-r .ph--3 img, .spread--wide .ph--2 img, .spread--stagger .ph--3 img,
.spread--trio .ph--2 img, .spread--mosaic .ph--3 img, .spread--pair .ph--2 img, .spread--pair-r .ph--2 img, .spread--duo-r .ph--2 img { border-radius: var(--r-md); }
.note { margin-top: clamp(56px, 6vw, 88px); max-width: 70ch; font-size: 13px; color: var(--muted); }
.note--dark { color: var(--on-dark-muted); }

/* ---------- Track Record: projects in development, one long horizontal gallery */
.dev { overflow-x: clip; }   /* clip, not hidden: hidden would break the sticky gallery */
.dev .ph__frame { background: #262b30; }
.hs { margin-top: clamp(48px, 6vw, 96px); position: relative; }
.hs__track {
  display: flex; align-items: center; gap: clamp(64px, 8vw, 140px); width: 100%;
  padding: 24px var(--gutter) 30px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  -webkit-overflow-scrolling: touch; outline: none;
}
.hs__track::-webkit-scrollbar { display: none; }
.hs__group { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 40px); flex: none; }
.hs__intro { flex: none; width: clamp(220px, 22vw, 320px); align-self: stretch; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; padding-bottom: 6vh; scroll-snap-align: start; }
.hs__rule { display: block; width: 28px; height: 2px; background: var(--accent); }
.hs__name { font: 300 clamp(1.6rem, 2.6vw, 2.4rem)/1.08 var(--font-display); letter-spacing: -.02em; margin-top: 8px; }
.hs__meta { font-size: 14px; color: var(--on-dark-muted); line-height: 1.5; }
.dev .project__stage { color: var(--on-dark); margin-top: 6px; }
.hs__ph { flex: none; scroll-snap-align: center; }
.hs__ph .ph__frame { height: var(--h); width: auto; aspect-ratio: var(--ar); }
.hs__ph--1 { --h: min(64vh, 640px); --ar: 4 / 3; }
.hs__ph--2 { --h: min(48vh, 480px); --ar: 4 / 5; align-self: flex-end; --rot: 1.6deg; }
.hs__ph--3 { --h: min(42vh, 430px); --ar: 3 / 2; align-self: flex-start; }
.hs__ph--4 { --h: min(52vh, 520px); --ar: 1 / 1; --rot: -1.4deg; }
.hs__foot { display: flex; align-items: center; gap: 24px; margin-top: 8px; }
.hs__hint { font: 500 11px/1 var(--font); letter-spacing: .18em; text-transform: uppercase; color: var(--on-dark-muted); white-space: nowrap; }
.hs__bar { flex: 1; height: 1px; background: var(--line-dark); position: relative; overflow: hidden; }
.hs__bar span { position: absolute; inset: 0; background: var(--on-dark); transform-origin: 0 50%; transform: scaleX(var(--hsp, .08)); }
/* desktop: the gallery is pinned and moved by the vertical scroll (set by main.js) */
.hs--pinned .hs__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-top: calc(var(--header-h) + 60px); }
.hs--pinned .hs__ph--1 { --h: min(56vh, 600px); }
.hs--pinned .hs__ph--2 { --h: min(44vh, 460px); }
.hs--pinned .hs__ph--3 { --h: min(38vh, 400px); }
.hs--pinned .hs__ph--4 { --h: min(46vh, 480px); }
.hs--pinned .hs__track { overflow: visible; width: max-content; scroll-snap-type: none; will-change: transform; transform: translate3d(var(--hsx, 0px), 0, 0); }

.segments { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: clamp(56px, 7vw, 104px); }
.segment { border-top: 1px solid var(--line); padding-top: 22px; }
.segment__n { font: 300 clamp(3.2rem, 6.5vw, 6rem)/1 var(--font-display); letter-spacing: -.04em; margin: 18px 0 14px; }
.segment__n span { font: 400 16px/1 var(--font); letter-spacing: 0; color: var(--muted); margin-left: 10px; }
.segment__w { color: var(--muted); font-size: 15px; }

/* ---------- opportunities */
/* proposals: light section, the model photograph in a rounded panel, no dark veil over it */
.opp-section { background: var(--surface-2); }
.opp-section__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: center; }
.opp-section__inner { grid-column: 1 / span 6; }
.opp-section__media { grid-column: 8 / span 5; align-self: stretch; min-height: 420px; position: relative; overflow: hidden; border-radius: var(--r-lg); }
.opp-section__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 55%; }
.opp-section .display-2 { margin-top: 28px; max-width: 18ch; }
.opps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin: clamp(48px, 6vw, 80px) 0 44px; }
.opp { border-top: 1px solid var(--line); padding-top: 22px; }
.opp h3 { font: 400 1.25rem/1.25 var(--font-display); margin-bottom: 10px; }
.opp p { color: var(--muted); font-size: 15px; }

/* ---------- dark image band (contact) */
.band { position: relative; color: var(--on-dark); background: var(--dark-2); overflow: hidden; }
.band__media { position: absolute; inset: 0; }
.band__media img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 60%; }
/* closing band: the veil sits only behind the text; the courtyard stays visible on the right */
.band__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14, 17, 24, .66) 0%, rgba(14, 17, 24, .38) 34%, rgba(14, 17, 24, 0) 62%); }
.band__inner { position: relative; padding-block: clamp(112px, 16vw, 230px); }
.band .lead { color: rgba(238, 240, 242, .8); }
.band__actions { margin-top: 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 28px; }

/* ---------- inner page heads */
.page-head { padding: calc(var(--header-h) + clamp(72px, 12vw, 180px)) 0 clamp(48px, 6vw, 96px); position: relative; }
.page-head .display-1 { margin-top: 26px; max-width: 13ch; }
.page-head .display-1 em { color: var(--muted); }
.page-head__intro { margin-top: 36px; }
/* light architectural image behind the heading, soft light veil from the left */
.page-head--image { min-height: 82vh; display: flex; align-items: flex-end; background: var(--surface-2); }
.page-head--image .display-1 em { color: var(--muted); }
.page-head__media { position: absolute; inset: 0; }
.page-head__media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.page-head__media::after { content: ""; position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(var(--bg-rgb), .9) 0%, rgba(var(--bg-rgb), .55) 34%, rgba(var(--bg-rgb), 0) 62%),
  linear-gradient(0deg, rgba(var(--bg-rgb), .7) 0%, rgba(var(--bg-rgb), 0) 40%); }
.page-head__inner { position: relative; }
/* dark variant (O Grupo): a real building at dusk, white type, red accent */
.page-head--dark { background: #14171b; color: #fff; }
.page-head--dark .page-head__media img { object-position: 44% 55%; }   /* new Infantado dusk image: keep the canopy tip in view */
.page-head--dark .page-head__media::after { background:
  linear-gradient(90deg, rgba(12, 14, 18, .84) 0%, rgba(12, 14, 18, .52) 36%, rgba(12, 14, 18, 0) 64%),
  linear-gradient(0deg, rgba(12, 14, 18, .78) 0%, rgba(12, 14, 18, 0) 46%); }
.page-head--dark .display-1 { color: #fff; }
.page-head--dark .display-1 em { color: rgba(255, 255, 255, .7); }
.page-head--dark .label { color: rgba(255, 255, 255, .82); }
.page-head--dark .page-head__inner::before { content: ""; display: block; width: 48px; height: 3px; background: var(--accent); margin-bottom: 22px; border-radius: 2px; }

.mv { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); }
.mv__item .display-3 { margin-top: 26px; max-width: 24ch; }
.quote { margin-top: clamp(64px, 8vw, 120px); padding-left: clamp(0px, 25vw, 360px); }
.quote p { font: 300 clamp(1.6rem, 3vw, 2.75rem)/1.2 var(--font-display); letter-spacing: -.02em; max-width: 26ch; }
.quote p::before { content: ""; display: block; width: 40px; height: 2px; background: var(--accent); margin-bottom: 28px; }
.other { margin-top: clamp(56px, 7vw, 96px); padding-top: 28px; border-top: 1px solid var(--line); }
.other a { text-decoration: underline; }

/* ---------- contact page */
.contact__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 7vw, 120px); align-items: start; }
.contact__details .display-3 { margin: 22px 0 32px; }
.contact__details dl { display: grid; gap: 6px; }
.contact__details dt { font: 500 12px/1.4 var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 18px; }
.contact__details dd { margin: 0; font-size: 18px; }
.contact__form { background: var(--surface); padding: clamp(28px, 4vw, 56px); border: 1px solid var(--line); }
.form { margin-top: 32px; display: grid; gap: 26px; }
.field label { display: block; font-size: 13px; font-weight: 500; color: var(--muted); margin-bottom: 8px; }
.field input:not([type="checkbox"]), .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 10px 0; background: transparent; border: 0; border-bottom: 1px solid var(--line);
  border-radius: 0; font-size: 17px; transition: border-color .3s;
}
.field select { cursor: pointer; }
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--text); }
.field--check { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; }
.field--check input { width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--accent); }
.field--check label { margin: 0; font-weight: 400; font-size: 14px; color: var(--muted); }
.field--check .field__err { grid-column: 2; }
.field__err { color: var(--accent); font-size: 13px; margin-top: 6px; min-height: 0; }
.field.is-invalid input, .field.is-invalid textarea { border-bottom-color: var(--accent); }
.form .btn { justify-self: start; margin-top: 6px; }
.form__help { font-size: 13px; color: var(--muted); max-width: 52ch; margin-top: -8px; }
.form-ok { margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--line); }
.form-ok .display-3 { margin-bottom: 14px; }
.form-ok:focus { outline: none; }

/* ---------- footer */
.site-footer { background: var(--surface-2); padding: clamp(64px, 8vw, 112px) 0 32px; font-size: 15px; }
.site-footer__grid { display: grid; grid-template-columns: 2fr 1.3fr 1fr 1fr; gap: 40px; }
.site-footer__brand img { width: 128px; height: auto; }
.site-footer__brand p { margin-top: 22px; color: var(--muted); max-width: 30ch; }
.site-footer .label { margin-bottom: 14px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer__links { display: grid; gap: 8px; }
.site-footer__base { margin-top: clamp(56px, 7vw, 96px); padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 12px 40px; justify-content: space-between; font-size: 13px; color: var(--muted); }

/* ---------- entrances (visible at rest if JavaScript is off) */
.js [data-reveal] { opacity: 0; transform: translate3d(0, 28px, 0); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js .project[data-reveal] .project__img { clip-path: inset(12% 0 0 0); transition: clip-path 1.4s var(--ease); }
.js .project[data-reveal].is-in .project__img { clip-path: inset(0 0 0 0); }
.js .opp-section__media[data-reveal] { transform: none; }

/* ---------- responsive */
@media (max-width: 900px) {
  .hero { height: auto; }
  .hero__stage { position: relative; height: 100svh; min-height: 560px; }
  .hero__media, .hero__img { object-position: 60% 50%; }
  .hero__video { display: none; }
  .hero__scrim { background:
    linear-gradient(0deg, rgba(var(--bg-rgb), .9) 0%, rgba(var(--bg-rgb), .58) 40%, rgba(var(--bg-rgb), .06) 72%, rgba(var(--bg-rgb), .12) 100%); }
  .hero__content { transform: none; opacity: 1; }
  .hero__scroll { display: none; }
  .col-label, .col-main { grid-column: 1 / -1; }
  .col-label { padding-top: 0; }
  .figures, .segments, .opps { grid-template-columns: 1fr; }
  .opps { max-width: none; }
  .area { grid-template-columns: 1fr; row-gap: 6px; }
  .area__n, .area__t, .area__x { grid-column: 1; }
  .track__grid > .project { grid-column: 1 / -1 !important; margin-top: 0 !important; }
  .project__inset { width: 38%; right: -2%; }
  .project--h2 .project__inset, .project--h3 .project__inset, .project--h4 .project__inset { left: -2%; width: 44%; }
  .track__grid .project figcaption { padding-right: 42%; }
  .track__grid .project--h2 figcaption, .track__grid .project--h3 figcaption, .track__grid .project--h4 figcaption { padding: 18px 0 0 48%; }
  .track__grid { row-gap: 64px; }
  .spreads { gap: 72px; }
  :root { --r-lg: 16px; --r-md: 12px; --frame: 6px; }
  /* spreads become a swipeable strip of pictures */
  .spread__head { grid-template-columns: 1fr; row-gap: 8px; }
  .spread__name, .spread__meta { grid-column: 1; justify-self: start; text-align: left; }
  .tabs__link { font-size: 14px; padding-inline: 14px; }
  .spread__media {
    display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-inline: calc(var(--gutter) * -1); padding: 6px var(--gutter) 14px;
  }
  .spread__media::-webkit-scrollbar { display: none; }
  .spread__media .ph { flex: 0 0 84%; margin-top: 0 !important; --rot: 0deg !important; transform: none; scroll-snap-align: center; }
  .spread__media .ph .ph__frame { border: 0 !important; box-shadow: none !important; border-radius: var(--r-lg) !important; }
  .spread__media .ph img { border-radius: 0 !important; }
  .hs__ph { --rot: 0deg !important; transform: none; }
  .hs__ph .ph__frame { --h: clamp(240px, 64vw, 420px); height: var(--h); }
  .hs__ph--2, .hs__ph--3 { align-self: center; }
  .hs__intro { padding-bottom: 0; width: 70vw; }
  .hs__track { gap: 48px; }
  .opp-section__inner, .opp-section__media { grid-column: 1 / -1; }
  .opp-section__media { min-height: 0; aspect-ratio: 4 / 3; margin-top: 40px; order: 2; }
  .band__media img { object-position: 74% 60%; }
  .band__media::after { background: linear-gradient(0deg, rgba(14, 17, 24, .78) 0%, rgba(14, 17, 24, .5) 45%, rgba(14, 17, 24, .08) 78%); }
  .band__inner { padding-top: 46vh; padding-bottom: 72px; }
  .feature__media, .feature__body { grid-column: 1 / -1; }
  .feature__body { margin-top: 20px; }
  .port { grid-template-columns: 1fr; gap: 18px; }
  .ficha__main, .ficha__plan, .ficha__body { grid-column: 1 / -1; }
  .ficha__body { margin-top: 28px; }
  .ficha__thumbs { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 78%; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
  .ficha__thumb { scroll-snap-align: start; }
  .devrow__info, .devrow__media { grid-column: 1 / -1; }
  .devrow__info { position: static; margin-bottom: 20px; }
  .devrow__row { gap: 8px; }
  .devrow__row .dimg .ph__cap { font-size: 8.5px; padding: 4px 6px; left: 6px; top: 6px; letter-spacing: .06em; }
  /* the plan stays legible on a phone: shown larger inside a frame that scrolls sideways */
  .ficha__plan .ph__frame { overflow-x: auto; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
  .ficha__plan .ph__frame img { width: 260%; max-width: none; }
  .mv, .contact__grid { grid-template-columns: 1fr; }
  .quote { padding-left: 0; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .site-footer__brand { grid-column: 1 / -1; }
  .page-head--image { min-height: 70svh; }
}
@media (max-width: 520px) {
  .site-footer__grid { grid-template-columns: 1fr; }
  .hero__actions .btn { flex: 1 1 100%; }
}
@media (hover: none) {
  .hero { height: auto; }
  .hero__stage { position: relative; }
  .hero__video { display: none; }
  .hero__content { transform: none; opacity: 1; }
}
/* Rua Alexandre Ferreira model: a slow band of warm late-afternoon light drifts across it */
.ph__frame:has(img[src*="af-maqueta"])::after {
  content: ""; position: absolute; inset: -10% -70%; pointer-events: none; z-index: 1;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 186, 120, .42) 50%, transparent 62%);
  mix-blend-mode: soft-light;
  animation: model-light 11s ease-in-out -4s infinite alternate;
}
@keyframes model-light { from { transform: translateX(-26%); } to { transform: translateX(26%); } }

/* ---------- home: refurbishment (text and figure on the left; the estate wide on the right, two apartments below, the second set lower) */
.rehab__body { margin-top: clamp(40px, 5vw, 72px); align-items: start; }
.rehab__copy { grid-column: 1 / span 4; position: sticky; top: 120px; }
.rehab__copy .lead { max-width: 34ch; }
.rehab__copy .port-stat { margin-top: 0; }
.rehab__media { grid-column: 5 / span 8; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2vw, 28px); align-items: start; }
.rehab__ph--1 { grid-column: 1 / -1; }
.rehab__ph--3 { margin-top: 14%; }
.rehab__frame { overflow: hidden; border-radius: var(--r-md); aspect-ratio: 1 / 1; background: var(--surface-2); }
.rehab__ph--1 .rehab__frame { aspect-ratio: 16 / 10; }
.rehab__ph--1 .rehab__frame img { object-position: 50% 58%; }
.rehab__frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.rehab__ph:hover .rehab__frame img { transform: scale(1.04); }
/* owner, 27 Nov 2026: the pictures link to their projects */
a.rehab__link { display: block; color: inherit; text-decoration: none; }
a.rehab__link:hover figcaption, a.rehab__link:focus-visible figcaption { color: var(--text); }
.rehab__ph figcaption { margin-top: 12px; font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 10px; }
.rehab__ph figcaption::before { content: ""; width: 16px; height: 2px; background: var(--accent); flex: none; }
.rehab__ph figcaption { white-space: nowrap; }
@media (min-width: 641px) and (max-width: 1100px) { .rehab__ph figcaption { font-size: 12px; } }
.rehab__ph--3 .rehab__frame img { object-position: 42% 50%; }
@media (max-width: 900px) {
  .rehab__copy, .rehab__media { grid-column: 1 / -1; position: static; }
  .rehab__ph--3 { margin-top: 10%; }
}
@media (max-width: 640px) {
  /* one picture per row on phones, so each caption stays on a single line */
  .rehab__media { grid-template-columns: minmax(0, 1fr); }
  .rehab__ph--1 figcaption { white-space: normal; }
  .rehab__ph--3 { margin-top: 0; }
  .rehab__ph--2 .rehab__frame, .rehab__ph--3 .rehab__frame { aspect-ratio: 4 / 3; }
}

/* ---------- home: chapter headers (owner, 20 Nov 2026): number, red rule and the chapter word in capitals
   on one line, larger and bolder than an ordinary label; the title beside it, framed in balanced lines;
   the text below lines up under the title */
.chapter { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 20px; align-items: start; }
/* owner, 20 Nov 2026 (later): nothing else on the chapter line; the title starts on the next line, and the text below
   lines up on the left with it */
.chapter__label { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 14px;
  font: 600 clamp(15px, 1.5vw, 19px)/1.35 var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--text); }
.chapter__label .section-label__n { flex: none; font-weight: 500; color: var(--muted); }
.chapter__title { grid-column: 1 / span 9; font: 300 clamp(1.7rem, 2.9vw, 2.75rem)/1.12 var(--font-display); letter-spacing: -.022em;
  color: var(--text); max-width: 26ch; text-wrap: balance; }
.chapter-body .col-main { grid-column: 1 / span 7; }
.chapter-body .col-main .link-arrow { margin-top: 28px; }
.chapter-body__wide { grid-column: 1 / -1; }
.chapter-body__wide .port-stat { margin-top: clamp(16px, 3vw, 40px); }
.section--dark .chapter__label, .section--dark .chapter__title { color: var(--on-dark); }
@media (min-width: 901px) { .other .col-label { grid-column: 1 / span 4; } .other .col-main { grid-column: 5 / span 8; } }
.chapter--stack { grid-template-columns: minmax(0, 1fr); }
.chapter--stack .chapter__label, .chapter--stack .chapter__title { grid-column: 1 / -1; }
.chapter--stack .chapter__label { padding-top: 0; }
@media (max-width: 900px) {
  .chapter__label, .chapter__title, .chapter-body .col-main { grid-column: 1 / -1; }
  .chapter__label { padding-top: 0; }
}

/* ---------- red accents (owner, 20 Nov 2026): the small presentation details carry the logo's red */
/* section numbers: the rule after "01", "02"... */
.section-label__n::after { background: var(--accent); opacity: 1; height: 2px; }
/* header: active page underline and the chosen language */
.nav__links a::after { background: var(--accent); height: 2px; }
.lang a[aria-current] { color: var(--accent); }
@media (max-width: 700px) { .nav__links a[aria-current="page"] { color: var(--accent); } }
/* arrows on "Saber mais" links */
.link-arrow::after { background: var(--accent); }
/* list numbers (Áreas de atuação, Como trabalhamos) */
.area__n { color: var(--accent); font-weight: 500; }
/* hero "scroll" cue */
.hero__scroll span::after { background: var(--accent); }
/* a short red tick on the top rule of each list item and key figure; it draws in on reveal */
.port__item, .figure, .area, .segment, .opp {
  background-image: linear-gradient(var(--accent), var(--accent)); background-repeat: no-repeat;
  background-position: 0 -1px; background-size: 28px 2px; transition: background-size .9s var(--ease) .2s;
}
.js .port__item[data-reveal]:not(.is-in), .js .area[data-reveal]:not(.is-in),
.js .figure[data-reveal]:not(.is-in), .js .segment[data-reveal]:not(.is-in), .js .opp[data-reveal]:not(.is-in) { background-size: 0 2px; }
.port__item:hover, .area:hover, .segment:hover, .opp:hover { background-size: 64px 2px; transition-delay: 0s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .hero { height: auto; }
  .hero__stage { position: relative; }
  .hero__video { display: none; }
  .hero__content { transform: none; opacity: 1; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js .project[data-reveal] .project__img { clip-path: none; }
  .ph, .project__inset { --py: 0px !important; }
}

/* ---------- hero at blue hour (owner, 20 Nov 2026: prefers the darker blue tones of the closing image).
   White type on a navy veil behind the text only; the lit canopy and olive tree stay clear on the right. */
.hero { background: #0E1A2C; }
.hero__stage { color: var(--on-dark); }
.hero__scrim { background:
  linear-gradient(90deg, rgba(8, 16, 30, .52) 0%, rgba(8, 16, 30, .32) 28%, rgba(8, 16, 30, .06) 50%, rgba(8, 16, 30, 0) 60%),
  linear-gradient(0deg, rgba(8, 16, 30, .16) 0%, rgba(8, 16, 30, 0) 18%); }   /* lighter (owner, 21 Nov 2026): the moving water shows */
.hero__title { color: #F4F6F8; text-shadow: 0 1px 2px rgba(5, 10, 20, .55), 0 6px 34px rgba(5, 10, 20, .45); }
.hero__sub { color: rgba(238, 240, 242, .92); text-shadow: 0 1px 2px rgba(5, 10, 20, .6), 0 4px 22px rgba(5, 10, 20, .5); }
.hero .btn--ghost { border-color: rgba(238, 240, 242, .55); color: var(--on-dark); background: rgba(8, 16, 30, .22); }
.hero .btn--ghost:hover { border-color: var(--on-dark); background: rgba(8, 16, 30, .45); }
.hero__scroll { color: rgba(238, 240, 242, .75); }
.hero__scroll span { background: rgba(238, 240, 242, .25); }
@media (max-width: 900px) {
  .hero__scrim { background:
    linear-gradient(0deg, rgba(8, 16, 30, .86) 0%, rgba(8, 16, 30, .55) 40%, rgba(8, 16, 30, .06) 72%, rgba(8, 16, 30, .1) 100%); }
}
/* closing band, olive detail (owner, 20 Nov 2026): calm sea under the text on the left, the trunk on the right */
.band__media img { object-position: 50% 55%; }
@media (max-width: 900px) { .band__media img { object-position: 78% 55%; } }
/* footer (owner, 20 Nov 2026): logo + company block only */
.site-footer__grid { grid-template-columns: auto auto; justify-content: start; column-gap: clamp(48px, 8vw, 120px); align-items: end; }
@media (max-width: 640px) { .site-footer__grid { grid-template-columns: 1fr; align-items: start; } }
/* Projects header (owner, 20 Nov 2026): the balconies sit to the right and a deeper veil keeps the grey half of the title legible */
.page-head--projetos-topo .page-head__media img { object-position: 70% 50%; }
/* owner, 20 Nov 2026 (later): the veil stops before the maquette, so the model reads clearly; a touch more contrast */
.page-head--projetos-topo .page-head__media::after { background:
  linear-gradient(90deg, rgba(var(--bg-rgb), .96) 0%, rgba(var(--bg-rgb), .9) 38%, rgba(var(--bg-rgb), .5) 47%, rgba(var(--bg-rgb), 0) 56%),
  linear-gradient(0deg, rgba(var(--bg-rgb), .5) 0%, rgba(var(--bg-rgb), 0) 22%); }
.page-head--projetos-topo .page-head__media img { filter: contrast(1.12) brightness(.95) saturate(1.05); }
/* the grey half of the title a shade darker, so it reads clearly over the stone */
.page-head--projetos-topo .display-1 em { color: #454B53; }
@media (max-width: 900px) {
  .page-head--projetos-topo .page-head__media img { object-position: 66% 50%; }
  /* owner, 21 Nov 2026: on tablets / narrow windows the old full-height veil washed the whole picture out;
     now only the text side is veiled, so the maquette stays clear (phones show the picture with no veil at all) */
  .page-head--projetos-topo .page-head__media::after { background:
    linear-gradient(90deg, rgba(var(--bg-rgb), .94) 0%, rgba(var(--bg-rgb), .86) 42%, rgba(var(--bg-rgb), .35) 62%, rgba(var(--bg-rgb), 0) 76%),
    linear-gradient(0deg, rgba(var(--bg-rgb), .5) 0%, rgba(var(--bg-rgb), 0) 26%); }
}
/* page-head kicker (owner, 20 Nov 2026): a short red stroke under GRUPO / PROJETOS / CONTACTOS, echoing the logo's line */
.page-head .page-head__inner > .label::after { content: ""; display: block; width: 28px; height: 2px; margin-top: 12px; background: var(--accent); border-radius: 2px; }
/* owner, 20 Nov 2026: images swapped. The home closing band now shows the stone entrance (light), so it gets a light veil,
   dark type and the red button. The Grupo header shows the blue-hour olive detail on the dark header. */
.band--stone { color: var(--text); background: var(--surface-2); }
.band--stone .band__media img { object-position: 72% 50%; }
.band--stone .band__media::after { background: linear-gradient(90deg, rgba(var(--bg-rgb), .88) 0%, rgba(var(--bg-rgb), .6) 34%, rgba(var(--bg-rgb), 0) 60%); }
.band--stone .lead { color: var(--text); }
.band--stone .btn--light { background: var(--accent); color: #fff; }
.band--stone .btn--light:hover { background: #A8070B; }
.band--stone .link-light { color: var(--text); border-bottom-color: rgba(21, 24, 28, .35); }
@media (max-width: 900px) {
  .band--stone .band__media img { object-position: 82% 50%; }
  .band--stone .band__media::after { background: linear-gradient(0deg, rgba(var(--bg-rgb), .94) 0%, rgba(var(--bg-rgb), .7) 45%, rgba(var(--bg-rgb), .05) 80%); }
}
.page-head--grupo-oliveira .page-head__media img { object-position: 20% 55%; }
.page-head--dark .page-head__inner::before { display: none; }   /* the kicker's red stroke replaces the old bar */
/* Grupo header, golden-hour olive (owner, 20 Nov 2026): keep the low-sun glow bright; a light warm veil only behind the text */
.page-head--grupo-oliveira .page-head__media::after { background:
  linear-gradient(90deg, rgba(28, 20, 10, .5) 0%, rgba(28, 20, 10, .28) 34%, rgba(28, 20, 10, 0) 58%),
  linear-gradient(0deg, rgba(28, 20, 10, .62) 0%, rgba(28, 20, 10, .2) 38%, rgba(28, 20, 10, 0) 60%); }
.page-head--grupo-oliveira .page-head__inner { text-shadow: 0 1px 2px rgba(20, 14, 6, .5), 0 4px 26px rgba(20, 14, 6, .45); }
@media (max-width: 900px) {
  .page-head--grupo-oliveira .page-head__media img { object-position: 3% 55%; }
  .page-head--grupo-oliveira .page-head__media::after { background: linear-gradient(0deg, rgba(28, 20, 10, .78) 0%, rgba(28, 20, 10, .4) 50%, rgba(28, 20, 10, .05) 85%); }
}

/* devrow note (owner, 20 Nov 2026): one short location line, e.g. Almoinhas near the hospital */
.devrow__note { font-size: 14px; line-height: 1.5; color: var(--on-dark); }

/* "Também em desenvolvimento" band (owner, 20 Nov 2026: back to black; it must read as part of chapter 01, not a separate category).
   It follows the fichas directly, and its label matches the chapter label: red stroke, capitals. */
.dev { margin-top: clamp(56px, 7vw, 96px); }
.dev__label { display: flex; align-items: center; gap: 14px; font: 600 clamp(15px, 1.5vw, 19px)/1.35 var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark); }
.dev__label::before { content: ""; width: 28px; height: 2px; background: var(--accent); border-radius: 2px; flex: none; }/* dark band head (owner, 20 Nov 2026): same pattern as the chapters - red stroke + "EM DESENVOLVIMENTO", then the title "Outros projetos." */
.dev__head { display: grid; gap: 18px; }
.dev__title { font: 300 clamp(1.7rem, 2.9vw, 2.75rem)/1.12 var(--font-display); letter-spacing: -.02em; color: var(--on-dark); margin: 0; }

/* logo (owner chose option 1, 20 Nov 2026): the stacked logo larger so "Alextoma" reads, with room around it */
:root { --header-h: 104px; }
.brand img { height: 88px; }
.site-footer__brand img { width: 168px; }
@media (max-width: 700px) {
  :root { --header-h: 78px; }
  .brand img { height: 64px; }
}

/* footer social links (owner, 20 Nov 2026) */
/* owner, 27 Nov 2026: the same effect as dabliu.pt - rounded tiles that pop in, then lift, grow and take the
   network's own colours on hover, with the name under each tile */
/* owner, 27 Nov 2026 (later): about half the first size */
.social { list-style: none; margin: 22px 0 0; padding: 0; display: flex; gap: 18px; }
.site-footer .social a, .site-footer .social a:hover { text-decoration: none; }
.social__link { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 44px; color: var(--text); }
.social__tile {
  width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
  background: var(--surface); color: var(--text); border: 1.5px solid rgba(var(--accent-rgb), .28);
  transition: transform .4s ease, background .4s ease, border-color .4s ease, box-shadow .4s ease, color .4s ease;
}
.social__tile svg { flex: none; }
.social__name { font-size: 12px; font-weight: 600; color: var(--muted); transition: color .4s ease; }
.social__link:hover .social__tile, .social__link:focus-visible .social__tile {
  transform: translateY(-4px) scale(1.1); color: #fff; box-shadow: 0 8px 20px rgba(var(--accent-rgb), .32);
}
.social__link--ig:hover .social__tile, .social__link--ig:focus-visible .social__tile {
  background: linear-gradient(45deg, #F09433 0%, #E6683C 25%, #DC2743 50%, #CC2366 75%, #BC1888 100%); border-color: #BC1888;
}
.social__link--fb:hover .social__tile, .social__link--fb:focus-visible .social__tile { background: #1877F2; border-color: #1877F2; }
.social__link:hover .social__name, .social__link:focus-visible .social__name { color: var(--text); }
@media (max-width: 900px) { .social__name { font-size: 13px; } } /* D12: nothing smaller than 13 px on phones */
.social__link:focus-visible { outline: none; }
.social__link:focus-visible .social__tile { outline: 2px solid var(--accent); outline-offset: 3px; }
/* pop-in when the footer comes into view (the list itself does not slide) */
.js .social[data-reveal] { transform: none; }
.js .social[data-reveal] li { transform: scale(.8); opacity: 0; transition: transform .4s ease, opacity .4s ease; }
.js .social[data-reveal] li:nth-child(2) { transition-delay: .1s; }
.js .social[data-reveal].is-in li { transform: none; opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .js .social[data-reveal] li { transform: none; opacity: 1; transition: none; }
  .social__tile { transition: none; }
  .social__link:hover .social__tile, .social__link:focus-visible .social__tile { transform: none; }
}

/* phone fixes (owner, 20 Nov 2026) */
@media (max-width: 900px) {
  /* home project cards: the small picture sits inside the corner of the main one, so it never covers the text */
  .track__grid .project__inset,
  .track__grid--list .project--h2 .project__inset,
  .track__grid--list .project--h3 .project__inset { left: auto !important; right: 10px !important; bottom: 10px !important; width: 36% !important; transform: none !important; }
  .track__grid .project figcaption,
  .track__grid .project--h2 figcaption, .track__grid .project--h3 figcaption, .track__grid .project--h4 figcaption,
  .track__grid--list .project--h2 figcaption { padding: 16px 0 0 0 !important; }
  /* subdivision plan: whole, at the width of the screen, no zoom */
  .ficha__plan .ph__frame { overflow: hidden; }
  .ficha__plan .ph__frame img { width: 100%; max-width: 100%; height: auto; }
  /* completed projects: every picture in the sideways strip has the same size */
  .spread__media .ph .ph__frame { aspect-ratio: 4 / 3 !important; }
}

/* phones (owner, 20 Nov 2026: the opening image looked too zoomed in). Large images no longer fill a tall screen behind
   the text (that crops a wide picture to a narrow slice); they show at a 4:3 window on top and the text follows below. */
@media (max-width: 700px) {
  .hero { height: auto; background: #0E1A2C; }
  .hero__stage { position: relative; height: auto; min-height: 0; overflow: visible; display: flex; flex-direction: column; padding-top: var(--header-h); }
  .hero__media { position: relative; inset: auto; width: 100%; height: auto; aspect-ratio: 4 / 3; overflow: hidden; }
  .hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-position: 62% 50%; animation: none; transform: none; }
  .hero__scrim, .hero__scroll { display: none; }
  .hero__content { position: relative; inset: auto; padding: 28px var(--gutter) 48px; transform: none; opacity: 1; }

  .page-head--image { min-height: 0; display: block; padding: var(--header-h) 0 40px; }
  .page-head--image .page-head__media { position: relative; inset: auto; aspect-ratio: 4 / 3; overflow: hidden; }
  .page-head--image .page-head__media::after { display: none; }
  .page-head--image .page-head__inner { padding-top: 28px; text-shadow: none; }
  .page-head--grupo-oliveira .page-head__media img { object-position: 4% 55%; }
  .page-head--projetos-topo .page-head__media img { object-position: 70% 50%; }
  .page-head--contactos-entrada .page-head__media img { object-position: 78% 50%; }

  .band { display: flex; flex-direction: column; }
  .band__media { position: relative; inset: auto; aspect-ratio: 4 / 3; overflow: hidden; }
  .band__media::after { display: none; }
  .band__inner { padding-top: 28px; padding-bottom: 56px; }
  .band--stone .band__media img { object-position: 78% 50%; }
}

/* phones (owner, 20 Nov 2026): the block under the top image is light on every page, like Projetos and Contactos
   (no dark blue under the home image, no black under the Grupo image). Computers keep their look. */
@media (max-width: 700px) {
  .hero { background: var(--surface-2); }
  .hero__stage { color: var(--text); }
  .hero__title { color: var(--text); text-shadow: none; }
  .hero__sub { color: var(--text); text-shadow: none; }
  .hero .btn--ghost { border-color: rgba(21, 24, 28, .35); color: var(--text); background: transparent; }
  .hero .btn--ghost:hover { border-color: var(--text); background: rgba(255, 255, 255, .6); }

  .page-head--dark { background: var(--surface-2); color: var(--text); }
  .page-head--dark .display-1 { color: var(--text); }
  .page-head--dark .display-1 em { color: var(--muted); }
  .page-head--dark .label { color: var(--text); }
  .page-head--grupo-oliveira .page-head__inner { text-shadow: none; }
  /* owner, 21 Nov 2026: the block right under the top image is the lightest tone, the grey comes after */
  .hero, .page-head--image, .page-head--dark { background: var(--bg); }
}

/* projects page (owner, 20 Nov 2026): the two place titles ("Lisboa", "Outras localizações") in grey,
   lined up on the left with the words "EM DESENVOLVIMENTO" above them */
.chapter.chapter--place { grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; }
.chapter--place .chapter__label { display: contents; }
.chapter--place .chapter__label > span { font: 600 clamp(15px, 1.5vw, 19px)/1.35 var(--font); letter-spacing: .14em; text-transform: uppercase; }
.chapter--place .chapter__label .section-label__n { grid-column: 1; font-weight: 500; color: var(--muted); }
.chapter--place .chapter__label .chapter__word { grid-column: 2; color: var(--text); }
.chapter.chapter--place .chapter__title { grid-column: 2; color: #474C53; }
.dev__title { padding-left: 42px; color: var(--on-dark-muted); }

/* contact form (owner, 20 Nov 2026): sent by the server; a hidden trap field for spam robots */
.hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form .btn[disabled] { opacity: .65; cursor: progress; }

/* Grupo header (owner, 20 Nov 2026, later): the approved olive image shown at its full width, a touch more open;
   the header is a little lower so the whole frame fits */
@media (min-width: 701px) {
  .page-head--grupo-oliveira { min-height: min(82vh, calc(100vw / 2.333)); padding-top: calc(var(--header-h) + clamp(48px, 6vw, 96px)); }
  .page-head--grupo-oliveira .page-head__media img { object-position: 0% 60%; }
}

/* ---------- home page intro (owner, 20 Nov 2026): the current logo builds itself, then glides into the header */
.intro { display: none; }
/* (v1 full-screen intro scroll lock removed) */
html.intro-on .intro { display: grid; place-items: center; position: fixed; inset: 0; z-index: 200; background: var(--bg);
  animation: introOut .7s ease 3.35s forwards; cursor: pointer; }
html.intro-on .site-header .brand > img { opacity: 0; }
.site-header .brand img { transition: opacity .45s ease; }
.intro__logo { position: relative; width: min(340px, 62vw); aspect-ratio: 720 / 672; will-change: transform; }
.intro__logo img { position: absolute; max-width: none; }
.intro__base, .intro__word, .intro__rule, .intro__sphere { inset: 0; width: 100%; height: 100%; }
/* 1. the base opens from the centre */
.intro__base { clip-path: inset(0 50% 0 50%); animation: introBase .8s cubic-bezier(.2, .8, .2, 1) .15s forwards; }
/* 2. the towers rise out of the base, tallest first */
.intro__slice { position: absolute; top: 0; left: var(--l); width: var(--w); height: 58.6%; overflow: hidden; }
.intro__slice img { top: 0; left: var(--x); width: var(--iw); height: auto; transform: translateY(100%);
  animation: introRise 1.05s cubic-bezier(.16, .84, .24, 1) calc(.5s + var(--d)) forwards; }
/* 3. the name sweeps in, 4. the red rule draws from the centre */
.intro__word { clip-path: inset(0 100% 0 0); opacity: .15; animation: introWord .8s cubic-bezier(.6, 0, .2, 1) 1.5s forwards; }
.intro__rule { transform: scaleX(0); transform-origin: 50% 96%; animation: introRule .55s cubic-bezier(.2, .8, .2, 1) 2.05s forwards; }
/* 5. the sphere lands with a small bounce and a soft red glow */
.intro__sphere { opacity: 0; transform-origin: 49.25% 51.83%; animation: introSphere .95s cubic-bezier(.3, .7, .3, 1) 2.2s forwards; }
.intro__glow { position: absolute; left: 49.25%; top: 51.83%; width: 22%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(204, 9, 13, .38) 0%, rgba(204, 9, 13, .12) 45%, rgba(204, 9, 13, 0) 70%);
  opacity: 0; transform: translate(-50%, -50%) scale(.6); animation: introGlow 1.1s ease-out 2.65s forwards; }
@keyframes introBase { to { clip-path: inset(0 0 0 0); } }
@keyframes introRise { to { transform: translateY(0); } }
@keyframes introWord { to { clip-path: inset(0 0 0 0); opacity: 1; } }
@keyframes introRule { to { transform: scaleX(1); } }
@keyframes introSphere {
  0%   { opacity: 0; transform: translateY(-48%) scale(.4); }
  55%  { opacity: 1; transform: translateY(0) scale(1.05); }
  72%  { transform: translateY(-3.5%) scale(.985); }
  87%  { transform: translateY(0) scale(1.01); }
  100% { opacity: 1; transform: none; }
}
@keyframes introGlow { 0% { opacity: .9; transform: translate(-50%, -50%) scale(.6); } 100% { opacity: 0; transform: translate(-50%, -50%) scale(2.6); } }
@keyframes introOut { to { opacity: 0; visibility: hidden; } }
@media (prefers-reduced-motion: reduce) { html.intro-on .intro { display: none; } html.intro-on .site-header .brand > img { opacity: 1; } }

/* home closing band (owner, 21 Nov 2026, D6): a second, outlined button for property owners */
.btn--line { background: transparent; color: var(--text); border: 1px solid rgba(21, 24, 28, .4); }
.btn--line:hover { border-color: var(--text); }

/* ---------- UX audit fixes (owner, 21 Nov 2026) */
/* D4: short entrances; elements already on screen (or reached by a jump) show with no fade */
.js [data-reveal] { transform: translate3d(0, 12px, 0); transition: opacity .35s var(--ease), transform .35s var(--ease); }
.js .project[data-reveal] .project__img { transition: clip-path .45s var(--ease); }
.js [data-reveal].is-instant, .js [data-reveal].is-instant .project__img { transition: none !important; }
/* D5: small "Imagem ilustrativa" tag on the São Bento Residences renders */
.ph__tag { position: absolute; left: 10px; bottom: 10px; z-index: 2; padding: 4px 10px; border-radius: 999px;
  font: 500 12.5px/1.3 var(--font); color: #fff; background: rgba(21, 24, 28, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); pointer-events: none; }
/* D12: visible focus on form fields */
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible, .field--check input:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (max-width: 900px) {
  /* D1: on phones the contact form comes right after the title; email and location follow it */
  .contact__grid { display: flex; flex-direction: column; }
  .contact__form { order: -1; }
  /* D9 + owner (21 Nov 2026): completed projects - every picture whole (no building cut off), all at the same height */
  .spread__media .ph { flex: 0 0 auto; }
  .spread__media .ph .ph__frame { aspect-ratio: auto !important; height: auto; width: auto; background: transparent; border-radius: 0 !important; }
  .spread__media .ph .ph__frame img { display: block; width: auto; height: clamp(230px, 64vw, 340px); max-width: 88vw; object-fit: contain; border-radius: var(--r-md) !important; }
  /* D12: 44 px touch targets for text links and email links */
  .link-arrow, .contact__details a, .site-footer a[href^="mailto"], .band .link-light { min-height: 44px; display: inline-flex; align-items: center; }
  /* D12: nothing smaller than 13 px on phones */
  .label, .chapter__label, .contact__details dt, .ficha__sublabel, .lots li, .lot__n, .lot__use, .site-footer .label { font-size: 13px; }
}
@media (max-width: 700px) {
  /* D1: the Contacts and Projects header pictures are lower (16:9), so the form and the first project come sooner */
  .page-head--contactos-entrada .page-head__media, .page-head--projetos-topo .page-head__media { aspect-ratio: 16 / 9; }
}

/* phone menu (owner, 21 Nov 2026): a list that drops down under the menu button, on a see-through panel over the page,
   instead of a full new screen */
@media (max-width: 700px) {
  .nav {
    inset: auto; top: calc(var(--header-h) - 6px); right: var(--gutter); left: auto;
    width: min(270px, calc(100vw - 2 * var(--gutter))); height: auto; max-height: calc(100svh - var(--header-h) - 24px); overflow-y: auto;
    padding: 8px 18px 14px; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 6px;
    background: rgba(var(--bg-rgb), .72); -webkit-backdrop-filter: blur(18px) saturate(1.15); backdrop-filter: blur(18px) saturate(1.15);
    border: 1px solid rgba(21, 24, 28, .08); border-radius: 16px; box-shadow: 0 18px 48px rgba(10, 12, 16, .22);
    transform: translateY(-6px); transform-origin: top right;
    transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
  }
  .menu-open .nav { transform: none; }
  .nav__links { gap: 0; }
  .nav__links a { display: flex; align-items: center; min-height: 48px; padding: 0 4px; font: 400 18px/1.2 var(--font-display); letter-spacing: -.01em;
    border-bottom: 1px solid rgba(21, 24, 28, .08); }
  .nav__links li:last-child a { border-bottom: 0; }
  .lang { padding: 6px 4px 0; font-size: 14px; border-top: 1px solid rgba(21, 24, 28, .12); }
  .lang a { min-height: 44px; display: inline-flex; align-items: center; padding: 0 8px; }
  .menu-open { overflow: visible; }
}

/* ---------- home intro v2 (owner, 21 Nov 2026, D7): the logo drawn from scratch, ~4.8 s */
html.intro-on .intro { animation: introOut .6s ease 4.35s forwards; }
.intro__grid { position: absolute; inset: 0; opacity: 0; pointer-events: none;
  background-image: linear-gradient(rgba(21, 24, 28, .055) 1px, transparent 1px), linear-gradient(90deg, rgba(21, 24, 28, .055) 1px, transparent 1px);
  background-size: 32px 32px; background-position: center;
  -webkit-mask-image: radial-gradient(circle at 50% 48%, #000 0 22%, transparent 58%); mask-image: radial-gradient(circle at 50% 48%, #000 0 22%, transparent 58%);
  animation: introFade 1s ease .05s forwards, introGone .8s ease 2.7s forwards; }
.intro__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; z-index: 3; }
.intro__line { fill: none; stroke: #1C2025; stroke-width: 5.4; stroke-linecap: square; stroke-linejoin: miter;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: introDraw .85s cubic-bezier(.55, .1, .25, 1) var(--d) forwards, introGone .5s ease 2.6s forwards; }
.intro__guide { fill: none; stroke: var(--accent); stroke-width: 1.2; vector-effect: non-scaling-stroke; opacity: .6;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: introDraw .75s cubic-bezier(.3, .6, .2, 1) calc(.05s + var(--d)) forwards, introGone .7s ease calc(1.6s + var(--d)) forwards; }
.intro__sym { inset: 0; width: 100%; height: 100%; opacity: 0; animation: introFade .65s ease 2.3s forwards; }
.intro__word { clip-path: inset(0 100% 0 0); opacity: 1; animation: introWord .75s cubic-bezier(.6, 0, .2, 1) 2.55s forwards; }
/* a light passes over the name (masked to the letters) */
.intro__shine { position: absolute; inset: 0; z-index: 4; opacity: 0; pointer-events: none;
  background: linear-gradient(100deg, transparent 38%, rgba(255, 255, 255, .95) 50%, transparent 62%) no-repeat; background-size: 300% 100%; background-position: 110% 0;
  -webkit-mask: url("img/intro-word.webp") center / 100% 100% no-repeat; mask: url("img/intro-word.webp") center / 100% 100% no-repeat;
  animation: introShine 1s ease-in-out 3.2s forwards; }
.intro__rule { transform: scaleX(0); animation: introRule .5s cubic-bezier(.2, .8, .2, 1) 3.05s forwards; }
.intro__sphere { z-index: 5; transform-origin: 49.9% 52.31%; animation: introSphere .95s cubic-bezier(.3, .7, .3, 1) 3.2s forwards; }
.intro__glow { left: 49.9%; top: 52.31%; z-index: 4; animation: introGlow 1.2s ease-out 3.62s forwards; }
.intro__glow::after { content: ""; position: absolute; inset: -6%; border-radius: 50%; border: 2px solid rgba(204, 9, 13, .45); }
@keyframes introDraw { to { stroke-dashoffset: 0; } }
@keyframes introFade { to { opacity: 1; } }
@keyframes introGone { to { opacity: 0; } }
@keyframes introShine { 0% { opacity: 0; background-position: 110% 0; } 18% { opacity: 1; } 100% { opacity: 0; background-position: -10% 0; } }
.intro__logo { width: min(460px, 68vw); }   /* intro v2: larger, for impact */

/* home intro v3 (owner, 21 Nov 2026): the logo builds in its own place in the header, page fully visible; no grid, no grey screen */
/* the header intro never changes page scrolling: html/body keep overflow-x: clip */
.brand { position: relative; }
.brand__build { display: none; }
html.intro-on .brand__build { display: block; position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; pointer-events: none; overflow: visible; }
.site-header .brand > img { transition: none; }   /* the finished drawing and the logo image are identical: swap with no fade */
.brand__build .intro__svg { overflow: visible; }
.brand__build .intro__line { stroke-width: 6.5; }
/* timing in the header: lines 0.1-2.3 s, logo 2.1 s, name 2.3 s, rule 2.8 s, sphere 2.95 s, done by 4.1 s */
.brand__build .intro__guide { opacity: .5; animation: introDraw .9s cubic-bezier(.3, .6, .2, 1) calc(.05s + var(--d)) forwards, introGone .8s ease calc(1.5s + var(--d)) forwards; }
.brand__build .intro__line { animation: introDraw .8s cubic-bezier(.55, .1, .25, 1) var(--d) forwards, introGone .45s ease 2.35s forwards; }
.brand__build .intro__sym { animation: introFade .55s ease 2.1s forwards; }
.brand__build .intro__word { animation: introWord .65s cubic-bezier(.6, 0, .2, 1) 2.3s forwards; }
.brand__build .intro__shine { animation: introShine .9s ease-in-out 2.9s forwards; }
.brand__build .intro__rule { animation: introRule .45s cubic-bezier(.2, .8, .2, 1) 2.8s forwards; }
.brand__build .intro__sphere { animation: introSphere .9s cubic-bezier(.3, .7, .3, 1) 2.95s forwards; }
.brand__build .intro__glow { width: 40%; animation: introGlow 1.1s ease-out 3.35s forwards; }
@media (prefers-reduced-motion: reduce) { html.intro-on .brand__build { display: none; } }

/* Contacts (owner, 21 Nov 2026): only the form here (company, email and location are in the footer) */
.contact__grid { grid-template-columns: minmax(0, 820px); }   /* form lined up on the left with the page title */

/* São Bento Residences (owner, 21 Nov 2026): one discreet light-grey note at the end instead of tags on the pictures */
.ficha__note { margin-top: 16px; font-size: 13px; color: #8E949B; }

/* completed projects on phones (owner, 21 Nov 2026): the picture strip keeps the width of the screen and scrolls sideways
   (with whole pictures it had grown to the width of all its pictures, so the second one could not be reached) */
@media (max-width: 900px) {
  .spread, .spread > * { min-width: 0; }
  .spread__media { width: auto; max-width: none; min-width: 0; overflow-x: auto; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; touch-action: pan-x pan-y; }
}

/* home "Ver mais projetos" on phones (owner, 21 Nov 2026): on the left like "Conhecer o grupo", with less space above */
@media (max-width: 900px) {
  .track__more { justify-content: flex-start; margin-top: 32px; }
  .track__more .link-arrow { margin-top: 0; }
}

/* home "Porquê a ALEXTOMA" (owner, 21 Nov 2026): each reason with two short points, marked with the logo's red stroke */
.why__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.why__list li { position: relative; padding-left: 22px; max-width: 62ch; }
.why__list li::before { content: ""; position: absolute; left: 0; top: .72em; width: 12px; height: 2px; background: var(--accent); border-radius: 2px; }

/* Contacts (owner, 21 Nov 2026): how to invest or talk to the team, under the form */
.contact__info { margin-top: clamp(40px, 6vw, 72px); max-width: 820px; }
.contact__info .display-3 { margin-bottom: 14px; }
.contact__info > p { color: var(--muted); max-width: 62ch; }
.contact__ways { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, auto)); gap: 18px 48px; justify-content: start; }
.contact__ways li { display: grid; gap: 6px; }
.contact__ways a { font-size: 17px; text-decoration: none; border-bottom: 1px solid rgba(21, 24, 28, .25); align-self: start; justify-self: start; min-height: 32px; }
.contact__ways a:hover { border-bottom-color: var(--accent); }
@media (max-width: 700px) { .contact__ways { grid-template-columns: 1fr; } .contact__ways a { min-height: 44px; display: inline-flex; align-items: center; } }

/* Contacts (owner, 21 Nov 2026): a short, discreet strip with email, phone and office under the page title */
.contact__strip { list-style: none; margin: 0 0 clamp(28px, 4vw, 48px); padding: 18px 0; display: flex; flex-wrap: wrap; gap: 14px clamp(28px, 5vw, 64px);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); max-width: 820px; }
.contact__strip li { display: grid; gap: 4px; }
.contact__strip a { font-size: 16px; text-decoration: none; color: var(--text); border-bottom: 1px solid rgba(21, 24, 28, .25); justify-self: start; }
.contact__strip a:hover { border-bottom-color: var(--accent); }
@media (max-width: 700px) {
  .contact__strip { display: grid; gap: 0; padding: 6px 0; }
  .contact__strip li { display: flex; align-items: center; gap: 12px; min-height: 44px; }
  .contact__strip .label { flex: 0 0 84px; }
  .contact__strip a { font-size: 15px; }
}

/* slow zoom on the page-header pictures of Grupo, Projetos and Contactos (owner, 21 Nov 2026) - barely noticeable, 22 s */
.page-head--image .page-head__media { overflow: hidden; }
/* owner, 21 Nov 2026: the page-top images pull back for a few seconds on arrival, then rest (a gentle ease-out, still visibly moving for 5-6 s) */
.page-head--image .page-head__media img { animation: headZoom 9s cubic-bezier(.3, .45, .35, 1) both; transform-origin: 60% 50%; will-change: transform; }
@keyframes headZoom { from { transform: scale(1.12); } to { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .page-head--image .page-head__media img { animation: none; } }
.port-stat__n { font-variant-numeric: tabular-nums; }

/* home hero living image (owner, 21 Nov 2026): the loop sits exactly over the photo, with the same slow drift, and fades in */
.hero__loop { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; display: block; z-index: 1; opacity: 0; animation: hero-drift 22s var(--ease) both; pointer-events: none; }
.hero__loop.is-direct { opacity: 1; }   /* fallback only: browsers without canvas show the video itself */
/* the film is painted into this canvas (same colour handling as the photo); it appears on frame 0 = the photo */
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; display: block;
  z-index: 1; opacity: 0; pointer-events: none; transition: opacity 1s ease; }   /* owner, 27 Nov 2026: 1 s, the 10 s film moves more gently */
/* owner, 26 Nov 2026: a short 0.6 s blend so the tree simply starts to move. Safe from black: the canvas is transparent
   and only gets is-ready once a drawn frame has been checked to hold the picture; underneath is always the photo. */
.hero__canvas.is-ready { opacity: 1; }
html.hero-live .hero__img, html.hero-live .hero__loop { animation: none; transform: none; }   /* only the film moves */
.hero__scrim, .hero__content { z-index: 2; }
/* phones (owner, 21 Nov 2026): the opening image was too small to see the film move. A square window, closer on the
   olive tree and its reflection; the still image and the square film cut (hero-loop-m.mp4) share the same framing. */
@media (max-width: 700px) {
  .hero__media { aspect-ratio: 1 / 1; }
  .hero__img { object-position: 65.6% 50%; }   /* = the film cut at x 551 of 1920 (551 / 840) */
  .hero__loop, .hero__canvas { object-position: 50% 50%; }
}
@media (prefers-reduced-motion: reduce) { .hero__loop, .hero__canvas { display: none; } }

/* section colours (owner, 21 Nov 2026): every page starts light at the top (the logo sits on a light ground), then grey,
   then light - the same rhythm on Início, Grupo, Projetos and Contactos */
/* (owner, 21 Nov 2026, later: back to the previous colours - this swap was removed) */

/* owner, 21 Nov 2026: the lists inside sections (Áreas de atuação, Porquê a ALEXTOMA, Como trabalhamos) no longer carry
   numbers, so they are not confused with the section numbers 01-06. Each line starts with the logo's short red stroke. */
.area__n { display: block; width: 28px; height: 2px; background: var(--accent); align-self: start;
  margin-top: calc(clamp(1.25rem, 1.9vw, 1.75rem) * .62); font-size: 0; }
@media (max-width: 900px) { .area__n { margin: 2px 0 8px; } }
.area { background-image: none; }   /* the stroke now lives on .area__n; no second tick on the top rule */
.area__n { transform-origin: 0 50%; transition: transform .9s var(--ease) .2s; }
.js .area[data-reveal]:not(.is-in) .area__n { transform: scaleX(0); }
.area:hover .area__n { transform: scaleX(1.7); transition-delay: 0s; }

/* owner, 21 Nov 2026: section label ("01 QUEM SOMOS") a little larger, the heading under it a little smaller;
   same fonts, weights and spacing (about 7% each way) */
.chapter__label, .chapter--place .chapter__label > span { font-size: clamp(16px, 1.6vw, 20.5px); }
.chapter__title { font-size: clamp(1.6rem, 2.7vw, 2.55rem); }
@media (max-width: 900px) { .chapter__label { font-size: 14px; } }

/* owner, 21 Nov 2026 (later): contact strip without underlines; on phones each item is the small label over its value,
   with a thin rule between items, so nothing is squeezed into a narrow column */
.contact__strip a { border-bottom: 0; transition: color .3s; }
.contact__strip a:hover { color: var(--accent); }
@media (max-width: 700px) {
  .contact__strip { display: grid; gap: 0; padding: 0; border-bottom: 0; }
  .contact__strip li { display: grid; gap: 4px; min-height: 0; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .contact__strip .label { flex: none; }
  .contact__strip a { font-size: 16px; min-height: 28px; display: inline-flex; align-items: center; }
}

/* owner, 21 Nov 2026: São Bento Residences - small but striking "Lançamento em breve" label on the main picture,
   and a line outside it inviting contact */
.launch-badge { position: absolute; top: clamp(10px, 1.6vw, 18px); left: clamp(10px, 1.6vw, 18px); z-index: 3;
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 13px 8px 11px; border-radius: 999px;
  background: var(--accent); color: #fff; font: 600 11.5px/1 var(--font); letter-spacing: .12em; text-transform: uppercase;
  box-shadow: 0 6px 22px rgba(var(--accent-rgb), .32); pointer-events: none; }
.launch-badge__dot { width: 7px; height: 7px; border-radius: 50%; background: #fff; flex: none;
  animation: launch-pulse 2.4s ease-in-out infinite; }
@keyframes launch-pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .45; transform: scale(.7); } }
.launch-note { margin: 12px 0 0; font-size: 15px; line-height: 1.5; color: var(--muted); max-width: 44ch; }
.launch-note a { color: var(--text); text-decoration: none; border-bottom: 1px solid rgba(var(--accent-rgb), .6); }
.launch-note a:hover { color: var(--accent); }
.ficha__body .launch-note { margin: 4px 0 18px; }
@media (max-width: 700px) { .launch-badge { font-size: 10.5px; padding: 7px 11px 7px 9px; } }
@media (prefers-reduced-motion: reduce) { .launch-badge__dot { animation: none; } }

/* Grupo, Outras atividades (owner, 21 Nov 2026): a card for CIA - photo of its building, name, one line, links;
   the company logo sits above the name when its file is supplied */
.other-section { padding-top: 0; }
.other-card { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: stretch;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
  box-shadow: 0 18px 50px rgba(21, 24, 28, .07); }
.other-card__media { position: relative; display: block; min-height: 100%; overflow: hidden; background: var(--surface-2); }
.other-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.other-card:hover .other-card__media img { transform: scale(1.03); }
.other-card__body { display: grid; align-content: center; gap: 12px; padding: clamp(28px, 4vw, 56px); }
.other-card__label { display: flex; align-items: center; gap: 12px; color: var(--muted); }
.other-card__label::before { content: ""; width: 28px; height: 2px; background: var(--accent); }
.other-card__logo { height: 44px; width: auto; max-width: 200px; object-fit: contain; object-position: left center; margin: 4px 0 2px; }
.other-card__name { font: 400 clamp(1.4rem, 2.2vw, 2rem)/1.15 var(--font-display); letter-spacing: -.015em; }
.other-card__text { color: var(--muted); font-size: 16px; line-height: 1.6; max-width: 46ch; }
.other-card__links { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.other-card__links .link-arrow { margin-top: 10px; }
@media (max-width: 900px) {
  .other-card { grid-template-columns: 1fr; }
  .other-card__media { min-height: 0; aspect-ratio: 16 / 10; }
}
/* CIA logo (owner's file, cleaned 21 Nov 2026) beside the company name */
.other-card__head { display: flex; align-items: center; gap: clamp(14px, 1.6vw, 20px); }
.other-card__logo { flex: none; width: clamp(64px, 6vw, 84px); height: auto; max-width: none; margin: 0;
  filter: drop-shadow(0 6px 14px rgba(98, 51, 45, .22)); }
/* owner, 21 Nov 2026 (later): no building photo - the card only says the group has other activities */
.other-card--plain { grid-template-columns: 1fr; max-width: 860px; }
.other-card--plain .other-card__body { padding: clamp(26px, 3.4vw, 44px) clamp(24px, 4vw, 52px); }
.other-section { padding-top: clamp(48px, 6vw, 96px); }   /* the card no longer straddles the grey band above */

/* logo build (owner, 21 Nov 2026): the lines behind the sphere are drawn with the rest and stay until the sphere has
   landed over them (sphere lands about 3.3-3.85 s), so the towers never look half drawn */
.brand__build .intro__line--behind { animation: introDraw .8s cubic-bezier(.55, .1, .25, 1) var(--d) forwards, introGone .4s ease 3.7s forwards; }
.intro__line--behind { animation: introDraw .85s cubic-bezier(.55, .1, .25, 1) var(--d) forwards, introGone .5s ease 3.4s forwards; }

/* Quem somos (owner, 21 Nov 2026): "ativos imobiliários", the core of the company, stands out by weight alone -
   the same typeface, regular weight against the light title. No red stroke: the red stays for the section rules,
   list strokes and buttons, and the "01 QUEM SOMOS" rule just above already carries it. */
.chapter__title .hl { font-weight: 500; white-space: nowrap; }
/* Projects (owner, 21 Nov 2026): the approved subdivision is a project of its own, not part of Sao Bento Residences:
   a rule above it like the other projects, the title first (left on computers, on top on phones), then the plan */
.ficha--plan { border-top: 1px solid var(--line); padding-top: clamp(28px, 3.5vw, 44px); }
.ficha--plan .ficha__body { grid-column: 1 / span 4; grid-row: 1; padding-top: 0; }
.ficha--plan .ficha__plan { grid-column: 6 / span 7; grid-row: 1; }
@media (max-width: 900px) {
  .ficha--plan .ficha__body, .ficha--plan .ficha__plan { grid-column: 1 / -1; grid-row: auto; }
  .ficha--plan .ficha__body { margin: 0 0 24px; }
}

/* Approved subdivision (owner, 21 Nov 2026): "Obras de urbanização em curso" with a small live dot, and a wide photo
   of the works under the plan */
.works-note { display: inline-flex; align-items: center; gap: 10px; justify-self: start; margin-top: 6px; padding: 8px 14px 8px 12px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: 14px; font-weight: 500; color: var(--text); }
.works-note__dot { width: 8px; height: 8px; border-radius: 50%; background: #E8A317; flex: none;
  box-shadow: 0 0 0 0 rgba(232, 163, 23, .5); animation: works-pulse 2.4s ease-out infinite; }
@keyframes works-pulse { 0% { box-shadow: 0 0 0 0 rgba(232, 163, 23, .5); } 70%, 100% { box-shadow: 0 0 0 9px rgba(232, 163, 23, 0); } }
@media (prefers-reduced-motion: reduce) { .works-note__dot { animation: none; } }
.ficha__works { margin-top: clamp(28px, 3.5vw, 48px); }
.ficha__works .ph__frame { aspect-ratio: 21 / 9; }
.ficha__works .ph__frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
@media (max-width: 700px) { .ficha__works .ph__frame { aspect-ratio: 4 / 3; } }
/* owner, 21 Nov 2026: the "Obras de urbanização em curso" label sits on the works photo, top left */
.works-note--on { position: absolute; top: clamp(12px, 1.6vw, 20px); left: clamp(12px, 1.6vw, 20px); z-index: 3; margin: 0;
  background: rgba(255, 255, 255, .92); border-color: transparent; box-shadow: 0 6px 20px rgba(21, 24, 28, .18);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
@media (max-width: 700px) { .works-note--on { font-size: 12.5px; padding: 7px 12px 7px 10px; } }

/* owner, 21 Nov 2026 (later): the works photo is smaller, beside the lots legend under the plan */
.plan-foot--photo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: clamp(18px, 2.4vw, 32px); align-items: start; }
.plan-foot--photo .lots--legend { grid-template-columns: minmax(0, 1fr); margin: 0; }
.plan-foot--photo .ficha__works { margin: 0; }
.plan-foot--photo .ficha__works .ph__frame { aspect-ratio: 16 / 10; }
.plan-foot--photo .works-note--on { font-size: 12px; padding: 6px 11px 6px 9px; gap: 8px; top: 10px; left: 10px; }
@media (max-width: 700px) {
  .plan-foot--photo { grid-template-columns: minmax(0, 1fr); }
  .plan-foot--photo .ficha__works .ph__frame { aspect-ratio: 4 / 3; }
}

/* owner, 21 Nov 2026 (later): the lots legend is a card as tall as the works photo, same corners and outline,
   the four lots spread evenly - the two sit side by side as one tidy block */
.plan-foot--photo { align-items: stretch; }
.plan-foot--photo .lots--legend { display: grid; grid-template-rows: repeat(4, 1fr); align-content: stretch; height: 100%;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 6px 18px; }
.plan-foot--photo .lots--legend li { grid-template-columns: 14px auto 1fr; gap: 12px; align-items: center; padding: 0; font-size: 14px; }
.plan-foot--photo .lots--legend li:last-child { border-bottom: 0; }
.plan-foot--photo .lots--legend .lot__swatch { width: 14px; height: 14px; border-radius: 4px; box-shadow: inset 0 0 0 1px rgba(21, 24, 28, .12); }
.plan-foot--photo .lot__n { font-weight: 600; color: var(--text); }
.plan-foot--photo .lot__use { color: var(--muted); }
.plan-foot--photo .ficha__works, .plan-foot--photo .ficha__works .ph__frame { height: 100%; }
@media (max-width: 700px) {
  .plan-foot--photo .lots--legend { height: auto; grid-template-rows: none; padding: 4px 16px; }
  .plan-foot--photo .lots--legend li { padding: 12px 0; }
  .plan-foot--photo .ficha__works .ph__frame { height: auto; }
}
.plan-foot--photo .ficha__works .ph__frame img { object-position: 50% 30%; }   /* new 4:3 works photo: keep the machines and workers in view */
