/* 
  Unfoldforms — Exhibition Makers
  Static website prototype
*/

:root {
  --black: #050505;
  --black-soft: #0b0b0b;
  --white: #ffffff;
  --paper: #f4f3f0;
  --paper-soft: #ebe9e4;
  --muted: #8f8f8a;
  --muted-dark: #5d5d59;
  --line-dark: rgba(255, 255, 255, 0.16);
  --line-light: rgba(5, 5, 5, 0.14);
  --max: 1220px;
  --header: 84px;
  --ease: cubic-bezier(.19, 1, .22, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--black);
}

body {
  margin: 0;
  color: var(--black);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
textarea {
  font: inherit;
}

::selection {
  color: var(--white);
  background: var(--black);
}

.section-dark ::selection {
  color: var(--black);
  background: var(--white);
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 999;
  transform: translateY(-150%);
  background: var(--white);
  color: var(--black);
  padding: .75rem 1rem;
  transition: transform .2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(calc(100% - 48px), var(--max));
  margin-inline: auto;
}

.section-dark {
  color: var(--white);
  background: var(--black);
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header);
  color: var(--white);
  transition: background .35s ease, color .35s ease, border-color .35s ease;
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled,
.site-header.menu-open {
  color: var(--black);
  background: rgba(244, 243, 240, .92);
  backdrop-filter: blur(18px);
  border-bottom-color: var(--line-light);
}

.header-inner {
  width: min(calc(100% - 48px), 1420px);
  height: 100%;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  width: clamp(150px, 16vw, 235px);
  position: relative;
  z-index: 102;
}

.brand-logo {
  width: 100%;
  height: auto;
  transition: opacity .25s ease;
}

.brand-logo-dark {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.site-header.is-scrolled .brand-logo-light,
.site-header.menu-open .brand-logo-light {
  opacity: 0;
}

.site-header.is-scrolled .brand-logo-dark,
.site-header.menu-open .brand-logo-dark {
  opacity: 1;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(1.1rem, 2vw, 2rem);
  font-size: .74rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.main-nav a {
  position: relative;
  padding: .4rem 0;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: .1rem;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .45s var(--ease);
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin-left: .5rem;
  color: inherit;
}

.lang-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  padding: .35rem .1rem;
  letter-spacing: .14em;
  opacity: .45;
  transition: opacity .2s ease;
}

.lang-btn.active,
.lang-btn:hover {
  opacity: 1;
}

.nav-toggle {
  display: none;
  position: relative;
  z-index: 102;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.nav-toggle span {
  position: absolute;
  left: 8px;
  right: 8px;
  height: 1px;
  background: currentColor;
  transition: transform .35s var(--ease), top .35s var(--ease);
}

.nav-toggle span:first-child {
  top: 17px;
}

.nav-toggle span:last-child {
  top: 27px;
}

.site-header.menu-open .nav-toggle span:first-child {
  top: 22px;
  transform: rotate(45deg);
}

.site-header.menu-open .nav-toggle span:last-child {
  top: 22px;
  transform: rotate(-45deg);
}

.hero {
  min-height: 100svh;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: calc(var(--header) + 5rem) 0 5rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 84% 30%, rgba(255,255,255,.08), transparent 22rem),
    linear-gradient(120deg, rgba(255,255,255,.04), transparent 38%);
  pointer-events: none;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 1.5rem;
  border: 1px solid rgba(255,255,255,.06);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(280px, .98fr);
  align-items: center;
  gap: clamp(3rem, 7vw, 7rem);
}

.hero-copy {
  max-width: 720px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 1.5rem;
  font-size: .75rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero h1,
.section-heading h2,
.statement-content h2,
.contact-intro h2 {
  margin: 0;
  font-weight: 500;
  letter-spacing: -.055em;
  line-height: .95;
}

.hero h1 {
  font-size: clamp(3.4rem, 9vw, 8.4rem);
  max-width: 950px;
}

.hero-text {
  margin: 2rem 0 0;
  max-width: 640px;
  color: rgba(255,255,255,.76);
  font-size: clamp(1.05rem, 1.7vw, 1.45rem);
  line-height: 1.45;
}

.hero-actions {
  margin-top: 2.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 1.35rem;
  border: 1px solid currentColor;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .72rem;
  line-height: 1;
  transition: color .35s var(--ease), background .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease);
  cursor: pointer;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: transparent;
  color: var(--white);
}

.section-light .button-primary {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

.section-light .button-primary:hover,
.section-light .button-primary:focus-visible {
  background: transparent;
  color: var(--black);
}

.button-secondary {
  background: transparent;
  color: var(--white);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background: var(--white);
  color: var(--black);
}

.hero-mark {
  opacity: .95;
  transform: translateY(2rem);
}

.hero-mark img {
  width: min(100%, 680px);
  margin-left: auto;
  filter: drop-shadow(0 20px 60px rgba(0,0,0,.36));
}

.scroll-indicator {
  position: absolute;
  left: 50%;
  bottom: 2rem;
  width: 1px;
  height: 76px;
  background: rgba(255,255,255,.2);
  overflow: hidden;
}

.scroll-indicator span {
  display: block;
  width: 1px;
  height: 32px;
  background: var(--white);
  animation: scrollPulse 1.9s infinite;
}

@keyframes scrollPulse {
  from { transform: translateY(-32px); }
  to { transform: translateY(78px); }
}

.statement,
.parent-company {
  padding: clamp(6rem, 12vw, 11rem) 0;
}

.statement-grid {
  display: grid;
  grid-template-columns: minmax(180px, .34fr) minmax(0, .66fr);
  gap: clamp(2rem, 6vw, 6rem);
  border-top: 1px solid currentColor;
  padding-top: clamp(2rem, 5vw, 4.5rem);
}

.section-light .statement-grid {
  border-color: var(--line-light);
}

.section-dark .statement-grid {
  border-color: var(--line-dark);
}

.statement-content h2 {
  font-size: clamp(2.8rem, 6.5vw, 6.8rem);
}

.statement-content p {
  margin: 2rem 0 0;
  max-width: 870px;
  font-size: clamp(1.05rem, 2.2vw, 1.6rem);
  color: var(--muted-dark);
}

.section-dark .statement-content p {
  color: rgba(255,255,255,.7);
}

.about,
.method,
.projects {
  padding: clamp(6rem, 12vw, 11rem) 0;
}

.split-grid {
  display: grid;
  grid-template-columns: minmax(260px, .44fr) minmax(0, .56fr);
  gap: clamp(3rem, 7vw, 7rem);
}

.section-heading h2,
.contact-intro h2 {
  font-size: clamp(2.55rem, 5.7vw, 5.8rem);
}

.section-heading-wide {
  max-width: 980px;
  margin-bottom: clamp(3rem, 7vw, 6rem);
}

.rich-text {
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  color: var(--muted-dark);
}

.rich-text p {
  margin: 0;
}

.rich-text p + p {
  margin-top: 1.3rem;
}

.capabilities {
  padding: clamp(6rem, 11vw, 10rem) 0;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line-dark);
  border-left: 1px solid var(--line-dark);
}

.service-card {
  min-height: 330px;
  padding: clamp(1.4rem, 3vw, 2.2rem);
  border-right: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: background .35s var(--ease), transform .35s var(--ease);
}

.service-card:hover {
  background: rgba(255,255,255,.045);
}

.card-number {
  color: var(--muted);
  font-size: .76rem;
  letter-spacing: .18em;
}

.service-card h3,
.timeline-item h3,
.project-placeholder h3,
.addresses h3 {
  margin: 0;
  font-weight: 500;
  letter-spacing: -.025em;
  line-height: 1.05;
}

.service-card h3 {
  max-width: 350px;
  font-size: clamp(1.4rem, 2.2vw, 2.35rem);
}

.service-card p {
  margin: 2rem 0 0;
  color: rgba(255,255,255,.66);
}

.sticky-heading {
  position: sticky;
  top: calc(var(--header) + 3rem);
  align-self: start;
}

.timeline {
  border-top: 1px solid var(--line-light);
}

.timeline-item {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 2rem;
  padding: clamp(1.6rem, 3vw, 2.5rem) 0;
  border-bottom: 1px solid var(--line-light);
}

.timeline-item span {
  color: var(--muted);
  letter-spacing: .16em;
  font-size: .78rem;
}

.timeline-item h3 {
  font-size: clamp(1.6rem, 3.2vw, 3rem);
}

.timeline-item p {
  max-width: 640px;
  margin: .8rem 0 0;
  color: var(--muted-dark);
  font-size: 1.02rem;
}

.project-placeholder {
  display: grid;
  grid-template-columns: minmax(260px, .52fr) minmax(0, .48fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  border-top: 1px solid var(--line-light);
  padding-top: clamp(2rem, 5vw, 4rem);
}

.placeholder-visual {
  aspect-ratio: 16 / 10;
  background:
    linear-gradient(90deg, transparent 49.8%, rgba(255,255,255,.16) 49.9%, rgba(255,255,255,.16) 50.1%, transparent 50.2%),
    linear-gradient(0deg, transparent 49.8%, rgba(255,255,255,.16) 49.9%, rgba(255,255,255,.16) 50.1%, transparent 50.2%),
    var(--black);
  position: relative;
  overflow: hidden;
}

.placeholder-visual::after {
  content: "";
  position: absolute;
  inset: 9%;
  border: 1px solid rgba(255,255,255,.34);
}

.placeholder-visual span {
  position: absolute;
  background: var(--white);
}

.placeholder-visual span:nth-child(1) {
  left: 11%;
  top: 16%;
  width: 26%;
  height: 14%;
}

.placeholder-visual span:nth-child(2) {
  right: 12%;
  top: 36%;
  width: 34%;
  height: 14%;
}

.placeholder-visual span:nth-child(3) {
  left: 28%;
  bottom: 18%;
  width: 44%;
  height: 14%;
}

.project-placeholder h3 {
  font-size: clamp(2rem, 4vw, 4rem);
}

.project-placeholder p {
  margin: 1.2rem 0 0;
  color: var(--muted-dark);
  font-size: clamp(1.02rem, 1.8vw, 1.25rem);
}

.contact {
  padding: clamp(6rem, 11vw, 10rem) 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(280px, .48fr) minmax(0, .52fr);
  gap: clamp(3rem, 7vw, 7rem);
}

.contact-intro p:not(.eyebrow) {
  margin: 1.5rem 0 0;
  max-width: 520px;
  color: rgba(255,255,255,.72);
  font-size: clamp(1.05rem, 1.7vw, 1.35rem);
}

.contact-panel {
  border-top: 1px solid var(--line-dark);
  padding-top: 2rem;
}

.contact-links {
  display: grid;
  gap: .65rem;
  font-size: clamp(1.35rem, 3vw, 3rem);
  letter-spacing: -.04em;
  line-height: 1;
}

.contact-links a {
  width: fit-content;
  color: var(--white);
  transition: opacity .2s ease;
}

.contact-links a:hover,
.contact-links a:focus-visible {
  opacity: .6;
}

.addresses {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line-dark);
}

.addresses h3 {
  margin-bottom: .85rem;
  font-size: 1rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.addresses p {
  margin: 0;
  color: rgba(255,255,255,.7);
}

.contact-form {
  margin-top: 3rem;
  display: grid;
  gap: 1rem;
}

.contact-form label {
  display: grid;
  gap: .45rem;
  color: rgba(255,255,255,.72);
  font-size: .82rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line-dark);
  background: rgba(255,255,255,.04);
  color: var(--white);
  padding: 1rem;
  outline: 0;
  transition: border-color .2s ease, background .2s ease;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(255,255,255,.72);
  background: rgba(255,255,255,.065);
}

.site-footer {
  padding: 2.2rem 0;
  border-top: 1px solid var(--line-dark);
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.footer-logo {
  width: 190px;
}

.footer-meta {
  color: rgba(255,255,255,.62);
  text-align: right;
  font-size: .9rem;
}

.footer-meta p {
  margin: 0 0 .35rem;
}

.footer-meta a {
  text-decoration: underline;
  text-underline-offset: .25em;
}

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .001ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1020px) {
  .hero-grid,
  .split-grid,
  .contact-grid,
  .project-placeholder,
  .statement-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-mark {
    max-width: 560px;
    opacity: .72;
  }

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

  .sticky-heading {
    position: static;
  }
}

@media (max-width: 820px) {
  :root {
    --header: 76px;
  }

  .container,
  .header-inner {
    width: min(calc(100% - 32px), var(--max));
  }

  .nav-toggle {
    display: inline-flex;
  }

  .main-nav {
    position: fixed;
    inset: 0;
    z-index: 101;
    min-height: 100svh;
    background: var(--paper);
    color: var(--black);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 1.1rem;
    padding: 7rem 1.5rem 3rem;
    font-size: clamp(2rem, 10vw, 4rem);
    letter-spacing: -.04em;
    text-transform: none;
    transform: translateX(100%);
    transition: transform .55s var(--ease);
  }

  .site-header.menu-open .main-nav {
    transform: translateX(0);
  }

  .language-switch {
    margin-left: 0;
    margin-top: 1.5rem;
    font-size: 1rem;
    letter-spacing: .14em;
    text-transform: uppercase;
  }

  .lang-btn {
    font-size: 1rem;
  }

  .main-nav a::after {
    bottom: -.05rem;
  }

  .hero {
    padding-top: calc(var(--header) + 3.5rem);
  }

  .hero h1 {
    font-size: clamp(3rem, 16vw, 6rem);
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: 270px;
  }

  .addresses {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-meta {
    text-align: left;
  }
}

@media (max-width: 560px) {
  .timeline-item {
    grid-template-columns: 1fr;
    gap: .8rem;
  }

  .hero-bg::after {
    inset: .75rem;
  }

  .footer-logo {
    width: 160px;
  }
}


/* ------------------------------
   Version 1 refinements
   - Cleaner opening screen
   - No large hero logo
   - Full headline visible across screen sizes
   - Better responsive behaviour
------------------------------ */

body.version-1 {
  overflow-x: hidden;
}

body.version-1 .site-header:not(.is-scrolled):not(.menu-open) .brand {
  opacity: 0;
  pointer-events: none;
}

body.version-1 .hero {
  min-height: 100svh;
  padding-top: calc(var(--header) + clamp(2.5rem, 5svh, 4.5rem));
  padding-bottom: clamp(3rem, 7svh, 6rem);
}

body.version-1 .hero-grid-single {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}

body.version-1 .hero-copy-wide {
  width: min(100%, 1180px);
  max-width: 1180px;
}

body.version-1 .hero h1 {
  max-width: 1120px;
  font-size: clamp(2.8rem, min(7.2vw, 10.5svh), 6.6rem);
  line-height: .94;
  letter-spacing: -.062em;
}

body.version-1 .hero-text {
  max-width: 760px;
  font-size: clamp(1rem, 1.35vw, 1.28rem);
}

body.version-1 .hero-actions {
  margin-top: clamp(1.6rem, 4svh, 2.6rem);
}

body.version-1 .hero-mark {
  display: none;
}

@media (max-width: 1020px) {
  body.version-1 .hero {
    min-height: auto;
    padding-top: calc(var(--header) + 3.5rem);
    padding-bottom: 4.5rem;
  }

  body.version-1 .hero h1 {
    font-size: clamp(2.75rem, 10.5vw, 5.6rem);
    line-height: .96;
    max-width: 920px;
  }
}

@media (max-width: 820px) {
  body.version-1 .site-header:not(.is-scrolled):not(.menu-open) .brand {
    opacity: 1;
    pointer-events: auto;
  }

  body.version-1 .hero {
    padding-top: calc(var(--header) + 2.7rem);
  }

  body.version-1 .hero h1 {
    font-size: clamp(2.55rem, 13.2vw, 4.9rem);
    line-height: .96;
    letter-spacing: -.058em;
  }
}

@media (max-width: 560px) {
  body.version-1 .hero h1 {
    font-size: clamp(2.35rem, 12.8vw, 4.1rem);
  }
}


/* =========================================================
   VERSION 2 — responsive refinement
   Requested changes:
   - Logo visible in the upper-left corner
   - Basic sans-serif typography
   - All sections adapt to desktop, tablet and mobile
   - Headline and large text sizes reduced to fit the viewport
========================================================= */

:root {
  --max: 1180px;
  --header: 76px;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

body.version-2 {
  font-family: Arial, Helvetica, sans-serif;
  overflow-x: hidden;
}

/* Keep the logo visible on the opening screen */
body.version-2 .site-header:not(.is-scrolled):not(.menu-open) .brand {
  opacity: 1;
  pointer-events: auto;
}

body.version-2 .brand {
  width: clamp(132px, 13vw, 190px);
}

/* Cleaner, more stable header */
body.version-2 .site-header {
  height: var(--header);
}

body.version-2 .header-inner {
  width: min(calc(100% - 40px), 1360px);
}

body.version-2 .main-nav {
  gap: clamp(.9rem, 1.45vw, 1.45rem);
  font-size: .7rem;
  letter-spacing: .13em;
}

/* Generic responsive section behaviour */
body.version-2 .container {
  width: min(calc(100% - 40px), var(--max));
}

body.version-2 section {
  scroll-margin-top: var(--header);
}

body.version-2 .hero,
body.version-2 .statement,
body.version-2 .about,
body.version-2 .capabilities,
body.version-2 .method,
body.version-2 .parent-company,
body.version-2 .projects,
body.version-2 .contact {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header) + clamp(2rem, 4.5svh, 3.4rem));
  padding-bottom: clamp(2rem, 4.5svh, 3.4rem);
}

/* Hero: full sentence visible without giant cropping */
body.version-2 .hero-grid-single {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}

body.version-2 .hero-copy-wide {
  max-width: 1080px;
}

body.version-2 .hero h1 {
  max-width: 1050px;
  font-size: clamp(3rem, 5.15vw, 5.9rem);
  line-height: .98;
  letter-spacing: -.045em;
  overflow-wrap: normal;
  text-wrap: balance;
}

body.version-2 .hero-text {
  max-width: 740px;
  margin-top: clamp(1.1rem, 2.6svh, 1.8rem);
  font-size: clamp(1rem, 1.28vw, 1.22rem);
  line-height: 1.45;
}

body.version-2 .hero-actions {
  margin-top: clamp(1.3rem, 3.4svh, 2.2rem);
}

body.version-2 .hero-mark {
  display: none;
}

body.version-2 .scroll-indicator {
  height: 50px;
  bottom: 1rem;
}

/* Typography: sans basic and controlled sizing */
body.version-2 .eyebrow,
body.version-2 .section-kicker {
  margin-bottom: clamp(.9rem, 2svh, 1.25rem);
  font-size: .68rem;
  letter-spacing: .19em;
}

body.version-2 .statement-content h2,
body.version-2 .section-heading h2,
body.version-2 .contact-intro h2 {
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(2.25rem, 4.2vw, 4.55rem);
  line-height: 1.02;
  letter-spacing: -.045em;
  text-wrap: balance;
}

body.version-2 .statement-content p,
body.version-2 .rich-text,
body.version-2 .project-placeholder p,
body.version-2 .contact-intro p:not(.eyebrow) {
  font-size: clamp(.98rem, 1.35vw, 1.18rem);
  line-height: 1.5;
}

/* Grids adapted to one-screen sections on desktop */
body.version-2 .statement-grid,
body.version-2 .split-grid,
body.version-2 .contact-grid {
  grid-template-columns: minmax(210px, .36fr) minmax(0, .64fr);
  gap: clamp(2rem, 5vw, 5rem);
}

body.version-2 .statement-grid {
  padding-top: clamp(1.3rem, 3svh, 2.4rem);
}

body.version-2 .section-heading-wide {
  margin-bottom: clamp(1.8rem, 4svh, 3rem);
  max-width: 920px;
}

/* Services compact enough for common laptop screens */
body.version-2 .cards-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.version-2 .service-card {
  min-height: clamp(190px, 25svh, 250px);
  padding: clamp(1rem, 1.7vw, 1.55rem);
}

body.version-2 .service-card h3 {
  font-size: clamp(1.05rem, 1.55vw, 1.65rem);
  line-height: 1.08;
  letter-spacing: -.02em;
}

body.version-2 .service-card p {
  margin-top: 1rem;
  font-size: clamp(.86rem, 1vw, .96rem);
  line-height: 1.42;
}

/* Method compact layout */
body.version-2 .timeline-item {
  grid-template-columns: 62px 1fr;
  gap: 1.4rem;
  padding: clamp(.9rem, 1.65svh, 1.35rem) 0;
}

body.version-2 .timeline-item h3 {
  font-size: clamp(1.25rem, 2.1vw, 2.1rem);
  line-height: 1.05;
}

body.version-2 .timeline-item p {
  margin-top: .45rem;
  font-size: clamp(.88rem, 1vw, .98rem);
  line-height: 1.42;
}

/* Projects and contacts */
body.version-2 .project-placeholder {
  grid-template-columns: minmax(280px, .5fr) minmax(0, .5fr);
  gap: clamp(1.8rem, 4vw, 4rem);
  padding-top: clamp(1.3rem, 3svh, 2.5rem);
}

body.version-2 .project-placeholder h3 {
  font-size: clamp(1.7rem, 3vw, 3.05rem);
}

body.version-2 .contact-links {
  font-size: clamp(1.15rem, 2.25vw, 2.2rem);
}

body.version-2 .addresses {
  margin-top: clamp(1.5rem, 3.5svh, 2.4rem);
  padding-top: clamp(1.2rem, 2.8svh, 1.8rem);
}

body.version-2 .contact-form {
  margin-top: clamp(1.4rem, 3svh, 2.2rem);
  gap: .85rem;
}

body.version-2 .contact-form input,
body.version-2 .contact-form textarea {
  padding: .78rem .9rem;
}

body.version-2 .footer-logo {
  width: clamp(145px, 12vw, 180px);
}

/* Medium screens / tablets */
@media (max-width: 1100px) {
  body.version-2 .main-nav {
    gap: .85rem;
    font-size: .66rem;
  }

  body.version-2 .hero h1 {
    font-size: clamp(2.9rem, 6.4vw, 5rem);
    max-width: 900px;
  }

  body.version-2 .statement-grid,
  body.version-2 .split-grid,
  body.version-2 .contact-grid,
  body.version-2 .project-placeholder {
    grid-template-columns: 1fr;
    gap: clamp(1.6rem, 4vw, 3rem);
  }

  body.version-2 .section-heading h2,
  body.version-2 .statement-content h2,
  body.version-2 .contact-intro h2 {
    font-size: clamp(2.15rem, 5.2vw, 4rem);
  }

  body.version-2 .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.version-2 .service-card {
    min-height: 190px;
  }

  body.version-2 .sticky-heading {
    position: static;
  }
}

/* Mobile navigation and mobile page sizing */
@media (max-width: 820px) {
  :root {
    --header: 72px;
  }

  body.version-2 .container,
  body.version-2 .header-inner {
    width: min(calc(100% - 28px), var(--max));
  }

  body.version-2 .brand {
    width: 136px;
  }

  body.version-2 .main-nav {
    font-size: clamp(2rem, 10vw, 4rem);
    gap: 1rem;
  }

  body.version-2 .hero,
  body.version-2 .statement,
  body.version-2 .about,
  body.version-2 .capabilities,
  body.version-2 .method,
  body.version-2 .parent-company,
  body.version-2 .projects,
  body.version-2 .contact {
    min-height: auto;
    display: block;
    padding-top: calc(var(--header) + 2rem);
    padding-bottom: 3.2rem;
  }

  body.version-2 .hero {
    min-height: 100svh;
    display: flex;
    align-items: center;
  }

  body.version-2 .hero h1 {
    font-size: clamp(2.15rem, 10.6vw, 3.95rem);
    line-height: 1.02;
    letter-spacing: -.042em;
  }

  body.version-2 .hero-text {
    font-size: clamp(.98rem, 4.2vw, 1.1rem);
  }

  body.version-2 .statement-content h2,
  body.version-2 .section-heading h2,
  body.version-2 .contact-intro h2 {
    font-size: clamp(1.95rem, 9vw, 3.15rem);
    line-height: 1.04;
  }

  body.version-2 .cards-grid {
    grid-template-columns: 1fr;
  }

  body.version-2 .service-card {
    min-height: auto;
    padding: 1.15rem 0;
    border-right: 0;
    border-left: 0;
  }

  body.version-2 .cards-grid {
    border-left: 0;
  }

  body.version-2 .timeline-item {
    grid-template-columns: 42px 1fr;
    gap: .85rem;
  }

  body.version-2 .addresses {
    grid-template-columns: 1fr;
  }

  body.version-2 .button {
    width: auto;
    min-width: 0;
  }

  body.version-2 .hero-actions {
    flex-direction: row;
  }
}

/* Small mobile screens */
@media (max-width: 520px) {
  body.version-2 .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  body.version-2 .button {
    width: 100%;
    min-height: 48px;
  }

  body.version-2 .hero h1 {
    font-size: clamp(2rem, 10.2vw, 3.25rem);
  }

  body.version-2 .hero-bg::after {
    inset: .65rem;
  }

  body.version-2 .contact-links {
    font-size: clamp(1rem, 5.7vw, 1.55rem);
  }
}

/* Short laptop screens */
@media (min-width: 821px) and (max-height: 760px) {
  body.version-2 .hero h1 {
    font-size: clamp(2.65rem, 4.6vw, 4.7rem);
  }

  body.version-2 .hero-text {
    margin-top: 1rem;
    font-size: 1rem;
  }

  body.version-2 .hero-actions {
    margin-top: 1.2rem;
  }

  body.version-2 .statement-content h2,
  body.version-2 .section-heading h2,
  body.version-2 .contact-intro h2 {
    font-size: clamp(2rem, 3.55vw, 3.65rem);
  }

  body.version-2 .service-card {
    min-height: 176px;
    padding: 1rem;
  }

  body.version-2 .service-card h3 {
    font-size: clamp(1rem, 1.35vw, 1.42rem);
  }

  body.version-2 .service-card p,
  body.version-2 .timeline-item p {
    font-size: .86rem;
  }

  body.version-2 .timeline-item {
    padding: .8rem 0;
  }
}


/* =========================================================
   VERSION 3 — contacts refinement
   - More organised contact page
   - Phone and email icons
   - Website reference removed from contact section
   - Smaller, better adjusted contact content
========================================================= */

body.version-3 {
  font-family: Arial, Helvetica, sans-serif;
  overflow-x: hidden;
}

body.version-3 .site-header:not(.is-scrolled):not(.menu-open) .brand {
  opacity: 1;
  pointer-events: auto;
}

body.version-3 .brand {
  width: clamp(132px, 13vw, 190px);
}

body.version-3 .container {
  width: min(calc(100% - 40px), var(--max));
}

body.version-3 .contact {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header) + clamp(1.8rem, 4svh, 3rem));
  padding-bottom: clamp(1.8rem, 4svh, 3rem);
}

body.version-3 .contact-grid {
  grid-template-columns: minmax(260px, .38fr) minmax(0, .62fr);
  gap: clamp(2rem, 4.8vw, 4.6rem);
  align-items: start;
}

body.version-3 .contact-intro h2 {
  font-size: clamp(2.05rem, 3.7vw, 4.05rem);
  line-height: 1.04;
  letter-spacing: -.04em;
}

body.version-3 .contact-intro p:not(.eyebrow) {
  max-width: 430px;
  font-size: clamp(.95rem, 1.2vw, 1.08rem);
  line-height: 1.45;
}

body.version-3 .contact-panel-v3 {
  display: grid;
  gap: clamp(.9rem, 1.8svh, 1.25rem);
  border-top: 1px solid var(--line-dark);
  padding-top: clamp(1rem, 2.2svh, 1.6rem);
}

body.version-3 .contact-card,
body.version-3 .contact-form-v3 {
  border: 1px solid var(--line-dark);
  padding: clamp(1rem, 1.8vw, 1.35rem);
  background: rgba(255,255,255,.025);
}

body.version-3 .contact-card h3,
body.version-3 .contact-form-v3 h3 {
  margin: 0 0 .9rem;
  font-size: .72rem;
  font-weight: 400;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255,255,255,.62);
}

body.version-3 .contact-list {
  display: grid;
  gap: .65rem;
}

body.version-3 .contact-item {
  display: flex;
  align-items: center;
  gap: .85rem;
  width: fit-content;
  color: var(--white);
  font-size: clamp(1rem, 1.55vw, 1.35rem);
  line-height: 1.12;
  letter-spacing: -.015em;
  transition: opacity .2s ease;
}

body.version-3 .contact-item:hover,
body.version-3 .contact-item:focus-visible {
  opacity: .65;
}

body.version-3 .contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255,255,255,.32);
  border-radius: 50%;
  font-size: .9rem;
  line-height: 1;
}

body.version-3 .addresses-v3 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.7rem);
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

body.version-3 .addresses-v3 h4 {
  margin: 0 0 .45rem;
  font-size: .74rem;
  font-weight: 400;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--white);
}

body.version-3 .addresses-v3 p {
  margin: 0;
  color: rgba(255,255,255,.68);
  font-size: clamp(.82rem, .95vw, .92rem);
  line-height: 1.42;
}

body.version-3 .contact-form-v3 {
  margin-top: 0;
  gap: .72rem;
}

body.version-3 .contact-form-v3 label {
  gap: .35rem;
  font-size: .68rem;
  letter-spacing: .13em;
}

body.version-3 .contact-form-v3 input,
body.version-3 .contact-form-v3 textarea {
  padding: .68rem .78rem;
  font-size: .9rem;
}

body.version-3 .contact-form-v3 textarea {
  min-height: 96px;
}

body.version-3 .contact-form-v3 .button {
  min-height: 44px;
  padding: 0 1rem;
  font-size: .68rem;
}

/* Keep previous responsive benefits for v3 as well */
body.version-3 .statement-content h2,
body.version-3 .section-heading h2,
body.version-3 .contact-intro h2 {
  font-family: Arial, Helvetica, sans-serif;
}

@media (max-width: 1100px) {
  body.version-3 .contact-grid {
    grid-template-columns: 1fr;
    gap: 1.7rem;
  }

  body.version-3 .contact {
    min-height: auto;
    display: block;
  }

  body.version-3 .contact-intro h2 {
    max-width: 760px;
  }
}

@media (max-width: 820px) {
  body.version-3 .contact {
    padding-top: calc(var(--header) + 2rem);
    padding-bottom: 3rem;
  }

  body.version-3 .container {
    width: min(calc(100% - 28px), var(--max));
  }

  body.version-3 .contact-intro h2 {
    font-size: clamp(1.95rem, 8.8vw, 3.05rem);
  }

  body.version-3 .addresses-v3 {
    grid-template-columns: 1fr;
  }

  body.version-3 .contact-item {
    font-size: clamp(.98rem, 4.4vw, 1.18rem);
  }

  body.version-3 .contact-card,
  body.version-3 .contact-form-v3 {
    padding: 1rem;
  }
}

@media (max-width: 520px) {
  body.version-3 .contact-item {
    align-items: flex-start;
    gap: .7rem;
  }

  body.version-3 .contact-icon {
    width: 29px;
    height: 29px;
    flex-basis: 29px;
    font-size: .78rem;
  }

  body.version-3 .contact-form-v3 .button {
    width: 100%;
  }
}

@media (min-width: 821px) and (max-height: 760px) {
  body.version-3 .contact-intro h2 {
    font-size: clamp(1.9rem, 3.2vw, 3.4rem);
  }

  body.version-3 .contact-panel-v3 {
    gap: .75rem;
    padding-top: .9rem;
  }

  body.version-3 .contact-card,
  body.version-3 .contact-form-v3 {
    padding: .85rem 1rem;
  }

  body.version-3 .contact-card h3,
  body.version-3 .contact-form-v3 h3 {
    margin-bottom: .65rem;
  }

  body.version-3 .contact-form-v3 textarea {
    min-height: 72px;
  }
}


/* =========================================================
   VERSION 4 — full responsive refinement for all sections
   - Keeps contacts layout from Version 3
   - Adjusts every other section to the visible screen
   - Reduces oversized typography
   - Uses basic sans-serif typography throughout
   - Prevents horizontal overflow
========================================================= */

:root {
  --header: 72px;
  --max: 1140px;
}

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body.version-4 {
  font-family: Arial, Helvetica, sans-serif;
  letter-spacing: 0;
}

body.version-4 * {
  box-sizing: border-box;
}

body.version-4 img,
body.version-4 svg,
body.version-4 video {
  max-width: 100%;
  height: auto;
}

body.version-4 .site-header {
  height: var(--header);
}

body.version-4 .header-inner {
  width: min(calc(100% - 36px), 1320px);
}

body.version-4 .brand {
  width: clamp(124px, 12vw, 178px);
}

body.version-4 .site-header:not(.is-scrolled):not(.menu-open) .brand {
  opacity: 1;
  pointer-events: auto;
}

body.version-4 .main-nav {
  gap: clamp(.7rem, 1.25vw, 1.25rem);
  font-size: clamp(.6rem, .72vw, .7rem);
  letter-spacing: .12em;
}

body.version-4 .container {
  width: min(calc(100% - 36px), var(--max));
  margin-inline: auto;
}

body.version-4 section {
  scroll-margin-top: var(--header);
}

/* Page sections: fit to viewport where possible */
body.version-4 .hero,
body.version-4 .statement,
body.version-4 .about,
body.version-4 .capabilities,
body.version-4 .method,
body.version-4 .parent-company,
body.version-4 .projects,
body.version-4 .contact {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header) + clamp(1.1rem, 3svh, 2.2rem));
  padding-bottom: clamp(1.1rem, 3svh, 2.2rem);
}

/* Hero */
body.version-4 .hero-grid-single {
  grid-template-columns: minmax(0, 1fr);
}

body.version-4 .hero-copy-wide,
body.version-4 .hero-copy {
  width: min(100%, 980px);
  max-width: 980px;
}

body.version-4 .hero h1 {
  max-width: 980px;
  font-size: clamp(2.6rem, 4.75vw, 5.1rem);
  line-height: 1.02;
  letter-spacing: -.04em;
  text-wrap: balance;
}

body.version-4 .hero-text {
  max-width: 700px;
  margin-top: clamp(.9rem, 2.2svh, 1.4rem);
  font-size: clamp(.96rem, 1.18vw, 1.12rem);
  line-height: 1.45;
}

body.version-4 .hero-actions {
  margin-top: clamp(1rem, 2.7svh, 1.8rem);
}

body.version-4 .button {
  min-height: 46px;
  padding: 0 1rem;
  font-size: .64rem;
}

/* Shared typography */
body.version-4 .eyebrow,
body.version-4 .section-kicker {
  margin-bottom: clamp(.65rem, 1.5svh, 1rem);
  font-size: .62rem;
  letter-spacing: .18em;
}

body.version-4 .hero h1,
body.version-4 .statement-content h2,
body.version-4 .section-heading h2,
body.version-4 .contact-intro h2,
body.version-4 .project-placeholder h3,
body.version-4 .service-card h3,
body.version-4 .timeline-item h3 {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 500;
}

/* Statement / parent company */
body.version-4 .statement-grid {
  grid-template-columns: minmax(170px, .28fr) minmax(0, .72fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  padding-top: clamp(1rem, 2.4svh, 1.8rem);
}

body.version-4 .statement-content h2 {
  font-size: clamp(2.15rem, 3.95vw, 4.2rem);
  line-height: 1.04;
  letter-spacing: -.04em;
  text-wrap: balance;
}

body.version-4 .statement-content p {
  max-width: 760px;
  margin-top: clamp(.9rem, 2svh, 1.4rem);
  font-size: clamp(.95rem, 1.2vw, 1.1rem);
  line-height: 1.48;
}

/* About */
body.version-4 .split-grid {
  grid-template-columns: minmax(250px, .42fr) minmax(0, .58fr);
  gap: clamp(1.8rem, 5vw, 4.5rem);
}

body.version-4 .section-heading h2 {
  font-size: clamp(2.05rem, 3.75vw, 4rem);
  line-height: 1.04;
  letter-spacing: -.04em;
  text-wrap: balance;
}

body.version-4 .rich-text {
  max-width: 650px;
  font-size: clamp(.94rem, 1.16vw, 1.08rem);
  line-height: 1.48;
}

body.version-4 .rich-text p + p {
  margin-top: clamp(.75rem, 1.6svh, 1.05rem);
}

/* Services */
body.version-4 .section-heading-wide {
  max-width: 830px;
  margin-bottom: clamp(1.05rem, 2.4svh, 1.8rem);
}

body.version-4 .capabilities .section-heading h2 {
  font-size: clamp(2rem, 3.55vw, 3.7rem);
}

body.version-4 .cards-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.version-4 .service-card {
  min-height: clamp(140px, 21svh, 205px);
  padding: clamp(.85rem, 1.25vw, 1.25rem);
}

body.version-4 .card-number {
  font-size: .62rem;
  letter-spacing: .16em;
}

body.version-4 .service-card h3 {
  max-width: 100%;
  font-size: clamp(.98rem, 1.35vw, 1.36rem);
  line-height: 1.1;
  letter-spacing: -.015em;
}

body.version-4 .service-card p {
  margin-top: .7rem;
  font-size: clamp(.78rem, .9vw, .88rem);
  line-height: 1.38;
}

/* Method */
body.version-4 .sticky-heading {
  top: calc(var(--header) + 1rem);
}

body.version-4 .method .section-heading h2 {
  font-size: clamp(2rem, 3.45vw, 3.6rem);
}

body.version-4 .timeline-item {
  grid-template-columns: 52px 1fr;
  gap: 1.15rem;
  padding: clamp(.64rem, 1.25svh, 1rem) 0;
}

body.version-4 .timeline-item span {
  font-size: .62rem;
  letter-spacing: .15em;
}

body.version-4 .timeline-item h3 {
  font-size: clamp(1.08rem, 1.8vw, 1.85rem);
  line-height: 1.06;
}

body.version-4 .timeline-item p {
  max-width: 620px;
  margin-top: .28rem;
  font-size: clamp(.78rem, .9vw, .9rem);
  line-height: 1.36;
}

/* Projects */
body.version-4 .project-placeholder {
  grid-template-columns: minmax(260px, .48fr) minmax(0, .52fr);
  gap: clamp(1.4rem, 4vw, 3.4rem);
  padding-top: clamp(1rem, 2.2svh, 1.8rem);
}

body.version-4 .placeholder-visual {
  max-height: 42svh;
}

body.version-4 .project-placeholder h3 {
  font-size: clamp(1.55rem, 2.7vw, 2.7rem);
  line-height: 1.05;
}

body.version-4 .project-placeholder p {
  margin-top: .75rem;
  font-size: clamp(.9rem, 1.1vw, 1.02rem);
  line-height: 1.45;
}

/* Contact page stays organised from v3, but receives global scaling */
body.version-4 .contact-grid {
  grid-template-columns: minmax(245px, .36fr) minmax(0, .64fr);
  gap: clamp(1.6rem, 4vw, 4rem);
}

body.version-4 .contact-intro h2 {
  font-size: clamp(1.9rem, 3.3vw, 3.55rem);
}

body.version-4 .contact-panel-v3 {
  gap: clamp(.7rem, 1.5svh, 1rem);
}

body.version-4 .contact-card,
body.version-4 .contact-form-v3 {
  padding: clamp(.8rem, 1.35vw, 1.1rem);
}

/* Standard laptop screens */
@media (min-width: 821px) and (max-height: 760px) {
  :root {
    --header: 64px;
  }

  body.version-4 .hero,
  body.version-4 .statement,
  body.version-4 .about,
  body.version-4 .capabilities,
  body.version-4 .method,
  body.version-4 .parent-company,
  body.version-4 .projects,
  body.version-4 .contact {
    padding-top: calc(var(--header) + .8rem);
    padding-bottom: .8rem;
  }

  body.version-4 .brand {
    width: 142px;
  }

  body.version-4 .hero h1 {
    font-size: clamp(2.35rem, 4.15vw, 4.35rem);
  }

  body.version-4 .hero-text {
    font-size: .96rem;
  }

  body.version-4 .statement-content h2,
  body.version-4 .section-heading h2 {
    font-size: clamp(1.85rem, 3.15vw, 3.25rem);
  }

  body.version-4 .statement-content p,
  body.version-4 .rich-text {
    font-size: .9rem;
  }

  body.version-4 .section-heading-wide {
    margin-bottom: .95rem;
  }

  body.version-4 .service-card {
    min-height: 132px;
    padding: .78rem;
  }

  body.version-4 .service-card h3 {
    font-size: clamp(.9rem, 1.18vw, 1.18rem);
  }

  body.version-4 .service-card p {
    font-size: .76rem;
    line-height: 1.3;
  }

  body.version-4 .timeline-item {
    padding: .48rem 0;
  }

  body.version-4 .timeline-item h3 {
    font-size: clamp(1rem, 1.55vw, 1.5rem);
  }

  body.version-4 .timeline-item p {
    font-size: .76rem;
    line-height: 1.3;
  }

  body.version-4 .project-placeholder h3 {
    font-size: clamp(1.35rem, 2.3vw, 2.25rem);
  }

  body.version-4 .project-placeholder p {
    font-size: .84rem;
  }
}

/* Tablets */
@media (max-width: 1100px) {
  body.version-4 .statement-grid,
  body.version-4 .split-grid,
  body.version-4 .contact-grid,
  body.version-4 .project-placeholder {
    grid-template-columns: 1fr;
    gap: clamp(1.2rem, 3vw, 2.4rem);
  }

  body.version-4 .sticky-heading {
    position: static;
  }

  body.version-4 .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.version-4 .statement-content h2,
  body.version-4 .section-heading h2,
  body.version-4 .contact-intro h2 {
    max-width: 860px;
  }
}

/* Mobile */
@media (max-width: 820px) {
  :root {
    --header: 68px;
  }

  body.version-4 .container,
  body.version-4 .header-inner {
    width: min(calc(100% - 28px), var(--max));
  }

  body.version-4 .brand {
    width: 132px;
  }

  body.version-4 .main-nav {
    font-size: clamp(1.9rem, 9vw, 3.5rem);
  }

  body.version-4 .hero,
  body.version-4 .statement,
  body.version-4 .about,
  body.version-4 .capabilities,
  body.version-4 .method,
  body.version-4 .parent-company,
  body.version-4 .projects,
  body.version-4 .contact {
    min-height: auto;
    display: block;
    padding-top: calc(var(--header) + 1.65rem);
    padding-bottom: 2.8rem;
  }

  body.version-4 .hero {
    min-height: 100svh;
    display: flex;
    align-items: center;
  }

  body.version-4 .hero h1 {
    font-size: clamp(2rem, 9.8vw, 3.65rem);
    line-height: 1.04;
    letter-spacing: -.038em;
  }

  body.version-4 .hero-text {
    font-size: clamp(.92rem, 3.9vw, 1.04rem);
  }

  body.version-4 .hero-actions {
    flex-wrap: wrap;
  }

  body.version-4 .statement-content h2,
  body.version-4 .section-heading h2,
  body.version-4 .contact-intro h2 {
    font-size: clamp(1.85rem, 8.4vw, 3rem);
    line-height: 1.06;
  }

  body.version-4 .cards-grid {
    grid-template-columns: 1fr;
    border-left: 0;
  }

  body.version-4 .service-card {
    min-height: auto;
    border-right: 0;
    padding: 1rem 0;
  }

  body.version-4 .timeline-item {
    grid-template-columns: 38px 1fr;
    gap: .75rem;
    padding: .82rem 0;
  }

  body.version-4 .placeholder-visual {
    max-height: none;
  }

  body.version-4 .project-placeholder {
    gap: 1.3rem;
  }
}

/* Small mobile */
@media (max-width: 520px) {
  body.version-4 .hero h1 {
    font-size: clamp(1.95rem, 9.6vw, 3.1rem);
  }

  body.version-4 .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  body.version-4 .button {
    width: 100%;
  }

  body.version-4 .contact-list span:last-child {
    word-break: break-word;
  }
}


/* =========================================================
   VERSION 5
   - Removed Integration section
   - Removed Projects section
   - Removed Projects item from navigation
   - Keeps all responsive and contacts refinements
========================================================= */

body.version-5 .main-nav {
  gap: clamp(.85rem, 1.45vw, 1.45rem);
}

body.version-5 .contact {
  border-top: 1px solid var(--line-dark);
}

/* Slightly better rhythm now that the site is shorter */
body.version-5 .method {
  border-bottom: 1px solid rgba(5, 5, 5, 0.14);
}

@media (max-width: 820px) {
  body.version-5 .main-nav {
    gap: 1rem;
  }
}


/* =========================================================
   VERSION 6 — visual system based on the Unfoldforms manual
========================================================= */

:root {
  --black: #000000;
  --black-soft: #000000;
  --white: #ffffff;
  --paper: #ffffff;
  --paper-soft: #f3f3f3;
  --muted: #969696;
  --muted-dark: #696969;
  --line-dark: rgba(255, 255, 255, 0.22);
  --line-light: rgba(0, 0, 0, 0.16);
}

body.version-6 {
  font-family: "Basic Sans", Arial, Helvetica, sans-serif;
  background: #ffffff;
}

body.version-6 .section-light { background: #ffffff; }
body.version-6 .section-dark { background: #000000; }

body.version-6 .site-header.is-scrolled,
body.version-6 .site-header.menu-open {
  background: rgba(255, 255, 255, .94);
}

body.version-6 .manual-section {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

body.version-6 .manual-section > .container {
  position: relative;
  z-index: 3;
}

/* Editorial numbering */
body.version-6 .manual-index {
  position: absolute;
  z-index: 4;
  top: calc(var(--header) + 14px);
  left: max(18px, calc((100vw - min(100vw - 36px, var(--max))) / 2));
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-size: .58rem;
  letter-spacing: .16em;
  line-height: 1;
  opacity: .68;
  pointer-events: none;
}

body.version-6 .manual-index::after {
  content: "";
  display: block;
  width: 34px;
  height: 1px;
  background: currentColor;
  opacity: .65;
}

body.version-6 .manual-index-dark { color: #ffffff; }
body.version-6 .manual-index-light { color: #000000; }

/* Brand pattern rails */
body.version-6 .manual-pattern {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  background-repeat: repeat;
  background-position: center;
  background-size: 520px auto;
}

body.version-6 .pattern-hero {
  top: var(--header);
  right: 0;
  bottom: 0;
  width: clamp(86px, 9vw, 150px);
  background-image:
    linear-gradient(to right, rgba(0,0,0,1), rgba(0,0,0,.10)),
    url("../img/brand-pattern-negative.png");
  opacity: .34;
}

body.version-6 .pattern-statement {
  top: 0;
  left: 0;
  bottom: 0;
  width: clamp(68px, 7vw, 112px);
  background-image:
    linear-gradient(to right, rgba(255,255,255,.08), rgba(255,255,255,1)),
    url("../img/brand-pattern-positive.png");
  opacity: .20;
}

body.version-6 .pattern-services {
  left: 0;
  right: 0;
  bottom: 0;
  height: clamp(42px, 7svh, 72px);
  background-image:
    linear-gradient(to bottom, rgba(0,0,0,1), rgba(0,0,0,.08)),
    url("../img/brand-pattern-negative.png");
  background-size: 600px auto;
  opacity: .30;
}

body.version-6 .pattern-method {
  top: var(--header);
  right: 0;
  bottom: 0;
  width: clamp(58px, 6vw, 98px);
  background-image:
    linear-gradient(to left, rgba(255,255,255,.04), rgba(255,255,255,1)),
    url("../img/brand-pattern-positive.png");
  opacity: .17;
}

body.version-6 .pattern-contact {
  right: 0;
  top: var(--header);
  width: clamp(180px, 22vw, 330px);
  height: clamp(62px, 12svh, 110px);
  background-image:
    linear-gradient(to left, rgba(0,0,0,.04), rgba(0,0,0,1)),
    url("../img/brand-pattern-negative.png");
  background-size: 500px auto;
  opacity: .36;
}

/* Hero */
body.version-6 .hero-copy-wide,
body.version-6 .hero-copy {
  max-width: min(980px, calc(100% - clamp(70px, 9vw, 145px)));
}

body.version-6 .hero h1 {
  font-weight: 400;
  letter-spacing: -.045em;
}

body.version-6 .hero-text {
  color: rgba(255,255,255,.72);
}

/* Labels and secondary text */
body.version-6 .eyebrow,
body.version-6 .section-kicker {
  color: #969696;
  font-weight: 400;
}

body.version-6 .statement-grid {
  border-top-color: rgba(0,0,0,.18);
}

body.version-6 .statement-content h2,
body.version-6 .section-heading h2 {
  font-weight: 400;
}

body.version-6 .statement-content p,
body.version-6 .rich-text,
body.version-6 .timeline-item p {
  color: #696969;
}

/* About monogram */
body.version-6 .manual-monogram {
  position: absolute;
  z-index: 1;
  pointer-events: none;
}

body.version-6 .monogram-about {
  right: clamp(28px, 7vw, 110px);
  bottom: clamp(28px, 7svh, 90px);
  width: clamp(150px, 20vw, 300px);
  opacity: .045;
}

/* Services */
body.version-6 .service-card {
  position: relative;
  background: #000000;
}

body.version-6 .service-card::after {
  content: "";
  position: absolute;
  right: .85rem;
  top: .85rem;
  width: clamp(22px, 2.4vw, 34px);
  aspect-ratio: 1.55 / 1;
  background: url("../img/brand-monogram-white.png") center / contain no-repeat;
  opacity: .24;
}

body.version-6 .service-card:hover { background: #0a0a0a; }

body.version-6 .cards-grid,
body.version-6 .service-card {
  border-color: rgba(255,255,255,.20);
}

/* Method */
body.version-6 .timeline {
  border-top-color: rgba(0,0,0,.18);
}

body.version-6 .timeline-item {
  border-bottom-color: rgba(0,0,0,.18);
}

body.version-6 .timeline-item span {
  color: #969696;
}

/* Contact */
body.version-6 .contact-card,
body.version-6 .contact-form-v3 {
  background: transparent;
  border-color: rgba(255,255,255,.22);
}

body.version-6 .contact-icon {
  border-radius: 0;
  border-color: rgba(255,255,255,.35);
}

body.version-6 .contact-card h3,
body.version-6 .contact-form-v3 h3 {
  color: #969696;
}

/* Buttons */
body.version-6 .button {
  border-radius: 0;
  font-family: "Basic Sans", Arial, Helvetica, sans-serif;
}

body.version-6 .button-primary {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
}

body.version-6 .section-light .button-primary {
  background: #000000;
  color: #ffffff;
  border-color: #000000;
}

/* Footer */
body.version-6 .site-footer {
  position: relative;
  overflow: hidden;
}

body.version-6 .site-footer::after {
  content: "";
  position: absolute;
  right: 3vw;
  top: 50%;
  width: 64px;
  height: 44px;
  transform: translateY(-50%);
  background: url("../img/brand-monogram-white.png") center / contain no-repeat;
  opacity: .32;
}

@media (max-width: 1100px) {
  body.version-6 .hero-copy-wide,
  body.version-6 .hero-copy {
    max-width: calc(100% - 72px);
  }

  body.version-6 .pattern-hero { width: 68px; }
  body.version-6 .pattern-statement,
  body.version-6 .pattern-method { width: 52px; }

  body.version-6 .manual-index {
    top: calc(var(--header) + 10px);
  }
}

@media (max-width: 820px) {
  body.version-6 .manual-index {
    left: 14px;
    top: calc(var(--header) + 9px);
    font-size: .54rem;
  }

  body.version-6 .manual-index::after { width: 24px; }

  body.version-6 .pattern-hero {
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 54px;
    background-image:
      linear-gradient(to bottom, rgba(0,0,0,1), rgba(0,0,0,.10)),
      url("../img/brand-pattern-negative.png");
    background-size: 420px auto;
    opacity: .32;
  }

  body.version-6 .hero-copy-wide,
  body.version-6 .hero-copy { max-width: 100%; }

  body.version-6 .pattern-statement,
  body.version-6 .pattern-method { display: none; }

  body.version-6 .pattern-services { height: 38px; }

  body.version-6 .pattern-contact {
    width: 150px;
    height: 58px;
    opacity: .26;
  }

  body.version-6 .monogram-about {
    width: 150px;
    right: 18px;
    bottom: 18px;
    opacity: .035;
  }

  body.version-6 .service-card::after {
    right: .2rem;
    top: .8rem;
    opacity: .16;
  }

  body.version-6 .site-footer::after { width: 48px; }
}

@media (max-width: 520px) {
  body.version-6 .pattern-contact { display: none; }
  body.version-6 .manual-index { opacity: .52; }
}


/* =========================================================
   VERSION 7 — positive arches on white pages + PT-PT copy
========================================================= */

/* White-page arches must be visibly present, not merely ghosted */
body.version-7 .pattern-statement {
  top: var(--header);
  left: auto;
  right: 0;
  bottom: 0;
  width: clamp(78px, 9vw, 145px);
  background-image:
    linear-gradient(to left, rgba(255,255,255,.06), rgba(255,255,255,.95)),
    url("../img/brand-pattern-positive.png");
  background-size: 470px auto;
  background-position: center;
  opacity: .62;
}

body.version-7 .pattern-about {
  left: 0;
  right: 0;
  bottom: 0;
  height: clamp(48px, 8svh, 82px);
  background-image:
    linear-gradient(to bottom, rgba(255,255,255,1), rgba(255,255,255,.06)),
    url("../img/brand-pattern-positive.png");
  background-size: 540px auto;
  background-position: center;
  opacity: .52;
}

body.version-7 .pattern-method {
  top: var(--header);
  left: 0;
  right: auto;
  bottom: 0;
  width: clamp(68px, 8vw, 125px);
  background-image:
    linear-gradient(to right, rgba(255,255,255,.05), rgba(255,255,255,.95)),
    url("../img/brand-pattern-positive.png");
  background-size: 470px auto;
  background-position: center;
  opacity: .58;
}

/* Keep text clear beside the positive pattern rails */
body.version-7 .statement .container {
  padding-right: clamp(52px, 8vw, 110px);
}

body.version-7 .method .container {
  padding-left: clamp(46px, 7vw, 96px);
}

body.version-7 .about .container {
  padding-bottom: clamp(34px, 5svh, 58px);
}

/* Slightly calmer editorial typography for the revised text */
body.version-7 .statement-content h2,
body.version-7 .section-heading h2,
body.version-7 .contact-intro h2 {
  text-wrap: balance;
}

body.version-7 .rich-text,
body.version-7 .statement-content p,
body.version-7 .service-card p,
body.version-7 .timeline-item p,
body.version-7 .contact-intro p:not(.eyebrow) {
  text-wrap: pretty;
}

/* Tablet */
@media (max-width: 1100px) {
  body.version-7 .statement .container,
  body.version-7 .method .container {
    padding-left: 0;
    padding-right: 0;
  }

  body.version-7 .pattern-statement {
    width: 66px;
    opacity: .52;
  }

  body.version-7 .pattern-method {
    width: 60px;
    opacity: .50;
  }
}

/* Mobile: use horizontal positive-pattern bands on white sections */
@media (max-width: 820px) {
  body.version-7 .pattern-statement,
  body.version-7 .pattern-method {
    display: block;
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 42px;
    background-image:
      linear-gradient(to bottom, rgba(255,255,255,1), rgba(255,255,255,.04)),
      url("../img/brand-pattern-positive.png");
    background-size: 400px auto;
    opacity: .48;
  }

  body.version-7 .pattern-about {
    height: 42px;
    background-size: 400px auto;
    opacity: .48;
  }

  body.version-7 .statement .container,
  body.version-7 .about .container,
  body.version-7 .method .container {
    padding-left: 0;
    padding-right: 0;
    padding-bottom: 34px;
  }
}


/* =========================================================
   VERSION 8
   - Arco grande suave em todas as secções exceto Contactos
   - Mais 2 linhas no padrão inferior (4–5 linhas visíveis)
   - Linguagem visual mais próxima do manual
========================================================= */

/* Desativar os padrões laterais anteriores nas secções não-contactos */
body.version-8 #inicio .manual-pattern,
body.version-8 .statement .manual-pattern,
body.version-8 #sobre .manual-pattern,
body.version-8 #servicos .manual-pattern,
body.version-8 #metodo .manual-pattern {
  display: none;
}

/* Garantir camadas */
body.version-8 .manual-section {
  position: relative;
  overflow: hidden;
}

body.version-8 .manual-section > .container,
body.version-8 .manual-section .manual-index {
  position: relative;
  z-index: 3;
}

/* Estrutura comum:
   ::before = arco grande discreto
   ::after  = padrão inferior com mais linhas
*/
body.version-8 #inicio::before,
body.version-8 .statement::before,
body.version-8 #sobre::before,
body.version-8 #servicos::before,
body.version-8 #metodo::before,
body.version-8 #inicio::after,
body.version-8 .statement::after,
body.version-8 #sobre::after,
body.version-8 #servicos::after,
body.version-8 #metodo::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

/* ARCO GRANDE */

/* Secções claras */
body.version-8 .statement::before,
body.version-8 #sobre::before,
body.version-8 #metodo::before {
  right: clamp(14px, 5vw, 72px);
  bottom: clamp(34px, 6svh, 78px);
  width: clamp(210px, 28vw, 420px);
  aspect-ratio: 1.48 / 1;
  background: url("../img/brand-monogram-black.png") center / contain no-repeat;
  opacity: .055;
  z-index: 1;
}

/* Secções escuras */
body.version-8 #inicio::before,
body.version-8 #servicos::before {
  right: clamp(14px, 5vw, 80px);
  bottom: clamp(32px, 6svh, 82px);
  width: clamp(220px, 30vw, 430px);
  aspect-ratio: 1.48 / 1;
  background: url("../img/brand-monogram-white.png") center / contain no-repeat;
  opacity: .08;
  z-index: 1;
}

/* Algumas variações subtis de posição para maior riqueza compositiva */
body.version-8 .statement::before {
  right: clamp(16px, 4vw, 64px);
  bottom: clamp(24px, 5svh, 56px);
}

body.version-8 #sobre::before {
  right: clamp(12px, 5vw, 54px);
  bottom: clamp(18px, 4svh, 42px);
  width: clamp(240px, 31vw, 450px);
  opacity: .06;
}

body.version-8 #metodo::before {
  right: clamp(20px, 6vw, 86px);
  bottom: clamp(20px, 4svh, 42px);
}

/* Padrão inferior com mais linhas */

/* Secções claras */
body.version-8 .statement::after,
body.version-8 #sobre::after,
body.version-8 #metodo::after {
  left: 0;
  right: 0;
  bottom: 0;
  height: clamp(86px, 15svh, 138px);
  background-image:
    linear-gradient(to bottom, rgba(255,255,255,1), rgba(255,255,255,.04)),
    url("../img/brand-pattern-positive.png");
  background-repeat: repeat-x;
  background-position: center bottom;
  background-size: 265px auto;
  opacity: .72;
  z-index: 1;
}

/* Secções escuras */
body.version-8 #inicio::after,
body.version-8 #servicos::after {
  left: 0;
  right: 0;
  bottom: 0;
  height: clamp(86px, 15svh, 138px);
  background-image:
    linear-gradient(to bottom, rgba(0,0,0,1), rgba(0,0,0,.06)),
    url("../img/brand-pattern-negative.png");
  background-repeat: repeat-x;
  background-position: center bottom;
  background-size: 265px auto;
  opacity: .56;
  z-index: 1;
}

/* Ajustar o espaçamento inferior para o padrão respirar */
body.version-8 #inicio .container,
body.version-8 .statement .container,
body.version-8 #sobre .container,
body.version-8 #servicos .container,
body.version-8 #metodo .container {
  padding-bottom: clamp(46px, 7svh, 88px);
}

/* O conteúdo deve continuar a ler-se bem */
body.version-8 .hero-copy,
body.version-8 .hero-copy-wide,
body.version-8 .statement-content,
body.version-8 .rich-text,
body.version-8 .timeline,
body.version-8 .cards-grid {
  position: relative;
  z-index: 3;
}

/* Pequeno ajuste para que o "Sobre" não fique demasiado carregado */
body.version-8 #sobre .monogram-about {
  display: none;
}

/* Tablet */
@media (max-width: 1100px) {
  body.version-8 .statement::before,
  body.version-8 #sobre::before,
  body.version-8 #metodo::before,
  body.version-8 #inicio::before,
  body.version-8 #servicos::before {
    width: clamp(180px, 26vw, 320px);
    bottom: 18px;
  }

  body.version-8 .statement::after,
  body.version-8 #sobre::after,
  body.version-8 #metodo::after,
  body.version-8 #inicio::after,
  body.version-8 #servicos::after {
    height: clamp(80px, 13svh, 120px);
    background-size: 235px auto;
  }
}

/* Mobile */
@media (max-width: 820px) {
  body.version-8 .statement::before,
  body.version-8 #sobre::before,
  body.version-8 #metodo::before,
  body.version-8 #inicio::before,
  body.version-8 #servicos::before {
    right: 8px;
    bottom: 22px;
    width: clamp(170px, 38vw, 250px);
    opacity: .055;
  }

  body.version-8 #inicio::before,
  body.version-8 #servicos::before {
    opacity: .07;
  }

  body.version-8 .statement::after,
  body.version-8 #sobre::after,
  body.version-8 #metodo::after,
  body.version-8 #inicio::after,
  body.version-8 #servicos::after {
    height: 98px;
    background-size: 205px auto;
    opacity: .68;
  }

  body.version-8 #inicio::after,
  body.version-8 #servicos::after {
    opacity: .52;
  }

  body.version-8 #inicio .container,
  body.version-8 .statement .container,
  body.version-8 #sobre .container,
  body.version-8 #servicos .container,
  body.version-8 #metodo .container {
    padding-bottom: 72px;
  }
}

/* Telemóveis pequenos */
@media (max-width: 520px) {
  body.version-8 .statement::before,
  body.version-8 #sobre::before,
  body.version-8 #metodo::before,
  body.version-8 #inicio::before,
  body.version-8 #servicos::before {
    width: 175px;
    bottom: 18px;
  }

  body.version-8 .statement::after,
  body.version-8 #sobre::after,
  body.version-8 #metodo::after,
  body.version-8 #inicio::after,
  body.version-8 #servicos::after {
    height: 88px;
    background-size: 182px auto;
  }
}


/* =========================================================
   VERSION 9
   - padrão inferior reconstruído com tile contínuo
   - arco maior, na direita, acima do padrão
   - sem sobreposição direta entre arco grande e linhas de arcos
========================================================= */

/* esconder os remendos da versão anterior */
body.version-9 #inicio::after,
body.version-9 .statement::after,
body.version-9 #sobre::after,
body.version-9 #servicos::after,
body.version-9 #metodo::after,
body.version-9 #inicio::before,
body.version-9 .statement::before,
body.version-9 #sobre::before,
body.version-9 #servicos::before,
body.version-9 #metodo::before {
  content: "";
  position: absolute;
  pointer-events: none;
}

/* Altura base do padrão inferior */
body.version-9 {
  --pattern-band-height: clamp(96px, 16svh, 152px);
  --arc-gap-from-band: clamp(18px, 2.8svh, 28px);
}

/* Arco grande, mais limpo e totalmente separado do padrão */
body.version-9 #inicio::before,
body.version-9 .statement::before,
body.version-9 #sobre::before,
body.version-9 #servicos::before,
body.version-9 #metodo::before {
  right: clamp(10px, 4vw, 70px);
  bottom: calc(var(--pattern-band-height) + var(--arc-gap-from-band));
  width: clamp(250px, 34vw, 520px);
  aspect-ratio: 1.52 / 1;
  z-index: 1;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

/* Secções claras */
body.version-9 .statement::before,
body.version-9 #sobre::before,
body.version-9 #metodo::before {
  background-image: url("../img/brand-monogram-black.png");
  opacity: .06;
}

/* Secções escuras */
body.version-9 #inicio::before,
body.version-9 #servicos::before {
  background-image: url("../img/brand-monogram-white.png");
  opacity: .085;
}

/* Padrão inferior contínuo, com 5 linhas */
body.version-9 #inicio::after,
body.version-9 .statement::after,
body.version-9 #sobre::after,
body.version-9 #servicos::after,
body.version-9 #metodo::after {
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--pattern-band-height);
  z-index: 1;
  background-repeat: repeat-x;
  background-position: center bottom;
  background-size: 280px auto;
}

/* Secções claras */
body.version-9 .statement::after,
body.version-9 #sobre::after,
body.version-9 #metodo::after {
  background-image:
    linear-gradient(to bottom, rgba(255,255,255,1), rgba(255,255,255,.03)),
    url("../img/pattern-tile-light-v9.png");
  opacity: .92;
}

/* Secções escuras */
body.version-9 #inicio::after,
body.version-9 #servicos::after {
  background-image:
    linear-gradient(to bottom, rgba(0,0,0,1), rgba(0,0,0,.04)),
    url("../img/pattern-tile-dark-v9.png");
  opacity: .64;
}

/* Dar mais espaço inferior ao conteúdo */
body.version-9 #inicio .container,
body.version-9 .statement .container,
body.version-9 #sobre .container,
body.version-9 #servicos .container,
body.version-9 #metodo .container {
  padding-bottom: calc(var(--pattern-band-height) + 22px);
}

/* Remover o monograma antigo do sobre, para não conflituar */
body.version-9 #sobre .monogram-about {
  display: none;
}

/* Ajustes finos por secção */
body.version-9 .statement::before {
  width: clamp(270px, 36vw, 540px);
  right: clamp(6px, 3vw, 52px);
  opacity: .055;
}

body.version-9 #sobre::before {
  width: clamp(280px, 37vw, 560px);
  right: clamp(2px, 2vw, 38px);
  opacity: .06;
}

body.version-9 #metodo::before {
  width: clamp(260px, 35vw, 520px);
}

body.version-9 #servicos::before {
  width: clamp(260px, 34vw, 510px);
}

/* Tablet */
@media (max-width: 1100px) {
  body.version-9 {
    --pattern-band-height: 124px;
  }

  body.version-9 #inicio::before,
  body.version-9 .statement::before,
  body.version-9 #sobre::before,
  body.version-9 #servicos::before,
  body.version-9 #metodo::before {
    width: clamp(220px, 30vw, 360px);
    right: 12px;
  }

  body.version-9 #inicio::after,
  body.version-9 .statement::after,
  body.version-9 #sobre::after,
  body.version-9 #servicos::after,
  body.version-9 #metodo::after {
    background-size: 250px auto;
  }
}

/* Mobile */
@media (max-width: 820px) {
  body.version-9 {
    --pattern-band-height: 116px;
    --arc-gap-from-band: 16px;
  }

  body.version-9 #inicio::before,
  body.version-9 .statement::before,
  body.version-9 #sobre::before,
  body.version-9 #servicos::before,
  body.version-9 #metodo::before {
    right: 8px;
    bottom: calc(var(--pattern-band-height) + var(--arc-gap-from-band));
    width: clamp(190px, 46vw, 300px);
    opacity: .05;
  }

  body.version-9 #inicio::before,
  body.version-9 #servicos::before {
    opacity: .07;
  }

  body.version-9 #inicio::after,
  body.version-9 .statement::after,
  body.version-9 #sobre::after,
  body.version-9 #servicos::after,
  body.version-9 #metodo::after {
    background-size: 220px auto;
    opacity: .96;
  }

  body.version-9 #inicio::after,
  body.version-9 #servicos::after {
    opacity: .66;
  }

  body.version-9 #inicio .container,
  body.version-9 .statement .container,
  body.version-9 #sobre .container,
  body.version-9 #servicos .container,
  body.version-9 #metodo .container {
    padding-bottom: calc(var(--pattern-band-height) + 18px);
  }
}

/* Telemóvel pequeno */
@media (max-width: 520px) {
  body.version-9 {
    --pattern-band-height: 102px;
    --arc-gap-from-band: 12px;
  }

  body.version-9 #inicio::before,
  body.version-9 .statement::before,
  body.version-9 #sobre::before,
  body.version-9 #servicos::before,
  body.version-9 #metodo::before {
    width: 210px;
    right: 4px;
  }

  body.version-9 #inicio::after,
  body.version-9 .statement::after,
  body.version-9 #sobre::after,
  body.version-9 #servicos::after,
  body.version-9 #metodo::after {
    background-size: 198px auto;
  }
}


/* =========================================================
   VERSION 10
   - padrão inferior passa a usar o padrão oficial do manual
   - 5 linhas com a forma correta de "coração"
   - arco grande mantém-se à direita, acima do padrão inferior
========================================================= */

body.version-10 {
  --pattern-band-height: clamp(104px, 17svh, 158px);
  --arc-gap-from-band: clamp(18px, 2.8svh, 30px);
}

/* Arco grande: mantém-se destacado e sem sobreposição direta */
body.version-10 #inicio::before,
body.version-10 .statement::before,
body.version-10 #sobre::before,
body.version-10 #servicos::before,
body.version-10 #metodo::before {
  right: clamp(8px, 4vw, 68px);
  bottom: calc(var(--pattern-band-height) + var(--arc-gap-from-band));
  width: clamp(260px, 35vw, 540px);
  aspect-ratio: 1.52 / 1;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  z-index: 1;
}

body.version-10 .statement::before,
body.version-10 #sobre::before,
body.version-10 #metodo::before {
  background-image: url("../img/brand-monogram-black.png");
  opacity: .06;
}

body.version-10 #inicio::before,
body.version-10 #servicos::before {
  background-image: url("../img/brand-monogram-white.png");
  opacity: .085;
}

/* Padrão inferior: usar o padrão oficial extraído do manual */
body.version-10 #inicio::after,
body.version-10 .statement::after,
body.version-10 #sobre::after,
body.version-10 #servicos::after,
body.version-10 #metodo::after {
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--pattern-band-height);
  z-index: 1;
  background-repeat: repeat-x;
  background-position: center bottom;
  background-size: auto 100%;
}

/* Secções claras: padrão positivo oficial */
body.version-10 .statement::after,
body.version-10 #sobre::after,
body.version-10 #metodo::after {
  background-image:
    linear-gradient(to bottom, rgba(255,255,255,1), rgba(255,255,255,.04)),
    url("../img/brand-pattern-positive.png");
  opacity: .96;
}

/* Secções escuras: padrão negativo oficial */
body.version-10 #inicio::after,
body.version-10 #servicos::after {
  background-image:
    linear-gradient(to bottom, rgba(0,0,0,1), rgba(0,0,0,.06)),
    url("../img/brand-pattern-negative.png");
  opacity: .68;
}

/* Espaço para o padrão respirar */
body.version-10 #inicio .container,
body.version-10 .statement .container,
body.version-10 #sobre .container,
body.version-10 #servicos .container,
body.version-10 #metodo .container {
  padding-bottom: calc(var(--pattern-band-height) + 24px);
}

/* Variações suaves por secção */
body.version-10 .statement::before {
  width: clamp(280px, 37vw, 560px);
  right: clamp(4px, 3vw, 46px);
  opacity: .055;
}

body.version-10 #sobre::before {
  width: clamp(290px, 38vw, 580px);
  right: clamp(0px, 2vw, 28px);
  opacity: .06;
}

body.version-10 #metodo::before {
  width: clamp(275px, 36vw, 545px);
}

body.version-10 #servicos::before {
  width: clamp(270px, 35vw, 530px);
}

/* Tablet */
@media (max-width: 1100px) {
  body.version-10 {
    --pattern-band-height: 132px;
  }

  body.version-10 #inicio::before,
  body.version-10 .statement::before,
  body.version-10 #sobre::before,
  body.version-10 #servicos::before,
  body.version-10 #metodo::before {
    width: clamp(220px, 31vw, 370px);
    right: 12px;
  }
}

/* Mobile */
@media (max-width: 820px) {
  body.version-10 {
    --pattern-band-height: 118px;
    --arc-gap-from-band: 16px;
  }

  body.version-10 #inicio::before,
  body.version-10 .statement::before,
  body.version-10 #sobre::before,
  body.version-10 #servicos::before,
  body.version-10 #metodo::before {
    width: clamp(195px, 47vw, 305px);
    right: 8px;
    bottom: calc(var(--pattern-band-height) + var(--arc-gap-from-band));
    opacity: .05;
  }

  body.version-10 #inicio::before,
  body.version-10 #servicos::before {
    opacity: .07;
  }

  body.version-10 #inicio::after,
  body.version-10 .statement::after,
  body.version-10 #sobre::after,
  body.version-10 #servicos::after,
  body.version-10 #metodo::after {
    opacity: .98;
  }

  body.version-10 #inicio::after,
  body.version-10 #servicos::after {
    opacity: .72;
  }

  body.version-10 #inicio .container,
  body.version-10 .statement .container,
  body.version-10 #sobre .container,
  body.version-10 #servicos .container,
  body.version-10 #metodo .container {
    padding-bottom: calc(var(--pattern-band-height) + 18px);
  }
}

/* Telemóvel pequeno */
@media (max-width: 520px) {
  body.version-10 {
    --pattern-band-height: 106px;
    --arc-gap-from-band: 12px;
  }

  body.version-10 #inicio::before,
  body.version-10 .statement::before,
  body.version-10 #sobre::before,
  body.version-10 #servicos::before,
  body.version-10 #metodo::before {
    width: 214px;
    right: 4px;
  }
}


/* =========================================================
   VERSION 11
   - elimina os cortes visíveis no padrão inferior
   - usa uma única faixa contínua do padrão oficial do manual
   - mantém o arco grande à direita, acima da faixa
========================================================= */

body.version-11 {
  --pattern-band-height: clamp(108px, 17svh, 164px);
  --arc-gap-from-band: clamp(18px, 2.8svh, 30px);
}

/* Arco principal mantém-se */
body.version-11 #inicio::before,
body.version-11 .statement::before,
body.version-11 #sobre::before,
body.version-11 #servicos::before,
body.version-11 #metodo::before {
  right: clamp(8px, 4vw, 68px);
  bottom: calc(var(--pattern-band-height) + var(--arc-gap-from-band));
  width: clamp(260px, 35vw, 540px);
  aspect-ratio: 1.52 / 1;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  z-index: 1;
}

body.version-11 .statement::before,
body.version-11 #sobre::before,
body.version-11 #metodo::before {
  background-image: url("../img/brand-monogram-black.png");
  opacity: .06;
}

body.version-11 #inicio::before,
body.version-11 #servicos::before {
  background-image: url("../img/brand-monogram-white.png");
  opacity: .085;
}

/* Faixa inferior contínua: sem repeat para não haver juntas visíveis */
body.version-11 #inicio::after,
body.version-11 .statement::after,
body.version-11 #sobre::after,
body.version-11 #servicos::after,
body.version-11 #metodo::after {
  left: -1px;
  right: -1px;
  bottom: 0;
  height: var(--pattern-band-height);
  z-index: 1;
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: cover;
}

/* Secções claras */
body.version-11 .statement::after,
body.version-11 #sobre::after,
body.version-11 #metodo::after {
  background-image:
    linear-gradient(to bottom, rgba(255,255,255,1), rgba(255,255,255,.03)),
    url("../img/brand-pattern-positive.png");
  opacity: .98;
}

/* Secções escuras */
body.version-11 #inicio::after,
body.version-11 #servicos::after {
  background-image:
    linear-gradient(to bottom, rgba(0,0,0,1), rgba(0,0,0,.05)),
    url("../img/brand-pattern-negative.png");
  opacity: .74;
}

/* Espaço inferior para a faixa */
body.version-11 #inicio .container,
body.version-11 .statement .container,
body.version-11 #sobre .container,
body.version-11 #servicos .container,
body.version-11 #metodo .container {
  padding-bottom: calc(var(--pattern-band-height) + 24px);
}

/* Ajustes finos do arco por secção */
body.version-11 .statement::before {
  width: clamp(280px, 37vw, 560px);
  right: clamp(4px, 3vw, 46px);
  opacity: .055;
}

body.version-11 #sobre::before {
  width: clamp(290px, 38vw, 580px);
  right: clamp(0px, 2vw, 28px);
  opacity: .06;
}

body.version-11 #metodo::before {
  width: clamp(275px, 36vw, 545px);
}

body.version-11 #servicos::before {
  width: clamp(270px, 35vw, 530px);
}

/* Tablet */
@media (max-width: 1100px) {
  body.version-11 {
    --pattern-band-height: 134px;
  }

  body.version-11 #inicio::before,
  body.version-11 .statement::before,
  body.version-11 #sobre::before,
  body.version-11 #servicos::before,
  body.version-11 #metodo::before {
    width: clamp(220px, 31vw, 370px);
    right: 12px;
  }
}

/* Mobile */
@media (max-width: 820px) {
  body.version-11 {
    --pattern-band-height: 120px;
    --arc-gap-from-band: 16px;
  }

  body.version-11 #inicio::before,
  body.version-11 .statement::before,
  body.version-11 #sobre::before,
  body.version-11 #servicos::before,
  body.version-11 #metodo::before {
    width: clamp(195px, 47vw, 305px);
    right: 8px;
    bottom: calc(var(--pattern-band-height) + var(--arc-gap-from-band));
    opacity: .05;
  }

  body.version-11 #inicio::before,
  body.version-11 #servicos::before {
    opacity: .07;
  }

  body.version-11 #inicio::after,
  body.version-11 .statement::after,
  body.version-11 #sobre::after,
  body.version-11 #servicos::after,
  body.version-11 #metodo::after {
    opacity: .99;
  }

  body.version-11 #inicio::after,
  body.version-11 #servicos::after {
    opacity: .76;
  }

  body.version-11 #inicio .container,
  body.version-11 .statement .container,
  body.version-11 #sobre .container,
  body.version-11 #servicos .container,
  body.version-11 #metodo .container {
    padding-bottom: calc(var(--pattern-band-height) + 18px);
  }
}

/* Telemóvel pequeno */
@media (max-width: 520px) {
  body.version-11 {
    --pattern-band-height: 108px;
    --arc-gap-from-band: 12px;
  }

  body.version-11 #inicio::before,
  body.version-11 .statement::before,
  body.version-11 #sobre::before,
  body.version-11 #servicos::before,
  body.version-11 #metodo::before {
    width: 214px;
    right: 4px;
  }
}


/* =========================================================
   VERSION 13
   - regressa à lógica da versão 11
   - arco maior mantém-se na posição anterior
   - arco aumentado ligeiramente
========================================================= */

body.version-13 {
  --pattern-band-height: clamp(108px, 17svh, 164px);
  --arc-gap-from-band: clamp(18px, 2.8svh, 30px);
}

/* Arco principal na posição da V11, mas ligeiramente maior */
body.version-13 #inicio::before,
body.version-13 .statement::before,
body.version-13 #sobre::before,
body.version-13 #servicos::before,
body.version-13 #metodo::before {
  right: clamp(8px, 4vw, 68px);
  bottom: calc(var(--pattern-band-height) + var(--arc-gap-from-band));
  width: clamp(290px, 38vw, 590px);
  aspect-ratio: 1.52 / 1;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  z-index: 1;
}

/* Secções claras */
body.version-13 .statement::before,
body.version-13 #sobre::before,
body.version-13 #metodo::before {
  background-image: url("../img/brand-monogram-black.png");
  opacity: .06;
}

/* Secções escuras */
body.version-13 #inicio::before,
body.version-13 #servicos::before {
  background-image: url("../img/brand-monogram-white.png");
  opacity: .085;
}

/* Padrão inferior contínuo, igual à V11 */
body.version-13 #inicio::after,
body.version-13 .statement::after,
body.version-13 #sobre::after,
body.version-13 #servicos::after,
body.version-13 #metodo::after {
  left: -1px;
  right: -1px;
  bottom: 0;
  height: var(--pattern-band-height);
  z-index: 1;
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: cover;
}

/* Secções claras */
body.version-13 .statement::after,
body.version-13 #sobre::after,
body.version-13 #metodo::after {
  background-image:
    linear-gradient(to bottom, rgba(255,255,255,1), rgba(255,255,255,.03)),
    url("../img/brand-pattern-positive.png");
  opacity: .98;
}

/* Secções escuras */
body.version-13 #inicio::after,
body.version-13 #servicos::after {
  background-image:
    linear-gradient(to bottom, rgba(0,0,0,1), rgba(0,0,0,.05)),
    url("../img/brand-pattern-negative.png");
  opacity: .74;
}

/* Espaço inferior para a faixa */
body.version-13 #inicio .container,
body.version-13 .statement .container,
body.version-13 #sobre .container,
body.version-13 #servicos .container,
body.version-13 #metodo .container {
  padding-bottom: calc(var(--pattern-band-height) + 24px);
}

/* Ajustes finos por secção: um pouco maiores que na V11 */
body.version-13 .statement::before {
  width: clamp(310px, 40vw, 620px);
  right: clamp(4px, 3vw, 46px);
  opacity: .055;
}

body.version-13 #sobre::before {
  width: clamp(320px, 41vw, 640px);
  right: clamp(0px, 2vw, 28px);
  opacity: .06;
}

body.version-13 #metodo::before {
  width: clamp(305px, 39vw, 605px);
}

body.version-13 #servicos::before {
  width: clamp(300px, 38vw, 595px);
}

body.version-13 #inicio::before {
  width: clamp(300px, 39vw, 600px);
}

/* Tablet */
@media (max-width: 1100px) {
  body.version-13 {
    --pattern-band-height: 134px;
  }

  body.version-13 #inicio::before,
  body.version-13 .statement::before,
  body.version-13 #sobre::before,
  body.version-13 #servicos::before,
  body.version-13 #metodo::before {
    width: clamp(245px, 34vw, 410px);
    right: 12px;
  }
}

/* Mobile */
@media (max-width: 820px) {
  body.version-13 {
    --pattern-band-height: 120px;
    --arc-gap-from-band: 16px;
  }

  body.version-13 #inicio::before,
  body.version-13 .statement::before,
  body.version-13 #sobre::before,
  body.version-13 #servicos::before,
  body.version-13 #metodo::before {
    width: clamp(220px, 51vw, 335px);
    right: 8px;
    bottom: calc(var(--pattern-band-height) + var(--arc-gap-from-band));
    opacity: .05;
  }

  body.version-13 #inicio::before,
  body.version-13 #servicos::before {
    opacity: .07;
  }

  body.version-13 #inicio::after,
  body.version-13 .statement::after,
  body.version-13 #sobre::after,
  body.version-13 #servicos::after,
  body.version-13 #metodo::after {
    opacity: .99;
  }

  body.version-13 #inicio::after,
  body.version-13 #servicos::after {
    opacity: .76;
  }

  body.version-13 #inicio .container,
  body.version-13 .statement .container,
  body.version-13 #sobre .container,
  body.version-13 #servicos .container,
  body.version-13 #metodo .container {
    padding-bottom: calc(var(--pattern-band-height) + 18px);
  }
}

/* Telemóvel pequeno */
@media (max-width: 520px) {
  body.version-13 {
    --pattern-band-height: 108px;
    --arc-gap-from-band: 12px;
  }

  body.version-13 #inicio::before,
  body.version-13 .statement::before,
  body.version-13 #sobre::before,
  body.version-13 #servicos::before,
  body.version-13 #metodo::before {
    width: 235px;
    right: 4px;
  }
}


/* =========================================================
   VERSION 14
   - canto superior esquerdo com abóbada/monograma
   - clique na abóbada revela logótipo completo
   - logótipo completo substitui o arco grande nas secções
========================================================= */

body.version-14 .brand-v14 {
  position: relative;
  width: clamp(38px, 3.4vw, 52px);
  height: 42px;
  display: inline-flex;
  align-items: center;
  overflow: visible;
}

body.version-14 .brand-v14 .brand-logo,
body.version-14 .brand-v14 .brand-logo-light,
body.version-14 .brand-v14 .brand-logo-dark {
  display: none;
}

body.version-14 .brand-mark-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: clamp(38px, 3.4vw, 52px);
  height: 34px;
  z-index: 2;
}

body.version-14 .brand-mark {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  cursor: pointer;
  transition: opacity .25s ease, transform .25s ease;
}

body.version-14 .brand-mark-dark { opacity: 0; }

body.version-14 .site-header.is-scrolled .brand-mark-light,
body.version-14 .site-header.menu-open .brand-mark-light { opacity: 0; }

body.version-14 .site-header.is-scrolled .brand-mark-dark,
body.version-14 .site-header.menu-open .brand-mark-dark { opacity: 1; }

body.version-14 .brand-v14:hover .brand-mark,
body.version-14 .brand-v14:focus-visible .brand-mark,
body.version-14 .brand-v14.is-expanded .brand-mark {
  transform: translateY(-1px);
}

body.version-14 .brand-full-wrap {
  position: absolute;
  left: calc(100% + 14px);
  top: 50%;
  width: clamp(150px, 14vw, 220px);
  height: 42px;
  transform: translateY(-50%) translateX(-8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .28s ease, transform .28s ease;
}

body.version-14 .brand-v14.is-expanded .brand-full-wrap,
body.version-14 .brand-v14:hover .brand-full-wrap,
body.version-14 .brand-v14:focus-visible .brand-full-wrap {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

body.version-14 .brand-full {
  position: absolute;
  left: 0;
  width: 100%;
  height: auto;
  max-height: 42px;
  object-fit: contain;
}

body.version-14 .brand-full-dark { opacity: 0; }

body.version-14 .site-header.is-scrolled .brand-full-light,
body.version-14 .site-header.menu-open .brand-full-light { opacity: 0; }

body.version-14 .site-header.is-scrolled .brand-full-dark,
body.version-14 .site-header.menu-open .brand-full-dark { opacity: 1; }

/* Onde estava a abóbada/arco grande, entra o logótipo completo */
body.version-14 #inicio::before,
body.version-14 .statement::before,
body.version-14 #sobre::before,
body.version-14 #servicos::before,
body.version-14 #metodo::before {
  right: clamp(8px, 4vw, 68px);
  bottom: calc(var(--pattern-band-height) + var(--arc-gap-from-band));
  width: clamp(330px, 42vw, 680px);
  aspect-ratio: 3.8 / 1;
  background-position: center right;
  background-repeat: no-repeat;
  background-size: contain;
  z-index: 1;
}

body.version-14 .statement::before,
body.version-14 #sobre::before,
body.version-14 #metodo::before {
  background-image: url("../img/unfoldforms-logo-black.png");
  opacity: .05;
}

body.version-14 #inicio::before,
body.version-14 #servicos::before {
  background-image: url("../img/unfoldforms-logo-white.png");
  opacity: .075;
}

body.version-14 #inicio::before {
  width: clamp(360px, 44vw, 720px);
  opacity: .08;
}

body.version-14 .statement::before {
  width: clamp(360px, 44vw, 720px);
  opacity: .045;
}

body.version-14 #sobre::before {
  width: clamp(370px, 45vw, 740px);
  opacity: .047;
}

body.version-14 #servicos::before {
  width: clamp(350px, 43vw, 710px);
  opacity: .075;
}

body.version-14 #metodo::before {
  width: clamp(360px, 44vw, 720px);
  opacity: .045;
}

body.version-14 .hero .eyebrow {
  color: rgba(255,255,255,.76);
  font-size: clamp(.72rem, .85vw, .9rem);
  letter-spacing: .16em;
  margin-bottom: clamp(.75rem, 1.8svh, 1.25rem);
}

body.version-14 .hero .button-primary {
  min-width: 156px;
}

@media (max-width: 1100px) {
  body.version-14 #inicio::before,
  body.version-14 .statement::before,
  body.version-14 #sobre::before,
  body.version-14 #servicos::before,
  body.version-14 #metodo::before {
    width: clamp(260px, 37vw, 460px);
    right: 12px;
  }

  body.version-14 .brand-full-wrap { width: 170px; }
}

@media (max-width: 820px) {
  body.version-14 .brand-v14 { width: 42px; }

  body.version-14 .brand-mark-wrap {
    width: 42px;
    height: 30px;
  }

  body.version-14 .brand-full-wrap {
    left: 0;
    top: calc(100% + 10px);
    width: 170px;
    transform: translateY(0) translateX(-4px);
  }

  body.version-14 .brand-v14.is-expanded .brand-full-wrap,
  body.version-14 .brand-v14:hover .brand-full-wrap,
  body.version-14 .brand-v14:focus-visible .brand-full-wrap {
    transform: translateY(0) translateX(0);
  }

  body.version-14 #inicio::before,
  body.version-14 .statement::before,
  body.version-14 #sobre::before,
  body.version-14 #servicos::before,
  body.version-14 #metodo::before {
    width: clamp(230px, 56vw, 360px);
    right: 8px;
    opacity: .045;
  }

  body.version-14 #inicio::before,
  body.version-14 #servicos::before {
    opacity: .065;
  }
}

@media (max-width: 520px) {
  body.version-14 #inicio::before,
  body.version-14 .statement::before,
  body.version-14 #sobre::before,
  body.version-14 #servicos::before,
  body.version-14 #metodo::before {
    width: 250px;
    right: 4px;
  }

  body.version-14 .brand-full-wrap { width: 154px; }
}


/* =========================================================
   VERSION 15
   - abóbada no cabeçalho com link direto para a página inicial
   - sem revelação de logótipo ao clicar
   - logótipo completo mantém-se na zona onde estava o arco grande
   - subtítulo principal ligeiramente menor
   - padrão inferior reduzido para cerca de 3 linhas
========================================================= */

/* Cabeçalho: apenas abóbada/monograma */
body.version-15 .brand-v15 {
  position: relative;
  width: clamp(38px, 3.4vw, 52px);
  height: 42px;
  display: inline-flex;
  align-items: center;
  overflow: visible;
}

body.version-15 .brand-v15 .brand-mark-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: clamp(38px, 3.4vw, 52px);
  height: 34px;
}

body.version-15 .brand-v15 .brand-mark {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity .25s ease, transform .25s ease;
}

body.version-15 .brand-v15 .brand-mark-dark {
  opacity: 0;
}

body.version-15 .site-header.is-scrolled .brand-v15 .brand-mark-light,
body.version-15 .site-header.menu-open .brand-v15 .brand-mark-light {
  opacity: 0;
}

body.version-15 .site-header.is-scrolled .brand-v15 .brand-mark-dark,
body.version-15 .site-header.menu-open .brand-v15 .brand-mark-dark {
  opacity: 1;
}

body.version-15 .brand-v15:hover .brand-mark,
body.version-15 .brand-v15:focus-visible .brand-mark {
  transform: translateY(-1px);
}

/* Anular comportamento de "revelar logótipo" da versão anterior */
body.version-15 .brand-full-wrap,
body.version-15 .brand-full,
body.version-15 .brand-v14 .brand-full-wrap {
  display: none !important;
}

/* Folha 1: subtítulo principal ligeiramente menor */
body.version-15 .hero h1 {
  font-size: clamp(2.25rem, 4.1vw, 4.65rem);
  max-width: 960px;
}

body.version-15 .hero .eyebrow {
  text-transform: none;
  letter-spacing: .10em;
  font-size: clamp(.76rem, .9vw, .96rem);
}

body.version-15 .hero .button-primary {
  min-width: 220px;
}

/* Logótipo completo no local da abóbada grande */
body.version-15 #inicio::before,
body.version-15 .statement::before,
body.version-15 #sobre::before,
body.version-15 #servicos::before,
body.version-15 #metodo::before {
  right: clamp(8px, 4vw, 68px);
  bottom: calc(var(--pattern-band-height) + var(--arc-gap-from-band));
  width: clamp(340px, 43vw, 700px);
  aspect-ratio: 3.8 / 1;
  background-position: center right;
  background-repeat: no-repeat;
  background-size: contain;
  z-index: 1;
}

body.version-15 .statement::before,
body.version-15 #sobre::before,
body.version-15 #metodo::before {
  background-image: url("../img/unfoldforms-logo-black.png");
  opacity: .048;
}

body.version-15 #inicio::before,
body.version-15 #servicos::before {
  background-image: url("../img/unfoldforms-logo-white.png");
  opacity: .078;
}

/* Rodapé visual das páginas: reduzir abóbadas e organizar em 3 linhas */
body.version-15 {
  --pattern-band-height: clamp(72px, 10svh, 96px);
  --arc-gap-from-band: clamp(18px, 2.4svh, 28px);
}

body.version-15 #inicio::after,
body.version-15 .statement::after,
body.version-15 #sobre::after,
body.version-15 #servicos::after,
body.version-15 #metodo::after {
  height: var(--pattern-band-height);
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: cover;
}

/* Espaço inferior ajustado à nova altura do padrão */
body.version-15 #inicio .container,
body.version-15 .statement .container,
body.version-15 #sobre .container,
body.version-15 #servicos .container,
body.version-15 #metodo .container {
  padding-bottom: calc(var(--pattern-band-height) + 20px);
}

/* Tablet */
@media (max-width: 1100px) {
  body.version-15 .hero h1 {
    font-size: clamp(2.1rem, 5vw, 3.85rem);
  }

  body.version-15 #inicio::before,
  body.version-15 .statement::before,
  body.version-15 #sobre::before,
  body.version-15 #servicos::before,
  body.version-15 #metodo::before {
    width: clamp(260px, 38vw, 470px);
    right: 12px;
  }
}

/* Mobile */
@media (max-width: 820px) {
  body.version-15 {
    --pattern-band-height: 82px;
  }

  body.version-15 .brand-v15,
  body.version-15 .brand-v15 .brand-mark-wrap {
    width: 42px;
    height: 30px;
  }

  body.version-15 .hero h1 {
    font-size: clamp(1.82rem, 8.4vw, 3.1rem);
    line-height: 1.06;
  }

  body.version-15 .hero .button-primary {
    min-width: 0;
  }

  body.version-15 #inicio::before,
  body.version-15 .statement::before,
  body.version-15 #sobre::before,
  body.version-15 #servicos::before,
  body.version-15 #metodo::before {
    width: clamp(230px, 56vw, 360px);
    right: 8px;
    opacity: .043;
  }

  body.version-15 #inicio::before,
  body.version-15 #servicos::before {
    opacity: .064;
  }
}

/* Telemóvel pequeno */
@media (max-width: 520px) {
  body.version-15 {
    --pattern-band-height: 72px;
  }

  body.version-15 #inicio::before,
  body.version-15 .statement::before,
  body.version-15 #sobre::before,
  body.version-15 #servicos::before,
  body.version-15 #metodo::before {
    width: 245px;
    right: 4px;
  }
}


/* =========================================================
   VERSION 16
   - usar a abóbada enviada pelo cliente no topo superior esquerdo
   - aproximar visualmente o logótipo da abóbada
   - reduzir o padrão inferior e deixá-lo em 3 linhas
   - tornar mais legível a forma de coração do padrão
========================================================= */

/* Cabeçalho: usar a nova abóbada e aproximar o conjunto visual */
body.version-16 .brand-v16 {
  width: clamp(44px, 3.8vw, 58px);
  height: 40px;
}

body.version-16 .brand-v16 .brand-mark-wrap {
  width: clamp(44px, 3.8vw, 58px);
  height: 34px;
}

body.version-16 .brand-v16 .brand-mark-light {
  content: url("../img/header-arch-white-v16.png");
}

body.version-16 .brand-v16 .brand-mark-dark {
  content: url("../img/header-arch-black-v16.png");
}

/* Logótipo principal nas páginas: mais próximo da abóbada */
body.version-16 #inicio::before,
body.version-16 .statement::before,
body.version-16 #sobre::before,
body.version-16 #servicos::before,
body.version-16 #metodo::before {
  right: clamp(18px, 5.2vw, 96px);
  bottom: calc(var(--pattern-band-height) + var(--arc-gap-from-band));
  width: clamp(320px, 40vw, 620px);
}

/* Folha 1: marca textual e botão */
body.version-16 .hero .eyebrow {
  letter-spacing: .08em;
  margin-bottom: clamp(.55rem, 1.3svh, .9rem);
}

/* Padrão inferior menor, com 3 linhas visíveis */
body.version-16 {
  --pattern-band-height: clamp(54px, 7.2svh, 72px);
  --arc-gap-from-band: clamp(18px, 2.2svh, 24px);
}

body.version-16 #inicio::after,
body.version-16 .statement::after,
body.version-16 #sobre::after,
body.version-16 #servicos::after,
body.version-16 #metodo::after {
  height: var(--pattern-band-height);
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: cover;
}

/* Ajustar contraste/escala do padrão para que a forma de coração se perceba melhor */
body.version-16 .statement::after,
body.version-16 #sobre::after,
body.version-16 #metodo::after {
  opacity: 1;
}

body.version-16 #inicio::after,
body.version-16 #servicos::after {
  opacity: .82;
}

/* Espaço inferior ajustado à nova dimensão do padrão */
body.version-16 #inicio .container,
body.version-16 .statement .container,
body.version-16 #sobre .container,
body.version-16 #servicos .container,
body.version-16 #metodo .container {
  padding-bottom: calc(var(--pattern-band-height) + 18px);
}

/* Tablet */
@media (max-width: 1100px) {
  body.version-16 #inicio::before,
  body.version-16 .statement::before,
  body.version-16 #sobre::before,
  body.version-16 #servicos::before,
  body.version-16 #metodo::before {
    width: clamp(250px, 36vw, 440px);
    right: 18px;
  }

  body.version-16 {
    --pattern-band-height: 64px;
  }
}

/* Mobile */
@media (max-width: 820px) {
  body.version-16 .brand-v16 {
    width: 46px;
    height: 32px;
  }

  body.version-16 .brand-v16 .brand-mark-wrap {
    width: 46px;
    height: 30px;
  }

  body.version-16 #inicio::before,
  body.version-16 .statement::before,
  body.version-16 #sobre::before,
  body.version-16 #servicos::before,
  body.version-16 #metodo::before {
    width: clamp(210px, 54vw, 320px);
    right: 14px;
  }

  body.version-16 {
    --pattern-band-height: 58px;
    --arc-gap-from-band: 14px;
  }

  body.version-16 #inicio .container,
  body.version-16 .statement .container,
  body.version-16 #sobre .container,
  body.version-16 #servicos .container,
  body.version-16 #metodo .container {
    padding-bottom: calc(var(--pattern-band-height) + 14px);
  }
}

/* Telemóvel pequeno */
@media (max-width: 520px) {
  body.version-16 #inicio::before,
  body.version-16 .statement::before,
  body.version-16 #sobre::before,
  body.version-16 #servicos::before,
  body.version-16 #metodo::before {
    width: 225px;
    right: 8px;
  }

  body.version-16 {
    --pattern-band-height: 52px;
  }
}


/* =========================================================
   VERSION 17
   - repõe o padrão inferior na linguagem da versão 10
   - mantém as restantes alterações da versão 16
========================================================= */

body.version-17 {
  --pattern-band-height: clamp(104px, 17svh, 158px);
  --arc-gap-from-band: clamp(18px, 2.8svh, 30px);
}

/* Padrão inferior como na V10: padrão oficial do manual, 5 linhas, sem cortes visíveis */
body.version-17 #inicio::after,
body.version-17 .statement::after,
body.version-17 #sobre::after,
body.version-17 #servicos::after,
body.version-17 #metodo::after {
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--pattern-band-height);
  z-index: 1;
  background-repeat: repeat-x;
  background-position: center bottom;
  background-size: auto 100%;
}

/* Secções claras: padrão positivo oficial */
body.version-17 .statement::after,
body.version-17 #sobre::after,
body.version-17 #metodo::after {
  background-image:
    linear-gradient(to bottom, rgba(255,255,255,1), rgba(255,255,255,.04)),
    url("../img/brand-pattern-positive.png");
  opacity: .96;
}

/* Secções escuras: padrão negativo oficial */
body.version-17 #inicio::after,
body.version-17 #servicos::after {
  background-image:
    linear-gradient(to bottom, rgba(0,0,0,1), rgba(0,0,0,.06)),
    url("../img/brand-pattern-negative.png");
  opacity: .68;
}

/* Espaço inferior como na V10 */
body.version-17 #inicio .container,
body.version-17 .statement .container,
body.version-17 #sobre .container,
body.version-17 #servicos .container,
body.version-17 #metodo .container {
  padding-bottom: calc(var(--pattern-band-height) + 24px);
}

/* O logótipo na zona direita mantém-se, apenas ajustado para respirar com o padrão da V10 */
body.version-17 #inicio::before,
body.version-17 .statement::before,
body.version-17 #sobre::before,
body.version-17 #servicos::before,
body.version-17 #metodo::before {
  bottom: calc(var(--pattern-band-height) + var(--arc-gap-from-band));
}

/* Tablet */
@media (max-width: 1100px) {
  body.version-17 {
    --pattern-band-height: 132px;
  }
}

/* Mobile */
@media (max-width: 820px) {
  body.version-17 {
    --pattern-band-height: 118px;
    --arc-gap-from-band: 16px;
  }

  body.version-17 #inicio::after,
  body.version-17 .statement::after,
  body.version-17 #sobre::after,
  body.version-17 #servicos::after,
  body.version-17 #metodo::after {
    opacity: .98;
  }

  body.version-17 #inicio::after,
  body.version-17 #servicos::after {
    opacity: .72;
  }

  body.version-17 #inicio .container,
  body.version-17 .statement .container,
  body.version-17 #sobre .container,
  body.version-17 #servicos .container,
  body.version-17 #metodo .container {
    padding-bottom: calc(var(--pattern-band-height) + 18px);
  }
}

/* Telemóvel pequeno */
@media (max-width: 520px) {
  body.version-17 {
    --pattern-band-height: 106px;
    --arc-gap-from-band: 12px;
  }
}


/* =========================================================
   VERSION 18
   - repõe o símbolo do canto superior esquerdo da Versão 15
   - mantém o padrão inferior da Versão 10 (introduzido na V17)
========================================================= */

body.version-18 .brand-v15,
body.version-18 .brand-v16 {
  width: clamp(38px, 3.4vw, 52px);
  height: 42px;
}

body.version-18 .brand-v15 .brand-mark-wrap,
body.version-18 .brand-v16 .brand-mark-wrap {
  width: clamp(38px, 3.4vw, 52px);
  height: 34px;
}

/* Repor o símbolo original da V15 */
body.version-18 .brand-v15 .brand-mark-light,
body.version-18 .brand-v16 .brand-mark-light {
  content: url("../img/brand-monogram-white.png");
}

body.version-18 .brand-v15 .brand-mark-dark,
body.version-18 .brand-v16 .brand-mark-dark {
  content: url("../img/brand-monogram-black.png");
}

/* Tablet */
@media (max-width: 1100px) {
  body.version-18 .brand-v15,
  body.version-18 .brand-v16,
  body.version-18 .brand-v15 .brand-mark-wrap,
  body.version-18 .brand-v16 .brand-mark-wrap {
    width: 42px;
  }
}

/* Mobile */
@media (max-width: 820px) {
  body.version-18 .brand-v15,
  body.version-18 .brand-v16 {
    width: 42px;
    height: 32px;
  }

  body.version-18 .brand-v15 .brand-mark-wrap,
  body.version-18 .brand-v16 .brand-mark-wrap {
    width: 42px;
    height: 30px;
  }
}


/* =========================================================
   VERSION 19
   - logótipo da parte direita aumentado
   - padrão inferior ajustado para 4 linhas
========================================================= */

body.version-19 {
  --pattern-band-height: clamp(86px, 13svh, 124px);
  --arc-gap-from-band: clamp(18px, 2.8svh, 30px);
}

/* Logótipo completo da parte direita: maior e com mais presença */
body.version-19 #inicio::before,
body.version-19 .statement::before,
body.version-19 #sobre::before,
body.version-19 #servicos::before,
body.version-19 #metodo::before {
  width: clamp(420px, 52vw, 860px);
  right: clamp(4px, 3.2vw, 54px);
  bottom: calc(var(--pattern-band-height) + var(--arc-gap-from-band));
  aspect-ratio: 3.8 / 1;
  background-position: center right;
  background-repeat: no-repeat;
  background-size: contain;
}

/* Manter subtileza para não competir com o conteúdo */
body.version-19 .statement::before,
body.version-19 #sobre::before,
body.version-19 #metodo::before {
  opacity: .052;
}

body.version-19 #inicio::before,
body.version-19 #servicos::before {
  opacity: .082;
}

/* Padrão inferior: 4 linhas, com base no padrão oficial */
body.version-19 #inicio::after,
body.version-19 .statement::after,
body.version-19 #sobre::after,
body.version-19 #servicos::after,
body.version-19 #metodo::after {
  height: var(--pattern-band-height);
  background-repeat: repeat-x;
  background-position: center bottom;
  background-size: auto 100%;
}

/* Secções claras */
body.version-19 .statement::after,
body.version-19 #sobre::after,
body.version-19 #metodo::after {
  background-image:
    linear-gradient(to bottom, rgba(255,255,255,1), rgba(255,255,255,.04)),
    url("../img/brand-pattern-positive-4lines-v19.png");
  opacity: .97;
}

/* Secções escuras */
body.version-19 #inicio::after,
body.version-19 #servicos::after {
  background-image:
    linear-gradient(to bottom, rgba(0,0,0,1), rgba(0,0,0,.06)),
    url("../img/brand-pattern-negative-4lines-v19.png");
  opacity: .72;
}

/* Espaço inferior ajustado às 4 linhas */
body.version-19 #inicio .container,
body.version-19 .statement .container,
body.version-19 #sobre .container,
body.version-19 #servicos .container,
body.version-19 #metodo .container {
  padding-bottom: calc(var(--pattern-band-height) + 22px);
}

/* Tablet */
@media (max-width: 1100px) {
  body.version-19 {
    --pattern-band-height: 104px;
  }

  body.version-19 #inicio::before,
  body.version-19 .statement::before,
  body.version-19 #sobre::before,
  body.version-19 #servicos::before,
  body.version-19 #metodo::before {
    width: clamp(320px, 48vw, 590px);
    right: 10px;
  }
}

/* Mobile */
@media (max-width: 820px) {
  body.version-19 {
    --pattern-band-height: 94px;
    --arc-gap-from-band: 16px;
  }

  body.version-19 #inicio::before,
  body.version-19 .statement::before,
  body.version-19 #sobre::before,
  body.version-19 #servicos::before,
  body.version-19 #metodo::before {
    width: clamp(270px, 68vw, 430px);
    right: 6px;
  }

  body.version-19 .statement::before,
  body.version-19 #sobre::before,
  body.version-19 #metodo::before {
    opacity: .048;
  }

  body.version-19 #inicio::before,
  body.version-19 #servicos::before {
    opacity: .07;
  }

  body.version-19 #inicio .container,
  body.version-19 .statement .container,
  body.version-19 #sobre .container,
  body.version-19 #servicos .container,
  body.version-19 #metodo .container {
    padding-bottom: calc(var(--pattern-band-height) + 18px);
  }
}

/* Telemóvel pequeno */
@media (max-width: 520px) {
  body.version-19 {
    --pattern-band-height: 84px;
    --arc-gap-from-band: 14px;
  }

  body.version-19 #inicio::before,
  body.version-19 .statement::before,
  body.version-19 #sobre::before,
  body.version-19 #servicos::before,
  body.version-19 #metodo::before {
    width: 295px;
    right: 2px;
  }
}


/* =========================================================
   VERSION 20
   - padrão inferior com o tamanho da Versão 18
   - padrão inferior mantém apenas 4 linhas como na Versão 19
   - logótipo da parte direita maior e mais visível
========================================================= */

body.version-20 {
  --pattern-band-height: clamp(104px, 17svh, 158px);
  --arc-gap-from-band: clamp(18px, 2.8svh, 30px);
}

/* Padrão inferior: altura/escala da V18, mas com as imagens de 4 linhas da V19 */
body.version-20 #inicio::after,
body.version-20 .statement::after,
body.version-20 #sobre::after,
body.version-20 #servicos::after,
body.version-20 #metodo::after {
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--pattern-band-height);
  z-index: 1;
  background-repeat: repeat-x;
  background-position: center bottom;
  background-size: auto 100%;
}

/* Secções claras */
body.version-20 .statement::after,
body.version-20 #sobre::after,
body.version-20 #metodo::after {
  background-image:
    linear-gradient(to bottom, rgba(255,255,255,1), rgba(255,255,255,.04)),
    url("../img/brand-pattern-positive-4lines-v19.png");
  opacity: .97;
}

/* Secções escuras */
body.version-20 #inicio::after,
body.version-20 #servicos::after {
  background-image:
    linear-gradient(to bottom, rgba(0,0,0,1), rgba(0,0,0,.06)),
    url("../img/brand-pattern-negative-4lines-v19.png");
  opacity: .74;
}

/* Logótipo direito: maior e mais claro/legível */
body.version-20 #inicio::before,
body.version-20 .statement::before,
body.version-20 #sobre::before,
body.version-20 #servicos::before,
body.version-20 #metodo::before {
  width: clamp(500px, 60vw, 980px);
  right: clamp(-8px, 2.4vw, 42px);
  bottom: calc(var(--pattern-band-height) + var(--arc-gap-from-band));
  aspect-ratio: 3.8 / 1;
  background-position: center right;
  background-repeat: no-repeat;
  background-size: contain;
}

/* Mais visível nas páginas claras */
body.version-20 .statement::before,
body.version-20 #sobre::before,
body.version-20 #metodo::before {
  opacity: .075;
}

/* Mais visível nas páginas escuras */
body.version-20 #inicio::before,
body.version-20 #servicos::before {
  opacity: .13;
}

/* Espaço inferior igual à lógica da V18 */
body.version-20 #inicio .container,
body.version-20 .statement .container,
body.version-20 #sobre .container,
body.version-20 #servicos .container,
body.version-20 #metodo .container {
  padding-bottom: calc(var(--pattern-band-height) + 24px);
}

/* Tablet */
@media (max-width: 1100px) {
  body.version-20 {
    --pattern-band-height: 132px;
  }

  body.version-20 #inicio::before,
  body.version-20 .statement::before,
  body.version-20 #sobre::before,
  body.version-20 #servicos::before,
  body.version-20 #metodo::before {
    width: clamp(380px, 56vw, 680px);
    right: 8px;
  }
}

/* Mobile */
@media (max-width: 820px) {
  body.version-20 {
    --pattern-band-height: 118px;
    --arc-gap-from-band: 16px;
  }

  body.version-20 #inicio::before,
  body.version-20 .statement::before,
  body.version-20 #sobre::before,
  body.version-20 #servicos::before,
  body.version-20 #metodo::before {
    width: clamp(320px, 82vw, 520px);
    right: 4px;
  }

  body.version-20 .statement::before,
  body.version-20 #sobre::before,
  body.version-20 #metodo::before {
    opacity: .065;
  }

  body.version-20 #inicio::before,
  body.version-20 #servicos::before {
    opacity: .105;
  }

  body.version-20 #inicio .container,
  body.version-20 .statement .container,
  body.version-20 #sobre .container,
  body.version-20 #servicos .container,
  body.version-20 #metodo .container {
    padding-bottom: calc(var(--pattern-band-height) + 18px);
  }
}

/* Telemóvel pequeno */
@media (max-width: 520px) {
  body.version-20 {
    --pattern-band-height: 106px;
    --arc-gap-from-band: 12px;
  }

  body.version-20 #inicio::before,
  body.version-20 .statement::before,
  body.version-20 #sobre::before,
  body.version-20 #servicos::before,
  body.version-20 #metodo::before {
    width: 350px;
    right: -4px;
  }
}


/* =========================================================
   VERSION 21
   - primeira secção: "UNFOLD FORMS – Exhibition Makers" com
     o tamanho do antigo título principal
   - "Gestão integrada..." reduzido para metade
========================================================= */

body.version-21 .hero .eyebrow {
  display: block;
  max-width: min(980px, 100%);
  font-size: clamp(2.25rem, 4.1vw, 4.65rem);
  line-height: .98;
  letter-spacing: -.045em;
  font-weight: 400;
  color: #ffffff;
  margin-bottom: clamp(1.05rem, 2.4svh, 1.8rem);
  text-transform: none;
}

body.version-21 .hero h1 {
  max-width: min(860px, 100%);
  font-size: clamp(1.125rem, 2.05vw, 2.325rem);
  line-height: 1.14;
  letter-spacing: -.025em;
  font-weight: 400;
  color: rgba(255, 255, 255, .86);
}

body.version-21 .hero-text {
  max-width: 720px;
  margin-top: clamp(1rem, 2.1svh, 1.5rem);
}

@media (max-width: 1100px) {
  body.version-21 .hero .eyebrow {
    font-size: clamp(2.1rem, 5vw, 3.85rem);
  }

  body.version-21 .hero h1 {
    font-size: clamp(1.05rem, 2.5vw, 1.925rem);
  }
}

@media (max-width: 820px) {
  body.version-21 .hero .eyebrow {
    font-size: clamp(1.82rem, 8.4vw, 3.1rem);
    line-height: 1.04;
  }

  body.version-21 .hero h1 {
    font-size: clamp(.98rem, 4.2vw, 1.55rem);
    line-height: 1.18;
  }
}

@media (max-width: 520px) {
  body.version-21 .hero .eyebrow {
    font-size: clamp(1.65rem, 8.8vw, 2.55rem);
  }

  body.version-21 .hero h1 {
    font-size: clamp(.95rem, 4.3vw, 1.32rem);
  }
}


/* =========================================================
   VERSION 22
   - "UNFOLD FORMS – Exhibition Makers" fica do mesmo tamanho
     do texto "Gestão integrada..." mas a bold
   - logótipo dinâmico / branco fica mais claro e mais branco
========================================================= */

/* Primeira secção */
body.version-22 .hero .eyebrow {
  display: block;
  max-width: min(860px, 100%);
  font-size: clamp(1.125rem, 2.05vw, 2.325rem);
  line-height: 1.08;
  letter-spacing: -.02em;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: clamp(.9rem, 1.8svh, 1.35rem);
  text-transform: none;
}

body.version-22 .hero h1 {
  max-width: min(860px, 100%);
  font-size: clamp(1.125rem, 2.05vw, 2.325rem);
  line-height: 1.14;
  letter-spacing: -.025em;
  font-weight: 400;
  color: rgba(255, 255, 255, .86);
}

/* Logótipo da parte direita: branco mais puro e mais visível */
body.version-22 #inicio::before,
body.version-22 #servicos::before {
  opacity: .18;
  filter: brightness(1.22) contrast(1.02);
}

/* Nas secções claras, manter presença mas sem excesso */
body.version-22 .statement::before,
body.version-22 #sobre::before,
body.version-22 #metodo::before {
  opacity: .08;
}

/* Símbolo/logótipo dinâmico do cabeçalho: branco mais claro */
body.version-22 .brand-v15 .brand-mark-light,
body.version-22 .brand-v16 .brand-mark-light {
  filter: brightness(1.35) saturate(0);
  opacity: 1;
}

body.version-22 .site-header:not(.is-scrolled):not(.menu-open) .brand-v15 .brand-mark-light,
body.version-22 .site-header:not(.is-scrolled):not(.menu-open) .brand-v16 .brand-mark-light {
  opacity: 1;
}

/* Tablet */
@media (max-width: 1100px) {
  body.version-22 .hero .eyebrow,
  body.version-22 .hero h1 {
    font-size: clamp(1.05rem, 2.5vw, 1.925rem);
  }
}

/* Mobile */
@media (max-width: 820px) {
  body.version-22 .hero .eyebrow {
    font-size: clamp(.98rem, 4.2vw, 1.55rem);
    line-height: 1.12;
  }

  body.version-22 .hero h1 {
    font-size: clamp(.98rem, 4.2vw, 1.55rem);
    line-height: 1.18;
  }

  body.version-22 #inicio::before,
  body.version-22 #servicos::before {
    opacity: .15;
  }
}

/* Telemóvel pequeno */
@media (max-width: 520px) {
  body.version-22 .hero .eyebrow,
  body.version-22 .hero h1 {
    font-size: clamp(.95rem, 4.3vw, 1.32rem);
  }
}


/* VERSION 23
   - atualização do título da segunda secção
*/


/* VERSION 24
   - uniformização textual da marca: UNFOLD FORMS em maiúsculas
*/


/* =========================================================
   VERSION 25
   - todas as referências visíveis a UNFOLD FORMS passam a negrito
========================================================= */

body.version-25 .brand-highlight {
  font-weight: 700;
  font-style: normal;
  letter-spacing: inherit;
  color: inherit;
}

/* garantir leitura consistente em botões e títulos */
body.version-25 .button .brand-highlight,
body.version-25 .hero .eyebrow .brand-highlight,
body.version-25 h1 .brand-highlight,
body.version-25 h2 .brand-highlight,
body.version-25 p .brand-highlight,
body.version-25 .site-footer .brand-highlight {
  font-weight: 700;
}


/* =========================================================
   VERSION 26
   - cabeçalho nas secções Serviços e Contactos passa para preto
========================================================= */

body.version-26 .site-header.section-header-dark {
  color: var(--black);
  background: rgba(244, 243, 240, .88);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--line-light);
}

/* Troca do símbolo/logótipo para a versão escura quando o cabeçalho está preto */
body.version-26 .site-header.section-header-dark .brand-logo-light,
body.version-26 .site-header.section-header-dark .brand-mark-light,
body.version-26 .site-header.section-header-dark .brand-full-light {
  opacity: 0;
}

body.version-26 .site-header.section-header-dark .brand-logo-dark,
body.version-26 .site-header.section-header-dark .brand-mark-dark,
body.version-26 .site-header.section-header-dark .brand-full-dark {
  opacity: 1;
}

/* Garantir herança de cor nos elementos do cabeçalho */
body.version-26 .site-header.section-header-dark .main-nav,
body.version-26 .site-header.section-header-dark .main-nav a,
body.version-26 .site-header.section-header-dark .language-switch,
body.version-26 .site-header.section-header-dark .lang-btn,
body.version-26 .site-header.section-header-dark .nav-toggle {
  color: var(--black);
}


/* =========================================================
   VERSION 27
   - cabeçalho adapta-se à cor de cada secção
   - correção da linha extra na caixa "Contactos diretos"
   - remoção dos arcos no canto superior direito da secção de contactos
========================================================= */

/* Cabeçalho conforme a secção ativa */
body.version-27 .site-header.section-header-dark {
  color: var(--white);
  background: #000000;
  border-bottom-color: rgba(255, 255, 255, .08);
  backdrop-filter: none;
}

body.version-27 .site-header.section-header-light {
  color: var(--black);
  background: rgba(244, 243, 240, 1);
  border-bottom-color: var(--line-light);
  backdrop-filter: none;
}

/* Garantir que a lógica da secção tem prioridade sobre o estado scrolled */
body.version-27 .site-header.section-header-dark.is-scrolled,
body.version-27 .site-header.section-header-dark.menu-open {
  color: var(--white);
  background: #000000;
  border-bottom-color: rgba(255, 255, 255, .08);
  backdrop-filter: none;
}

body.version-27 .site-header.section-header-light.is-scrolled,
body.version-27 .site-header.section-header-light.menu-open {
  color: var(--black);
  background: rgba(244, 243, 240, 1);
  border-bottom-color: var(--line-light);
  backdrop-filter: none;
}

/* Troca correta dos logótipos/símbolos */
body.version-27 .site-header.section-header-dark .brand-logo-light,
body.version-27 .site-header.section-header-dark .brand-mark-light,
body.version-27 .site-header.section-header-dark .brand-full-light {
  opacity: 1;
}

body.version-27 .site-header.section-header-dark .brand-logo-dark,
body.version-27 .site-header.section-header-dark .brand-mark-dark,
body.version-27 .site-header.section-header-dark .brand-full-dark {
  opacity: 0;
}

body.version-27 .site-header.section-header-light .brand-logo-light,
body.version-27 .site-header.section-header-light .brand-mark-light,
body.version-27 .site-header.section-header-light .brand-full-light {
  opacity: 0;
}

body.version-27 .site-header.section-header-light .brand-logo-dark,
body.version-27 .site-header.section-header-light .brand-mark-dark,
body.version-27 .site-header.section-header-light .brand-full-dark {
  opacity: 1;
}

/* Cores do menu e controlos */
body.version-27 .site-header.section-header-dark .main-nav,
body.version-27 .site-header.section-header-dark .main-nav a,
body.version-27 .site-header.section-header-dark .language-switch,
body.version-27 .site-header.section-header-dark .lang-btn,
body.version-27 .site-header.section-header-dark .nav-toggle {
  color: var(--white);
}

body.version-27 .site-header.section-header-light .main-nav,
body.version-27 .site-header.section-header-light .main-nav a,
body.version-27 .site-header.section-header-light .language-switch,
body.version-27 .site-header.section-header-light .lang-btn,
body.version-27 .site-header.section-header-light .nav-toggle {
  color: var(--black);
}

/* Contactos: remover a linha superior extra e corrigir a composição da caixa */
body.version-27 .contact-panel-v3 {
  border-top: 0;
  padding-top: 0;
}

body.version-27 .contact-card:first-child {
  margin-top: 0;
}

/* Remover os arcos do canto superior direito na secção de contactos */
body.version-27 .pattern-contact {
  display: none;
}


/* =========================================================
   VERSION 28
   - acrescenta terceiro idioma: ES / castelhano
========================================================= */

body.version-28 .language-switch {
  gap: .38rem;
}

body.version-28 .lang-btn {
  min-width: 1.4rem;
  text-align: center;
}

@media (max-width: 820px) {
  body.version-28 .language-switch {
    gap: .5rem;
  }
}


/* VERSION 29
   - acrescenta o botão ES visível no canto superior direito
*/
body.version-29 .language-switch {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
}

body.version-29 .language-switch span {
  opacity: .7;
}


/* FINAL FIX
   - correção do link "Voltar ao topo"
*/
body.version-final [data-i18n="footer.top"],
body.version-final a[href="#top"] {
  cursor: pointer;
}


/* =========================================================
   VERSION 31
   - teste: trocar o arco do cabeçalho pelo logótipo usado
     na parte direita das secções
========================================================= */

body.version-31 .brand.brand-v15.brand-v16 {
  width: clamp(148px, 13vw, 220px);
  height: auto;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
}

body.version-31 .brand-v15 .brand-mark-wrap,
body.version-31 .brand-v16 .brand-mark-wrap {
  width: clamp(148px, 13vw, 220px);
  height: clamp(30px, 2.8vw, 48px);
  display: inline-flex;
  align-items: center;
}

body.version-31 .brand-v15 .brand-mark,
body.version-31 .brand-v16 .brand-mark {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: none;
}

/* Substituir o arco pelo logótipo completo */
body.version-31 .brand-v15 .brand-mark-light,
body.version-31 .brand-v16 .brand-mark-light {
  content: url("../img/unfoldforms-logo-white.png");
}

body.version-31 .brand-v15 .brand-mark-dark,
body.version-31 .brand-v16 .brand-mark-dark {
  content: url("../img/unfoldforms-logo-black.png");
}

/* Respeitar o tema do cabeçalho por secção */
body.version-31 .site-header.section-header-dark .brand-mark-light {
  opacity: 1;
}
body.version-31 .site-header.section-header-dark .brand-mark-dark {
  opacity: 0;
}
body.version-31 .site-header.section-header-light .brand-mark-light {
  opacity: 0;
}
body.version-31 .site-header.section-header-light .brand-mark-dark {
  opacity: 1;
}

/* Hover mais discreto */
body.version-31 .brand-v15:hover .brand-mark,
body.version-31 .brand-v16:hover .brand-mark,
body.version-31 .brand-v15:focus-visible .brand-mark,
body.version-31 .brand-v16:focus-visible .brand-mark {
  transform: none;
  opacity: .96;
}

/* Tablet */
@media (max-width: 1100px) {
  body.version-31 .brand.brand-v15.brand-v16,
  body.version-31 .brand-v15 .brand-mark-wrap,
  body.version-31 .brand-v16 .brand-mark-wrap {
    width: 162px;
  }

  body.version-31 .brand-v15 .brand-mark-wrap,
  body.version-31 .brand-v16 .brand-mark-wrap {
    height: 34px;
  }
}

/* Mobile */
@media (max-width: 820px) {
  body.version-31 .brand.brand-v15.brand-v16,
  body.version-31 .brand-v15 .brand-mark-wrap,
  body.version-31 .brand-v16 .brand-mark-wrap {
    width: 132px;
  }

  body.version-31 .brand-v15 .brand-mark-wrap,
  body.version-31 .brand-v16 .brand-mark-wrap {
    height: 28px;
  }
}

/* Telemóvel pequeno */
@media (max-width: 560px) {
  body.version-31 .brand.brand-v15.brand-v16,
  body.version-31 .brand-v15 .brand-mark-wrap,
  body.version-31 .brand-v16 .brand-mark-wrap {
    width: 116px;
  }

  body.version-31 .brand-v15 .brand-mark-wrap,
  body.version-31 .brand-v16 .brand-mark-wrap {
    height: 24px;
  }
}


/* =========================================================
   VERSION 33
   - manter logótipo no cabeçalho
   - aumentar o logótipo do cabeçalho para ficar mais visível,
     aproximando-o visualmente do logótipo presente na última secção
========================================================= */

body.version-33 .site-header .container {
  gap: 1.25rem;
}

body.version-33 .brand.brand-v15.brand-v16 {
  width: clamp(220px, 16vw, 300px);
  height: auto;
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

body.version-33 .brand-v15 .brand-mark-wrap,
body.version-33 .brand-v16 .brand-mark-wrap {
  width: clamp(220px, 16vw, 300px);
  height: clamp(44px, 3.6vw, 64px);
  display: inline-flex;
  align-items: center;
}

body.version-33 .brand-v15 .brand-mark,
body.version-33 .brand-v16 .brand-mark {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: none;
}

/* manter o logótipo completo no cabeçalho */
body.version-33 .brand-v15 .brand-mark-light,
body.version-33 .brand-v16 .brand-mark-light {
  content: url("../img/unfoldforms-logo-white.png");
}

body.version-33 .brand-v15 .brand-mark-dark,
body.version-33 .brand-v16 .brand-mark-dark {
  content: url("../img/unfoldforms-logo-black.png");
}

/* respeitar o tema do cabeçalho por secção */
body.version-33 .site-header.section-header-dark .brand-mark-light {
  opacity: 1;
}
body.version-33 .site-header.section-header-dark .brand-mark-dark {
  opacity: 0;
}
body.version-33 .site-header.section-header-light .brand-mark-light {
  opacity: 0;
}
body.version-33 .site-header.section-header-light .brand-mark-dark {
  opacity: 1;
}

/* estado inicial e estados de scroll/menu */
body.version-33 .site-header:not(.section-header-light):not(.is-scrolled):not(.menu-open) .brand-mark-light {
  opacity: 1;
}
body.version-33 .site-header:not(.section-header-light):not(.is-scrolled):not(.menu-open) .brand-mark-dark {
  opacity: 0;
}
body.version-33 .site-header.is-scrolled:not(.section-header-dark) .brand-mark-light,
body.version-33 .site-header.menu-open:not(.section-header-dark) .brand-mark-light {
  opacity: 0;
}
body.version-33 .site-header.is-scrolled:not(.section-header-dark) .brand-mark-dark,
body.version-33 .site-header.menu-open:not(.section-header-dark) .brand-mark-dark {
  opacity: 1;
}

/* garantir espaço suficiente para o menu */
body.version-33 .site-header .main-nav {
  margin-left: auto;
}

body.version-33 .brand-v15:hover .brand-mark,
body.version-33 .brand-v16:hover .brand-mark,
body.version-33 .brand-v15:focus-visible .brand-mark,
body.version-33 .brand-v16:focus-visible .brand-mark {
  transform: none;
  opacity: .96;
}

/* Desktop intermédio */
@media (max-width: 1360px) {
  body.version-33 .brand.brand-v15.brand-v16,
  body.version-33 .brand-v15 .brand-mark-wrap,
  body.version-33 .brand-v16 .brand-mark-wrap {
    width: 240px;
  }

  body.version-33 .brand-v15 .brand-mark-wrap,
  body.version-33 .brand-v16 .brand-mark-wrap {
    height: 52px;
  }
}

/* Tablet */
@media (max-width: 1100px) {
  body.version-33 .brand.brand-v15.brand-v16,
  body.version-33 .brand-v15 .brand-mark-wrap,
  body.version-33 .brand-v16 .brand-mark-wrap {
    width: 205px;
  }

  body.version-33 .brand-v15 .brand-mark-wrap,
  body.version-33 .brand-v16 .brand-mark-wrap {
    height: 44px;
  }
}

/* Mobile */
@media (max-width: 820px) {
  body.version-33 .brand.brand-v15.brand-v16,
  body.version-33 .brand-v15 .brand-mark-wrap,
  body.version-33 .brand-v16 .brand-mark-wrap {
    width: 148px;
  }

  body.version-33 .brand.brand-v15.brand-v16 {
    min-height: 36px;
  }

  body.version-33 .brand-v15 .brand-mark-wrap,
  body.version-33 .brand-v16 .brand-mark-wrap {
    height: 30px;
  }
}

/* Telemóvel pequeno */
@media (max-width: 560px) {
  body.version-33 .brand.brand-v15.brand-v16,
  body.version-33 .brand-v15 .brand-mark-wrap,
  body.version-33 .brand-v16 .brand-mark-wrap {
    width: 126px;
  }

  body.version-33 .brand-v15 .brand-mark-wrap,
  body.version-33 .brand-v16 .brand-mark-wrap {
    height: 26px;
  }
}


/* =========================================================
   VERSION 34
   - aumentar o cabeçalho para uma presença visual próxima do rodapé
   - ajustar o logótipo do cabeçalho para o mesmo tamanho do logótipo
     do rodapé na secção de contactos
========================================================= */

body.version-34 {
  --header: 112px;
}

/* cabeçalho mais alto */
body.version-34 .site-header {
  height: var(--header);
}

body.version-34 .header-inner {
  min-height: var(--header);
  align-items: center;
}

/* logótipo do cabeçalho com o mesmo tamanho base do rodapé */
body.version-34 .brand.brand-v15.brand-v16 {
  width: 190px;
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

body.version-34 .brand-v15 .brand-mark-wrap,
body.version-34 .brand-v16 .brand-mark-wrap {
  width: 190px;
  height: 56px;
  display: inline-flex;
  align-items: center;
}

body.version-34 .brand-v15 .brand-mark,
body.version-34 .brand-v16 .brand-mark {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: none;
}

/* manter o logótipo completo no cabeçalho */
body.version-34 .brand-v15 .brand-mark-light,
body.version-34 .brand-v16 .brand-mark-light {
  content: url("../img/unfoldforms-logo-white.png");
}

body.version-34 .brand-v15 .brand-mark-dark,
body.version-34 .brand-v16 .brand-mark-dark {
  content: url("../img/unfoldforms-logo-black.png");
}

/* respeitar o tema do cabeçalho */
body.version-34 .site-header.section-header-dark .brand-mark-light {
  opacity: 1;
}
body.version-34 .site-header.section-header-dark .brand-mark-dark {
  opacity: 0;
}
body.version-34 .site-header.section-header-light .brand-mark-light {
  opacity: 0;
}
body.version-34 .site-header.section-header-light .brand-mark-dark {
  opacity: 1;
}

/* estado inicial e estados scrolled/menu */
body.version-34 .site-header:not(.section-header-light):not(.is-scrolled):not(.menu-open) .brand-mark-light {
  opacity: 1;
}
body.version-34 .site-header:not(.section-header-light):not(.is-scrolled):not(.menu-open) .brand-mark-dark {
  opacity: 0;
}
body.version-34 .site-header.is-scrolled:not(.section-header-dark) .brand-mark-light,
body.version-34 .site-header.menu-open:not(.section-header-dark) .brand-mark-light {
  opacity: 0;
}
body.version-34 .site-header.is-scrolled:not(.section-header-dark) .brand-mark-dark,
body.version-34 .site-header.menu-open:not(.section-header-dark) .brand-mark-dark {
  opacity: 1;
}

body.version-34 .site-header .main-nav {
  margin-left: auto;
}

body.version-34 .brand-v15:hover .brand-mark,
body.version-34 .brand-v16:hover .brand-mark,
body.version-34 .brand-v15:focus-visible .brand-mark,
body.version-34 .brand-v16:focus-visible .brand-mark {
  transform: none;
  opacity: .96;
}

/* Desktop intermédio */
@media (max-width: 1200px) {
  body.version-34 {
    --header: 102px;
  }

  body.version-34 .brand.brand-v15.brand-v16,
  body.version-34 .brand-v15 .brand-mark-wrap,
  body.version-34 .brand-v16 .brand-mark-wrap {
    width: 176px;
  }

  body.version-34 .brand-v15 .brand-mark-wrap,
  body.version-34 .brand-v16 .brand-mark-wrap {
    height: 50px;
  }
}

/* Tablet */
@media (max-width: 820px) {
  body.version-34 {
    --header: 88px;
  }

  body.version-34 .brand.brand-v15.brand-v16,
  body.version-34 .brand-v15 .brand-mark-wrap,
  body.version-34 .brand-v16 .brand-mark-wrap {
    width: 150px;
  }

  body.version-34 .brand.brand-v15.brand-v16 {
    min-height: 40px;
  }

  body.version-34 .brand-v15 .brand-mark-wrap,
  body.version-34 .brand-v16 .brand-mark-wrap {
    height: 36px;
  }
}

/* Telemóvel pequeno */
@media (max-width: 560px) {
  body.version-34 {
    --header: 78px;
  }

  body.version-34 .brand.brand-v15.brand-v16,
  body.version-34 .brand-v15 .brand-mark-wrap,
  body.version-34 .brand-v16 .brand-mark-wrap {
    width: 128px;
  }

  body.version-34 .brand-v15 .brand-mark-wrap,
  body.version-34 .brand-v16 .brand-mark-wrap {
    height: 30px;
  }
}


/* =========================================================
   VERSION 35
   - corrigir o espaçamento no botão "CONHECER A UNFOLD FORMS"
   - substituir o logótipo grande à direita da primeira secção pelo arco
========================================================= */

/* garantir separação visível entre "A" e "UNFOLD FORMS" dentro do botão */
body.version-35 .button .brand-highlight {
  margin-left: .36em;
}

/* manter o comportamento do rodapé e do cabeçalho da versão 34,
   alterando apenas o elemento gráfico grande da primeira secção */
body.version-35 #inicio::before {
  background-image: url("../img/brand-monogram-white.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  width: clamp(170px, 23vw, 310px);
  aspect-ratio: 1.48 / 1;
  right: clamp(26px, 7vw, 100px);
  bottom: clamp(52px, 12svh, 120px);
  opacity: .16;
  filter: brightness(1.18) contrast(1.02);
}

/* em tablet */
@media (max-width: 1100px) {
  body.version-35 #inicio::before {
    width: clamp(150px, 26vw, 250px);
    right: clamp(20px, 5vw, 56px);
    bottom: clamp(50px, 10svh, 92px);
    opacity: .15;
  }
}

/* em mobile */
@media (max-width: 820px) {
  body.version-35 #inicio::before {
    width: clamp(118px, 30vw, 180px);
    right: 18px;
    bottom: 128px;
    opacity: .14;
  }
}

/* telemóvel pequeno */
@media (max-width: 560px) {
  body.version-35 #inicio::before {
    width: 108px;
    right: 14px;
    bottom: 118px;
  }
}


/* =========================================================
   VERSION 36
   - aumentar o arco da primeira secção para ocupar visualmente
     cerca de 2/3 da altura da secção
========================================================= */

body.version-36 #inicio::before {
  background-image: url("../img/brand-monogram-white.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  height: clamp(340px, 66%, 620px);
  width: auto;
  aspect-ratio: 1.48 / 1;
  right: clamp(24px, 6vw, 90px);
  top: 50%;
  bottom: auto;
  transform: translateY(-44%);
  opacity: .15;
  filter: brightness(1.16) contrast(1.02);
}

/* Desktop médio */
@media (max-width: 1280px) {
  body.version-36 #inicio::before {
    height: clamp(300px, 62%, 520px);
    right: clamp(18px, 4vw, 52px);
    transform: translateY(-42%);
  }
}

/* Tablet */
@media (max-width: 1100px) {
  body.version-36 #inicio::before {
    height: clamp(250px, 56%, 420px);
    right: 20px;
    transform: translateY(-40%);
    opacity: .14;
  }
}

/* Mobile */
@media (max-width: 820px) {
  body.version-36 #inicio::before {
    height: clamp(170px, 42%, 260px);
    right: 14px;
    top: 58%;
    transform: translateY(-36%);
    opacity: .13;
  }
}

/* Telemóvel pequeno */
@media (max-width: 560px) {
  body.version-36 #inicio::before {
    height: clamp(140px, 34%, 210px);
    right: 12px;
    top: 60%;
    transform: translateY(-34%);
  }
}


/* =========================================================
   VERSION 37
   - aumentar o logótipo do cabeçalho para ocupar praticamente
     toda a altura do cabeçalho
   - aplicar o arco em todas as secções, excepto Contactos
   - arco mais encostado à direita e cerca de 1,5 cm mais pequeno
========================================================= */

body.version-37 {
  --header: 118px;
}

/* cabeçalho e logótipo */
body.version-37 .site-header {
  height: var(--header);
}

body.version-37 .header-inner {
  min-height: var(--header);
  align-items: center;
}

body.version-37 .brand.brand-v15.brand-v16 {
  height: calc(var(--header) - 12px);
  width: auto;
  min-height: calc(var(--header) - 12px);
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

body.version-37 .brand-v15 .brand-mark-wrap,
body.version-37 .brand-v16 .brand-mark-wrap {
  height: calc(var(--header) - 12px);
  width: auto;
  aspect-ratio: 2.06 / 1;
  display: inline-flex;
  align-items: center;
}

body.version-37 .brand-v15 .brand-mark,
body.version-37 .brand-v16 .brand-mark {
  height: 100%;
  width: auto;
  object-fit: contain;
  transform: none;
}

body.version-37 .site-header .main-nav {
  margin-left: auto;
}

/* manter o logótipo completo no cabeçalho */
body.version-37 .brand-v15 .brand-mark-light,
body.version-37 .brand-v16 .brand-mark-light {
  content: url("../img/unfoldforms-logo-white.png");
}
body.version-37 .brand-v15 .brand-mark-dark,
body.version-37 .brand-v16 .brand-mark-dark {
  content: url("../img/unfoldforms-logo-black.png");
}

/* respeitar a cor do cabeçalho */
body.version-37 .site-header.section-header-dark .brand-mark-light { opacity: 1; }
body.version-37 .site-header.section-header-dark .brand-mark-dark { opacity: 0; }
body.version-37 .site-header.section-header-light .brand-mark-light { opacity: 0; }
body.version-37 .site-header.section-header-light .brand-mark-dark { opacity: 1; }

body.version-37 .site-header:not(.section-header-light):not(.is-scrolled):not(.menu-open) .brand-mark-light { opacity: 1; }
body.version-37 .site-header:not(.section-header-light):not(.is-scrolled):not(.menu-open) .brand-mark-dark { opacity: 0; }
body.version-37 .site-header.is-scrolled:not(.section-header-dark) .brand-mark-light,
body.version-37 .site-header.menu-open:not(.section-header-dark) .brand-mark-light { opacity: 0; }
body.version-37 .site-header.is-scrolled:not(.section-header-dark) .brand-mark-dark,
body.version-37 .site-header.menu-open:not(.section-header-dark) .brand-mark-dark { opacity: 1; }

/* arco grande em todas as secções excepto contactos */
body.version-37 #inicio::before,
body.version-37 .statement::before,
body.version-37 #sobre::before,
body.version-37 #servicos::before,
body.version-37 #metodo::before {
  content: "";
  position: absolute;
  pointer-events: none;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  width: auto;
  aspect-ratio: 1.48 / 1;
  right: clamp(4px, 1.2vw, 18px);
  top: 50%;
  bottom: auto;
  transform: translateY(-42%);
  z-index: 0;
}

/* secções escuras */
body.version-37 #inicio::before,
body.version-37 #servicos::before {
  background-image: url("../img/brand-monogram-white.png");
  height: clamp(285px, 57%, 565px);
  opacity: .14;
  filter: brightness(1.15) contrast(1.02);
}

/* secções claras */
body.version-37 .statement::before,
body.version-37 #sobre::before,
body.version-37 #metodo::before {
  background-image: url("../img/brand-monogram-black.png");
  height: clamp(250px, 52%, 470px);
  opacity: .08;
  filter: none;
}

/* contactos sem arco grande */
body.version-37 #contactos::before {
  content: none !important;
}

/* tablet */
@media (max-width: 1100px) {
  body.version-37 {
    --header: 96px;
  }

  body.version-37 .brand.brand-v15.brand-v16,
  body.version-37 .brand-v15 .brand-mark-wrap,
  body.version-37 .brand-v16 .brand-mark-wrap {
    height: calc(var(--header) - 12px);
  }

  body.version-37 #inicio::before,
  body.version-37 #servicos::before {
    height: clamp(230px, 48%, 410px);
    right: 10px;
    transform: translateY(-40%);
  }

  body.version-37 .statement::before,
  body.version-37 #sobre::before,
  body.version-37 #metodo::before {
    height: clamp(205px, 44%, 360px);
    right: 10px;
    transform: translateY(-38%);
  }
}

/* mobile */
@media (max-width: 820px) {
  body.version-37 {
    --header: 82px;
  }

  body.version-37 .brand.brand-v15.brand-v16,
  body.version-37 .brand-v15 .brand-mark-wrap,
  body.version-37 .brand-v16 .brand-mark-wrap {
    height: calc(var(--header) - 10px);
  }

  body.version-37 #inicio::before,
  body.version-37 #servicos::before {
    height: clamp(155px, 34%, 240px);
    right: 8px;
    top: 58%;
    transform: translateY(-35%);
    opacity: .12;
  }

  body.version-37 .statement::before,
  body.version-37 #sobre::before,
  body.version-37 #metodo::before {
    height: clamp(138px, 30%, 205px);
    right: 8px;
    top: 60%;
    transform: translateY(-32%);
    opacity: .07;
  }
}

/* telemóvel pequeno */
@media (max-width: 560px) {
  body.version-37 {
    --header: 72px;
  }

  body.version-37 .brand.brand-v15.brand-v16,
  body.version-37 .brand-v15 .brand-mark-wrap,
  body.version-37 .brand-v16 .brand-mark-wrap {
    height: calc(var(--header) - 8px);
  }

  body.version-37 #inicio::before,
  body.version-37 #servicos::before {
    height: clamp(132px, 29%, 190px);
    right: 6px;
  }

  body.version-37 .statement::before,
  body.version-37 #sobre::before,
  body.version-37 #metodo::before {
    height: clamp(118px, 25%, 168px);
    right: 6px;
  }
}


/* =========================================================
   VERSION 39
   - retoma a Versão 37 como base
   - ajusta o scroll e a altura útil das secções para integrar melhor
     o cabeçalho/logótipo/arcos quando se clica no menu
   - nas secções claras, o cabeçalho passa a ter a mesma cor clara
     da própria secção
========================================================= */

body.version-39 {
  --header: clamp(96px, 11svh, 118px);
  scroll-padding-top: var(--header);
}

/* Quando se clica no menu, a secção entra abaixo do cabeçalho,
   evitando que o topo/elementos gráficos fiquem cortados. */
body.version-39 section[id] {
  scroll-margin-top: var(--header);
}

/* Altura e espaçamento das páginas/secções para integrar melhor o cabeçalho */
body.version-39 .manual-section {
  min-height: 100svh;
  min-height: 100dvh;
  padding-top: calc(var(--header) + clamp(2rem, 5svh, 4.5rem));
  padding-bottom: calc(var(--pattern-band-height) + clamp(2.4rem, 5svh, 5rem));
  overflow: hidden;
}

/* Primeira secção mantém presença total */
body.version-39 #inicio {
  min-height: 100svh;
  min-height: 100dvh;
}

/* Cabeçalho nas secções claras: mesma cor da secção */
body.version-39 .site-header.section-header-light,
body.version-39 .site-header.section-header-light.is-scrolled,
body.version-39 .site-header.section-header-light.menu-open {
  color: var(--black);
  background: var(--paper);
  border-bottom-color: var(--line-light);
  backdrop-filter: none;
}

/* Cabeçalho nas secções escuras: preto integral, como a secção */
body.version-39 .site-header.section-header-dark,
body.version-39 .site-header.section-header-dark.is-scrolled,
body.version-39 .site-header.section-header-dark.menu-open {
  color: var(--white);
  background: var(--black);
  border-bottom-color: rgba(255, 255, 255, .08);
  backdrop-filter: none;
}

/* Troca correta do logótipo do cabeçalho conforme a cor da secção */
body.version-39 .site-header.section-header-light .brand-mark-light {
  opacity: 0;
}

body.version-39 .site-header.section-header-light .brand-mark-dark {
  opacity: 1;
}

body.version-39 .site-header.section-header-dark .brand-mark-light {
  opacity: 1;
}

body.version-39 .site-header.section-header-dark .brand-mark-dark {
  opacity: 0;
}

/* Menu acompanha a cor da secção */
body.version-39 .site-header.section-header-light .main-nav,
body.version-39 .site-header.section-header-light .main-nav a,
body.version-39 .site-header.section-header-light .language-switch,
body.version-39 .site-header.section-header-light .lang-btn,
body.version-39 .site-header.section-header-light .nav-toggle {
  color: var(--black);
}

body.version-39 .site-header.section-header-dark .main-nav,
body.version-39 .site-header.section-header-dark .main-nav a,
body.version-39 .site-header.section-header-dark .language-switch,
body.version-39 .site-header.section-header-dark .lang-btn,
body.version-39 .site-header.section-header-dark .nav-toggle {
  color: var(--white);
}

/* Arcos: ajustados para ficarem integrados quando a navegação salta para cada secção */
body.version-39 #inicio::before,
body.version-39 .statement::before,
body.version-39 #sobre::before,
body.version-39 #servicos::before,
body.version-39 #metodo::before {
  top: calc(var(--header) + 50%);
  transform: translateY(-50%);
  right: clamp(2px, 1vw, 16px);
  z-index: 1;
}

/* Secções escuras */
body.version-39 #inicio::before,
body.version-39 #servicos::before {
  height: clamp(260px, 53svh, 540px);
  opacity: .13;
}

/* Secções claras */
body.version-39 .statement::before,
body.version-39 #sobre::before,
body.version-39 #metodo::before {
  height: clamp(230px, 47svh, 450px);
  opacity: .075;
}

/* Contactos continua sem arco grande */
body.version-39 #contactos::before {
  content: none !important;
}

/* Garantir que conteúdo fica sempre acima dos arcos */
body.version-39 .manual-section > .container,
body.version-39 .manual-index,
body.version-39 .hero-copy,
body.version-39 .statement-content,
body.version-39 .section-heading,
body.version-39 .rich-text,
body.version-39 .cards-grid,
body.version-39 .timeline,
body.version-39 .contact-grid {
  position: relative;
  z-index: 3;
}

/* Ecrãs de baixa altura: compactação para não cortar conteúdo */
@media (min-width: 821px) and (max-height: 760px) {
  body.version-39 {
    --header: 84px;
  }

  body.version-39 .manual-section {
    padding-top: calc(var(--header) + 1.4rem);
    padding-bottom: calc(var(--pattern-band-height) + 1.8rem);
  }

  body.version-39 #inicio::before,
  body.version-39 #servicos::before {
    height: clamp(205px, 44svh, 380px);
  }

  body.version-39 .statement::before,
  body.version-39 #sobre::before,
  body.version-39 #metodo::before {
    height: clamp(180px, 38svh, 325px);
  }
}

/* Tablet */
@media (max-width: 1100px) {
  body.version-39 {
    --header: clamp(84px, 9svh, 100px);
  }

  body.version-39 .manual-section {
    padding-top: calc(var(--header) + 2rem);
  }

  body.version-39 #inicio::before,
  body.version-39 #servicos::before {
    height: clamp(220px, 45svh, 410px);
    right: 8px;
  }

  body.version-39 .statement::before,
  body.version-39 #sobre::before,
  body.version-39 #metodo::before {
    height: clamp(195px, 40svh, 350px);
    right: 8px;
  }
}

/* Mobile */
@media (max-width: 820px) {
  body.version-39 {
    --header: 76px;
  }

  body.version-39 .manual-section {
    min-height: auto;
    padding-top: calc(var(--header) + 2rem);
    padding-bottom: calc(var(--pattern-band-height) + 2rem);
  }

  body.version-39 #inicio {
    min-height: 100svh;
    min-height: 100dvh;
  }

  body.version-39 #inicio::before,
  body.version-39 #servicos::before {
    height: clamp(135px, 30svh, 220px);
    top: 58%;
    right: 8px;
    transform: translateY(-35%);
    opacity: .12;
  }

  body.version-39 .statement::before,
  body.version-39 #sobre::before,
  body.version-39 #metodo::before {
    height: clamp(120px, 27svh, 195px);
    top: 60%;
    right: 8px;
    transform: translateY(-35%);
    opacity: .065;
  }
}

/* Telemóvel pequeno */
@media (max-width: 520px) {
  body.version-39 {
    --header: 70px;
  }

  body.version-39 .manual-section {
    padding-top: calc(var(--header) + 1.6rem);
  }

  body.version-39 #inicio::before,
  body.version-39 #servicos::before {
    height: clamp(115px, 25svh, 175px);
    right: 5px;
  }

  body.version-39 .statement::before,
  body.version-39 #sobre::before,
  body.version-39 #metodo::before {
    height: clamp(100px, 23svh, 155px);
    right: 5px;
  }
}


/* =========================================================
   VERSION 40
   - ajuste vertical do conteúdo da primeira secção
   - descer o bloco de texto para ficar mais enquadrado com o arco
========================================================= */

body.version-40 #inicio .container {
  display: flex;
  align-items: center;
  min-height: calc(100svh - var(--header) - clamp(7rem, 14svh, 10rem));
}

body.version-40 #inicio .hero-copy,
body.version-40 #inicio .hero-copy-wide {
  margin-top: clamp(2.4rem, 8svh, 6.2rem);
}

/* afinação para desktop baixo */
@media (min-width: 821px) and (max-height: 760px) {
  body.version-40 #inicio .container {
    min-height: calc(100svh - var(--header) - 6rem);
  }

  body.version-40 #inicio .hero-copy,
  body.version-40 #inicio .hero-copy-wide {
    margin-top: clamp(1.4rem, 5svh, 3rem);
  }
}

/* tablet */
@media (max-width: 1100px) {
  body.version-40 #inicio .hero-copy,
  body.version-40 #inicio .hero-copy-wide {
    margin-top: clamp(1.8rem, 5svh, 3.2rem);
  }
}

/* mobile */
@media (max-width: 820px) {
  body.version-40 #inicio .container {
    min-height: auto;
    align-items: flex-start;
  }

  body.version-40 #inicio .hero-copy,
  body.version-40 #inicio .hero-copy-wide {
    margin-top: clamp(1rem, 3svh, 1.8rem);
  }
}

/* mobile pequeno */
@media (max-width: 520px) {
  body.version-40 #inicio .hero-copy,
  body.version-40 #inicio .hero-copy-wide {
    margin-top: .75rem;
  }
}


/* =========================================================
   VERSION 41
   - recolocar/garantir logótipo visível no topo esquerdo nas secções pretas
   - descer mais ~1,5 cm o bloco de texto da primeira secção
   - rever a altura útil das secções para caberem melhor num ecrã
     desde o cabeçalho até ao rodapé/padrão de arcos
========================================================= */

body.version-41 {
  --header: clamp(96px, 11svh, 118px);
  --pattern-band-height: clamp(88px, 13svh, 132px);
  --section-inner-gap: clamp(1rem, 1.8svh, 1.4rem);
  scroll-padding-top: var(--header);
}

/* garantir o logótipo completo visível no cabeçalho */
body.version-41 .brand-v15 .brand-mark-light,
body.version-41 .brand-v16 .brand-mark-light {
  content: url("../img/unfoldforms-logo-white.png");
}

body.version-41 .brand-v15 .brand-mark-dark,
body.version-41 .brand-v16 .brand-mark-dark {
  content: url("../img/unfoldforms-logo-black.png");
}

body.version-41 .site-header.section-header-dark .brand,
body.version-41 .site-header.section-header-light .brand {
  opacity: 1;
  visibility: visible;
}

body.version-41 .site-header.section-header-dark .brand-mark-light {
  opacity: 1 !important;
  visibility: visible !important;
}
body.version-41 .site-header.section-header-dark .brand-mark-dark {
  opacity: 0 !important;
  visibility: hidden !important;
}
body.version-41 .site-header.section-header-light .brand-mark-light {
  opacity: 0 !important;
  visibility: hidden !important;
}
body.version-41 .site-header.section-header-light .brand-mark-dark {
  opacity: 1 !important;
  visibility: visible !important;
}

/* afinação geral das secções para caberem num ecrã */
body.version-41 .manual-section {
  min-height: 100svh;
  min-height: 100dvh;
  padding-top: calc(var(--header) + 1rem);
  padding-bottom: calc(var(--pattern-band-height) + .85rem);
  overflow: hidden;
}

body.version-41 .manual-section > .container {
  min-height: calc(100svh - var(--header) - var(--pattern-band-height) - 1.85rem);
  min-height: calc(100dvh - var(--header) - var(--pattern-band-height) - 1.85rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--section-inner-gap);
}

/* índice das páginas mais contido para ajudar a caber num ecrã */
body.version-41 .manual-index {
  bottom: calc(var(--pattern-band-height) + .7rem);
}

/* primeira secção: descer o bloco de texto cerca de 1,5 cm */
body.version-41 #inicio .container {
  align-items: center;
}

body.version-41 #inicio .hero-copy,
body.version-41 #inicio .hero-copy-wide {
  margin-top: clamp(5.6rem, 14svh, 8.8rem);
}

/* statement / sobre / método: composição mais centrada */
body.version-41 .statement .container,
body.version-41 #sobre .container,
body.version-41 #metodo .container {
  justify-content: center;
}

/* serviços: reduzir ligeiramente a área ocupada para mostrar o padrão no mesmo ecrã */
body.version-41 #servicos .container {
  justify-content: center;
}

body.version-41 #servicos .cards-grid {
  gap: 0;
  transform: scale(.96);
  transform-origin: center center;
}

/* contactos: mostrar melhor o rodapé sem cortar */
body.version-41 #contactos .container {
  justify-content: flex-start;
  padding-top: .25rem;
}

body.version-41 #contactos .contact-grid {
  gap: clamp(1rem, 1.6svh, 1.25rem);
  transform: scale(.965);
  transform-origin: top center;
}

/* ecrãs desktop com pouca altura */
@media (min-width: 821px) and (max-height: 820px) {
  body.version-41 {
    --header: 94px;
    --pattern-band-height: 84px;
  }

  body.version-41 .manual-section {
    padding-top: calc(var(--header) + .8rem);
    padding-bottom: calc(var(--pattern-band-height) + .55rem);
  }

  body.version-41 .manual-section > .container {
    min-height: calc(100svh - var(--header) - var(--pattern-band-height) - 1.35rem);
    min-height: calc(100dvh - var(--header) - var(--pattern-band-height) - 1.35rem);
  }

  body.version-41 #inicio .hero-copy,
  body.version-41 #inicio .hero-copy-wide {
    margin-top: clamp(4.4rem, 11svh, 6.6rem);
  }

  body.version-41 #servicos .cards-grid {
    transform: scale(.92);
  }

  body.version-41 #contactos .contact-grid {
    transform: scale(.94);
  }
}

/* tablet */
@media (max-width: 1100px) {
  body.version-41 {
    --header: clamp(84px, 9svh, 100px);
    --pattern-band-height: clamp(80px, 11svh, 116px);
  }

  body.version-41 .manual-section {
    padding-top: calc(var(--header) + .9rem);
    padding-bottom: calc(var(--pattern-band-height) + .75rem);
  }

  body.version-41 .manual-section > .container {
    min-height: calc(100svh - var(--header) - var(--pattern-band-height) - 1.65rem);
    min-height: calc(100dvh - var(--header) - var(--pattern-band-height) - 1.65rem);
  }

  body.version-41 #inicio .hero-copy,
  body.version-41 #inicio .hero-copy-wide {
    margin-top: clamp(4rem, 10svh, 6rem);
  }

  body.version-41 #servicos .cards-grid,
  body.version-41 #contactos .contact-grid {
    transform: none;
  }
}

/* mobile */
@media (max-width: 820px) {
  body.version-41 {
    --header: 76px;
    --pattern-band-height: 92px;
  }

  body.version-41 .manual-section {
    min-height: auto;
    padding-top: calc(var(--header) + 1rem);
    padding-bottom: calc(var(--pattern-band-height) + 1rem);
  }

  body.version-41 .manual-section > .container {
    min-height: auto;
    display: block;
  }

  body.version-41 #inicio .hero-copy,
  body.version-41 #inicio .hero-copy-wide {
    margin-top: clamp(2.6rem, 6svh, 3.6rem);
  }

  body.version-41 .manual-index {
    bottom: calc(var(--pattern-band-height) + .6rem);
  }

  body.version-41 #servicos .cards-grid,
  body.version-41 #contactos .contact-grid {
    transform: none;
  }
}

/* telemóvel pequeno */
@media (max-width: 520px) {
  body.version-41 {
    --header: 70px;
    --pattern-band-height: 86px;
  }

  body.version-41 #inicio .hero-copy,
  body.version-41 #inicio .hero-copy-wide {
    margin-top: 2.2rem;
  }
}


/* =========================================================
   VERSION 42
   - corrigir a sobreposição na secção Método
   - repor o layout em grelha nas secções que foram afetadas
========================================================= */

/* Restaurar o layout próprio das secções em grelha */
body.version-42 #sobre .container.statement-grid {
  display: grid;
  min-height: calc(100svh - var(--header) - var(--pattern-band-height) - 1.85rem);
  min-height: calc(100dvh - var(--header) - var(--pattern-band-height) - 1.85rem);
  align-items: center;
}

body.version-42 #metodo .container.split-grid {
  display: grid;
  grid-template-columns: minmax(300px, .42fr) minmax(0, .58fr);
  gap: clamp(2rem, 4vw, 4.5rem);
  min-height: calc(100svh - var(--header) - var(--pattern-band-height) - 1.85rem);
  min-height: calc(100dvh - var(--header) - var(--pattern-band-height) - 1.85rem);
  align-items: start;
}

body.version-42 #contactos .container.contact-grid {
  display: grid;
  min-height: calc(100svh - var(--header) - var(--pattern-band-height) - 1.85rem);
  min-height: calc(100dvh - var(--header) - var(--pattern-band-height) - 1.85rem);
}

/* Afinar a secção Método para eliminar a sobreposição */
body.version-42 #metodo .sticky-heading {
  position: sticky;
  top: calc(var(--header) + 2rem);
  align-self: start;
  padding-top: clamp(.4rem, 1vh, .9rem);
  z-index: 1;
}

body.version-42 #metodo .section-heading h2 {
  max-width: 8.5ch;
  font-size: clamp(2.2rem, 4.3vw, 4.8rem);
  line-height: .96;
  letter-spacing: -.04em;
  margin: .3rem 0 0;
}

body.version-42 #metodo .timeline {
  border-top: 1px solid var(--line-light);
  margin-top: 0;
}

body.version-42 #metodo .timeline-item {
  padding: clamp(1rem, 1.9vh, 1.6rem) 0;
}

body.version-42 #metodo .timeline-item h3 {
  font-size: clamp(1.35rem, 2.1vw, 2.2rem);
}

body.version-42 #metodo .timeline-item p {
  margin-top: .35rem;
  font-size: clamp(.92rem, 1.12vw, 1rem);
  line-height: 1.35;
}

/* Tablet */
@media (max-width: 1100px) {
  body.version-42 #metodo .container.split-grid {
    grid-template-columns: minmax(240px, .42fr) minmax(0, .58fr);
    gap: clamp(1.5rem, 3vw, 2.25rem);
  }

  body.version-42 #metodo .section-heading h2 {
    max-width: 9.5ch;
    font-size: clamp(2rem, 3.9vw, 3.8rem);
  }

  body.version-42 #metodo .timeline-item {
    padding: 1rem 0;
  }
}

/* Mobile */
@media (max-width: 820px) {
  body.version-42 #sobre .container.statement-grid,
  body.version-42 #metodo .container.split-grid,
  body.version-42 #contactos .container.contact-grid {
    display: block;
    min-height: auto;
  }

  body.version-42 #metodo .sticky-heading {
    position: relative;
    top: auto;
    padding-top: 0;
    margin-bottom: 1.25rem;
  }

  body.version-42 #metodo .section-heading h2 {
    max-width: none;
    font-size: clamp(2rem, 9vw, 3.2rem);
    line-height: .98;
  }

  body.version-42 #metodo .timeline-item {
    padding: .95rem 0;
  }

  body.version-42 #metodo .timeline-item h3 {
    font-size: clamp(1.25rem, 5.4vw, 1.8rem);
  }

  body.version-42 #metodo .timeline-item p {
    font-size: .96rem;
  }
}


/* =========================================================
   VERSION 43
   - ajuste individual de cada secção para caber num ecrã desktop
   - mantendo a primeira secção como referência visual
========================================================= */

body.version-43 {
  --header: clamp(96px, 11svh, 118px);
  --pattern-band-height: clamp(78px, 10svh, 110px);
  --section-fit-gap: .7rem;
}

body.version-43 .manual-section {
  min-height: 100svh;
  min-height: 100dvh;
  padding-top: calc(var(--header) + .45rem);
  padding-bottom: calc(var(--pattern-band-height) + .45rem);
}

body.version-43 .manual-section > .container {
  min-height: calc(100svh - var(--header) - var(--pattern-band-height) - .9rem);
  min-height: calc(100dvh - var(--header) - var(--pattern-band-height) - .9rem);
}

body.version-43 .manual-index {
  bottom: calc(var(--pattern-band-height) + .55rem);
}

/* 01 — Início */
body.version-43 #inicio .container {
  min-height: calc(100svh - var(--header) - var(--pattern-band-height) - .9rem);
  min-height: calc(100dvh - var(--header) - var(--pattern-band-height) - .9rem);
  align-items: center;
}

body.version-43 #inicio .hero-copy,
body.version-43 #inicio .hero-copy-wide {
  margin-top: clamp(3.8rem, 10svh, 6rem);
}

/* 02 — Statement */
body.version-43 .statement-grid {
  min-height: calc(100svh - var(--header) - var(--pattern-band-height) - 1.3rem);
  min-height: calc(100dvh - var(--header) - var(--pattern-band-height) - 1.3rem);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3rem);
  padding-top: clamp(1.1rem, 2.2vw, 1.8rem);
}

body.version-43 .statement-content h2 {
  font-size: clamp(2.5rem, 4.8vw, 4.95rem);
  line-height: .95;
  max-width: 13ch;
}

body.version-43 .statement-content p {
  margin-top: 1rem;
  font-size: clamp(1rem, 1.2vw, 1.16rem);
  line-height: 1.42;
  max-width: 52ch;
}

/* 03 — Sobre */
body.version-43 #sobre .container.split-grid {
  grid-template-columns: minmax(260px, .48fr) minmax(0, .52fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  min-height: calc(100svh - var(--header) - var(--pattern-band-height) - 1.3rem);
  min-height: calc(100dvh - var(--header) - var(--pattern-band-height) - 1.3rem);
  align-items: center;
}

body.version-43 #sobre .section-heading h2 {
  font-size: clamp(2.7rem, 4.55vw, 4.85rem);
  line-height: .95;
  max-width: 12ch;
}

body.version-43 #sobre .rich-text {
  font-size: clamp(.98rem, 1.05vw, 1.12rem);
  line-height: 1.45;
}

body.version-43 #sobre .rich-text p + p {
  margin-top: .95rem;
}

/* 04 — Serviços */
body.version-43 #servicos .container {
  justify-content: center;
  gap: .85rem;
}

body.version-43 #servicos .section-heading-wide {
  max-width: 900px;
  margin-bottom: clamp(1rem, 2vh, 1.35rem);
}

body.version-43 #servicos .section-heading h2 {
  font-size: clamp(2.5rem, 4.7vw, 4.85rem);
  line-height: .94;
}

body.version-43 #servicos .cards-grid {
  width: 100%;
}

body.version-43 #servicos .service-card {
  min-height: 210px;
  padding: .9rem 1rem 1rem;
}

body.version-43 #servicos .service-card h3 {
  font-size: clamp(1.15rem, 1.45vw, 1.7rem);
  line-height: 1.06;
}

body.version-43 #servicos .service-card p {
  margin-top: .8rem;
  font-size: .92rem;
  line-height: 1.35;
}

/* 05 — Método */
body.version-43 #metodo .container.split-grid {
  grid-template-columns: minmax(230px, .36fr) minmax(0, .64fr);
  gap: clamp(1.5rem, 2.5vw, 2.3rem);
  min-height: calc(100svh - var(--header) - var(--pattern-band-height) - 1.2rem);
  min-height: calc(100dvh - var(--header) - var(--pattern-band-height) - 1.2rem);
  align-items: center;
}

body.version-43 #metodo .sticky-heading {
  top: calc(var(--header) + .8rem);
}

body.version-43 #metodo .section-heading h2 {
  font-size: clamp(2.35rem, 4.2vw, 4.2rem);
  line-height: .94;
  max-width: 7.5ch;
  margin-top: .15rem;
}

body.version-43 #metodo .timeline-item {
  grid-template-columns: 52px 1fr;
  gap: 1rem;
  padding: .75rem 0;
}

body.version-43 #metodo .timeline-item h3 {
  font-size: clamp(1.2rem, 1.75vw, 1.7rem);
}

body.version-43 #metodo .timeline-item p {
  margin-top: .22rem;
  font-size: .92rem;
  line-height: 1.28;
}

/* 06 — Contactos */
body.version-43 #contactos .container.contact-grid {
  grid-template-columns: minmax(250px, .38fr) minmax(0, .62fr);
  gap: clamp(1.2rem, 2.2vw, 1.8rem);
  min-height: calc(100svh - var(--header) - var(--pattern-band-height) - 1.1rem);
  min-height: calc(100dvh - var(--header) - var(--pattern-band-height) - 1.1rem);
  align-items: start;
}

body.version-43 #contactos .contact-intro h2 {
  font-size: clamp(2.45rem, 4.4vw, 4.35rem);
  line-height: .95;
  max-width: 8ch;
}

body.version-43 #contactos .contact-intro p:not(.eyebrow) {
  margin-top: .9rem;
  font-size: clamp(.96rem, 1.05vw, 1.08rem);
  line-height: 1.4;
}

body.version-43 #contactos .contact-panel-v3 {
  gap: .65rem;
}

body.version-43 #contactos .contact-card,
body.version-43 #contactos .contact-form-v3 {
  padding: .9rem 1rem;
}

body.version-43 #contactos .contact-card h3,
body.version-43 #contactos .contact-form-v3 h3 {
  margin-bottom: .75rem;
}

body.version-43 #contactos .contact-item {
  font-size: clamp(.98rem, 1.28vw, 1.2rem);
}

body.version-43 #contactos .addresses-v3 h4 {
  margin-bottom: .35rem;
}

body.version-43 #contactos .addresses-v3 p {
  font-size: .88rem;
  line-height: 1.34;
}

body.version-43 #contactos .contact-form-v3 {
  gap: .58rem;
}

body.version-43 #contactos .contact-form-v3 input,
body.version-43 #contactos .contact-form-v3 textarea {
  padding: .6rem .72rem;
}

body.version-43 #contactos .contact-form-v3 textarea {
  min-height: 82px;
}

body.version-43 #contactos .contact-form-v3 .button {
  min-height: 40px;
}

/* Desktop com pouca altura */
@media (min-width: 1101px) and (max-height: 860px) {
  body.version-43 {
    --header: 102px;
    --pattern-band-height: 86px;
  }

  body.version-43 #inicio .hero-copy,
  body.version-43 #inicio .hero-copy-wide {
    margin-top: clamp(2.8rem, 7svh, 4.2rem);
  }

  body.version-43 #servicos .section-heading-wide {
    margin-bottom: .7rem;
  }

  body.version-43 #servicos .service-card {
    min-height: 190px;
    padding: .8rem .9rem .9rem;
  }

  body.version-43 #servicos .service-card h3 {
    font-size: clamp(1.05rem, 1.3vw, 1.45rem);
  }

  body.version-43 #servicos .service-card p,
  body.version-43 #metodo .timeline-item p,
  body.version-43 #contactos .addresses-v3 p {
    font-size: .86rem;
  }

  body.version-43 #metodo .section-heading h2 {
    font-size: clamp(2.05rem, 3.55vw, 3.5rem);
  }

  body.version-43 #metodo .timeline-item {
    padding: .62rem 0;
  }

  body.version-43 #contactos .contact-intro h2 {
    font-size: clamp(2.15rem, 3.8vw, 3.7rem);
  }

  body.version-43 #contactos .contact-form-v3 textarea {
    min-height: 68px;
  }
}

/* Tablet */
@media (max-width: 1100px) {
  body.version-43 {
    --header: clamp(84px, 9svh, 100px);
    --pattern-band-height: clamp(78px, 10svh, 102px);
  }

  body.version-43 .manual-section {
    padding-top: calc(var(--header) + .75rem);
    padding-bottom: calc(var(--pattern-band-height) + .6rem);
  }

  body.version-43 #sobre .container.split-grid,
  body.version-43 #metodo .container.split-grid,
  body.version-43 #contactos .container.contact-grid {
    gap: 1.4rem;
  }

  body.version-43 #servicos .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.version-43 #servicos .service-card {
    min-height: 200px;
  }
}

/* Mobile mantém o comportamento empilhado */
@media (max-width: 820px) {
  body.version-43 {
    --header: 76px;
    --pattern-band-height: 92px;
  }

  body.version-43 .manual-section {
    min-height: auto;
    padding-top: calc(var(--header) + 1rem);
    padding-bottom: calc(var(--pattern-band-height) + 1rem);
  }

  body.version-43 .manual-section > .container,
  body.version-43 .statement-grid,
  body.version-43 #sobre .container.split-grid,
  body.version-43 #metodo .container.split-grid,
  body.version-43 #contactos .container.contact-grid {
    min-height: auto;
    display: block;
  }

  body.version-43 #inicio .hero-copy,
  body.version-43 #inicio .hero-copy-wide {
    margin-top: 2.6rem;
  }

  body.version-43 .statement-content h2,
  body.version-43 #sobre .section-heading h2,
  body.version-43 #servicos .section-heading h2,
  body.version-43 #metodo .section-heading h2,
  body.version-43 #contactos .contact-intro h2 {
    max-width: none;
  }

  body.version-43 #servicos .cards-grid {
    grid-template-columns: 1fr;
  }
}


/* =========================================================
   VERSION 44
   Afinação ultra-fina das secções intermédias
   (mantendo Início e Contactos como estão)
========================================================= */

/* 02 — Statement / Conceito */
body.version-44 .statement-grid {
  min-height: calc(100svh - var(--header) - var(--pattern-band-height) - 1.6rem);
  min-height: calc(100dvh - var(--header) - var(--pattern-band-height) - 1.6rem);
  gap: clamp(1.2rem, 2.6vw, 2.25rem);
  padding-top: clamp(.55rem, 1.2vw, 1rem);
  padding-bottom: clamp(.2rem, .8vw, .5rem);
  align-items: center;
}

body.version-44 .statement-content h2 {
  font-size: clamp(2.3rem, 4.35vw, 4.45rem);
  line-height: .95;
  max-width: 12ch;
}

body.version-44 .statement-content p {
  margin-top: .78rem;
  font-size: clamp(.96rem, 1vw, 1.08rem);
  line-height: 1.38;
  max-width: 49ch;
}

/* 03 — Sobre */
body.version-44 #sobre .container.split-grid {
  min-height: calc(100svh - var(--header) - var(--pattern-band-height) - 1.55rem);
  min-height: calc(100dvh - var(--header) - var(--pattern-band-height) - 1.55rem);
  grid-template-columns: minmax(240px, .5fr) minmax(0, .5fr);
  gap: clamp(1.15rem, 2.35vw, 2rem);
  align-items: center;
}

body.version-44 #sobre .section-heading {
  align-self: center;
}

body.version-44 #sobre .section-heading h2 {
  font-size: clamp(2.45rem, 4.2vw, 4.45rem);
  line-height: .95;
  max-width: 11.5ch;
}

body.version-44 #sobre .rich-text {
  font-size: clamp(.94rem, .98vw, 1.05rem);
  line-height: 1.38;
  max-width: 54ch;
}

body.version-44 #sobre .rich-text p + p {
  margin-top: .8rem;
}

/* 04 — Serviços */
body.version-44 #servicos .container {
  gap: .65rem;
}

body.version-44 #servicos .section-heading-wide {
  max-width: 820px;
  margin-bottom: .75rem;
}

body.version-44 #servicos .section-heading h2 {
  font-size: clamp(2.25rem, 4.15vw, 4.35rem);
  line-height: .93;
  max-width: 11.2ch;
}

body.version-44 #servicos .cards-grid {
  gap: 0;
}

body.version-44 #servicos .service-card {
  min-height: 182px;
  padding: .78rem .92rem .88rem;
}

body.version-44 #servicos .service-card h3 {
  font-size: clamp(1rem, 1.23vw, 1.36rem);
  line-height: 1.04;
  max-width: 17ch;
}

body.version-44 #servicos .service-card p {
  margin-top: .62rem;
  font-size: .84rem;
  line-height: 1.3;
  max-width: 36ch;
}

/* 05 — Método */
body.version-44 #metodo .container.split-grid {
  min-height: calc(100svh - var(--header) - var(--pattern-band-height) - 1.5rem);
  min-height: calc(100dvh - var(--header) - var(--pattern-band-height) - 1.5rem);
  grid-template-columns: minmax(225px, .33fr) minmax(0, .67fr);
  gap: clamp(1.1rem, 2vw, 1.8rem);
  align-items: center;
}

body.version-44 #metodo .section-heading h2 {
  font-size: clamp(2.15rem, 3.85vw, 3.95rem);
  line-height: .93;
  max-width: 7.1ch;
}

body.version-44 #metodo .timeline-item {
  grid-template-columns: 48px 1fr;
  gap: .88rem;
  padding: .58rem 0;
}

body.version-44 #metodo .timeline-item h3 {
  font-size: clamp(1.15rem, 1.55vw, 1.52rem);
  line-height: 1.02;
}

body.version-44 #metodo .timeline-item p {
  margin-top: .15rem;
  font-size: .87rem;
  line-height: 1.24;
  max-width: 48ch;
}

/* Desktop com menos altura: compactação adicional apenas nas secções intermédias */
@media (min-width: 1101px) and (max-height: 860px) {
  body.version-44 .statement-content h2 {
    font-size: clamp(2.1rem, 3.75vw, 3.85rem);
  }

  body.version-44 .statement-content p,
  body.version-44 #sobre .rich-text,
  body.version-44 #servicos .service-card p,
  body.version-44 #metodo .timeline-item p {
    font-size: .82rem;
  }

  body.version-44 #sobre .section-heading h2 {
    font-size: clamp(2.2rem, 3.75vw, 3.85rem);
  }

  body.version-44 #servicos .section-heading h2 {
    font-size: clamp(2.1rem, 3.7vw, 3.8rem);
  }

  body.version-44 #servicos .service-card {
    min-height: 166px;
    padding: .72rem .85rem .8rem;
  }

  body.version-44 #servicos .service-card h3 {
    font-size: clamp(.96rem, 1.12vw, 1.22rem);
  }

  body.version-44 #metodo .section-heading h2 {
    font-size: clamp(1.95rem, 3.15vw, 3.2rem);
  }

  body.version-44 #metodo .timeline-item {
    padding: .48rem 0;
  }
}

/* Tablet */
@media (max-width: 1100px) {
  body.version-44 .statement-grid {
    gap: 1rem;
  }

  body.version-44 #sobre .container.split-grid,
  body.version-44 #metodo .container.split-grid {
    gap: 1rem;
  }

  body.version-44 #servicos .section-heading-wide {
    max-width: 720px;
  }

  body.version-44 #servicos .service-card {
    min-height: 172px;
  }
}

/* Mobile: regressa a espaçamento confortável */
@media (max-width: 820px) {
  body.version-44 .statement-grid,
  body.version-44 #sobre .container.split-grid,
  body.version-44 #metodo .container.split-grid {
    min-height: auto;
  }

  body.version-44 .statement-content h2,
  body.version-44 #sobre .section-heading h2,
  body.version-44 #servicos .section-heading h2,
  body.version-44 #metodo .section-heading h2 {
    max-width: none;
  }

  body.version-44 #servicos .service-card {
    min-height: auto;
    padding: .95rem;
  }
}


/* =========================================================
   VERSION 45
   Secção Sobre com título em 3 linhas
========================================================= */
body.version-45 #sobre .section-heading h2 {
  max-width: 13ch;
}


/* =========================================================
   VERSION 46
   Secção Serviços com título em 2 linhas
========================================================= */
body.version-46 #servicos .section-heading-wide {
  max-width: 980px;
}

body.version-46 #servicos .section-heading h2 {
  max-width: 16.5ch;
}


/* =========================================================
   VERSION 47
   Puxar o bloco da secção Contactos 1 cm para cima
========================================================= */
body.version-47 #contactos .container.contact-grid {
  margin-top: -1cm;
}

@media (max-width: 820px) {
  body.version-47 #contactos .container.contact-grid {
    margin-top: 0;
  }
}


/* =========================================================
   VERSION 48
   Secção Sobre com 3 linhas: cada frase numa linha
========================================================= */
body.version-48 #sobre .section-heading h2 {
  max-width: 19ch;
}

@media (max-width: 1100px) {
  body.version-48 #sobre .section-heading h2 {
    max-width: 17ch;
  }
}

@media (max-width: 820px) {
  body.version-48 #sobre .section-heading h2 {
    max-width: 100%;
  }
}

/* VERSION 49 — keep the Method title in flow when the layout stacks. */
@media (max-width: 820px) {
  body.version-49 #metodo .sticky-heading {
    position: static;
  }
}

/* Never let the decorative footer monogram intercept the back-to-top link. */
body.version-49 .site-footer::after {
  pointer-events: none;
}

@media (max-width: 820px) {
  body.version-49 .site-header:not(.menu-open) .main-nav {
    visibility: hidden;
  }
}

@media (max-width: 820px) and (max-height: 550px) {
  body.version-49 .site-header .main-nav {
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    justify-content: flex-start;
    padding: calc(var(--header) + .25rem) 1.5rem 1rem;
    gap: .35rem;
    font-size: clamp(1.25rem, 6dvh, 2rem);
    line-height: 1.3;
  }

  body.version-49 .main-nav .language-switch {
    margin-top: .5rem;
  }
}

@media (max-width: 820px) {
  /* Put the editorial numbers above the content, not over the headings. */
  body.version-49 .manual-section .manual-index {
    position: static;
    margin-inline-start: max(14px, calc((100vw - var(--max)) / 2));
    margin-bottom: .6rem;
  }
}

@media (min-width: 821px) {
  /* Keep the long Portuguese heading inside its contact column. */
  body.version-49 #contactos .contact-intro {
    min-width: 0;
  }

  body.version-49 #contactos .contact-intro h2 {
    max-width: min(100%, 12ch);
    overflow-wrap: anywhere;
    hyphens: auto;
  }
}

/* VERSION 50 — editorial body copy and a consistent mobile reading column. */
body.version-50 :is(.hero-text, .statement-content > p, .rich-text > p,
                    .service-card > p, .timeline-item p, .contact-intro > p:not(.eyebrow)) {
  text-align: justify;
  text-align-last: start;
  hyphens: auto;
  overflow-wrap: break-word;
}

@media (max-width: 1100px) {
  body.version-50 .manual-section > .container {
    width: min(calc(100% - 2 * clamp(18px, 4vw, 32px)), var(--max));
    margin-inline: auto;
  }
}

@media (max-width: 820px) {
  body.version-50 {
    --reading-gutter: clamp(18px, 4.5vw, 30px);
  }

  body.version-50 .manual-section > .container {
    width: calc(100% - 2 * var(--reading-gutter));
    padding-inline: 0;
  }

  body.version-50 .manual-section .manual-index {
    margin-inline-start: var(--reading-gutter);
  }

  body.version-50 .manual-section:not(#inicio) {
    padding-top: clamp(2rem, 6svh, 3.5rem);
    padding-bottom: calc(var(--pattern-band-height) + 1.15rem);
  }

  body.version-50 #inicio {
    display: block;
    min-height: min(100svh, 44rem);
    padding-top: calc(var(--header) + 1.25rem);
    padding-bottom: calc(var(--pattern-band-height) + 1.35rem);
  }

  body.version-50 #inicio .container {
    display: block;
    min-height: 0;
    padding-block: 0 1.35rem;
  }

  body.version-50 #inicio .hero-copy {
    width: 100%;
    max-width: 660px;
    margin: 0 auto;
    padding: 0;
  }

  body.version-50 #inicio .hero-actions {
    width: 100%;
    margin-top: 1.25rem;
  }

  body.version-50 #inicio .hero-actions > .button {
    max-width: 100%;
    text-align: center;
    line-height: 1.25;
  }

  body.version-50 #inicio .scroll-indicator {
    display: none;
  }

  body.version-50 .statement .container,
  body.version-50 #sobre .container,
  body.version-50 #servicos .container,
  body.version-50 #metodo .container {
    padding-bottom: 0;
  }

  body.version-50 #sobre .rich-text,
  body.version-50 #contactos .contact-panel {
    margin-top: 1.25rem;
  }

  body.version-50 #servicos .service-card p,
  body.version-50 #sobre .rich-text,
  body.version-50 #metodo .timeline-item p,
  body.version-50 #contactos .contact-intro p:not(.eyebrow) {
    max-width: none;
  }

  body.version-50 #servicos .service-card h3 {
    max-width: calc(100% - 1.65rem);
  }

  body.version-50 .statement::before,
  body.version-50 #sobre::before,
  body.version-50 #metodo::before {
    opacity: .045;
  }

  body.version-50 .site-footer {
    padding-bottom: max(4.5rem, calc(3.75rem + env(safe-area-inset-bottom)));
  }
}

@media (max-width: 520px) {
  body.version-50 :is(.statement-content h2, #sobre .section-heading h2, #servicos .section-heading h2,
                      #metodo .section-heading h2, #contactos .contact-intro h2) {
    font-size: clamp(1.95rem, 8.5vw, 2.45rem);
    line-height: 1.02;
    overflow-wrap: break-word;
  }

  body.version-50 #metodo .timeline-item {
    grid-template-columns: 2rem minmax(0, 1fr);
    column-gap: .55rem;
  }
}
