/* ============================================================
   overA Capital: base layer  (editorial-human system)
   reset · typography · layout · header · footer · buttons
   The serif/sans split IS the hierarchy. Headlines are Newsreader,
   two-tone (ink + muted), with one rationed terracotta accent. No
   eyebrow kickers, no tracked uppercase, no mono. Sizes shout, not weights.
   ============================================================ */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  overflow-x: clip;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.62;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
ul, ol { list-style: none; }
::selection { background: var(--accent); color: var(--paper); }

/* ---------------- Typography ----------------
   Newsreader carries every headline. Relaxed editorial leading, restrained
   negative tracking, weight held at 400/500 (size does the shouting). */
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.012em;
  color: var(--ink);
  text-wrap: balance;
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
}
h1 { font-size: var(--fs-h1); line-height: 1.06; }
h2 { font-size: var(--fs-h2); line-height: 1.08; }
h3 { font-size: var(--fs-h3); line-height: 1.12; }
h4 { font-size: var(--fs-h4); line-height: 1.18; letter-spacing: -0.008em; }

p { text-wrap: pretty; }
strong { font-weight: 600; }

/* Emphasis inside a serif unit = Newsreader of the SAME family, set ROMAN.
   No italics anywhere on the site (they read as AI); the serif shift alone
   carries the emphasis — never a second font, never bold-as-shouting. */
em, .serif-italic {
  font-family: var(--display);
  font-style: normal;
}

/* Two-tone headline helper: the muted second clause that does the work an
   eyebrow label used to do. Same family + weight, just the muted ink. */
.tone-muted { color: var(--ink-muted); }
.section--dark .tone-muted,
.on-dark .tone-muted { color: var(--on-dark-muted); }

/* The single rationed accent: ONE terracotta phrase per page (plus CTAs).
   ROMAN terracotta — the color alone carries it (no italics site-wide). */
.accent { color: var(--accent); }
.section--dark .accent,
.on-dark .accent { color: var(--accent-soft); }

.lead {
  font-size: var(--fs-lead);
  line-height: 1.5;
  color: var(--ink-muted);
  font-weight: 400;
  max-width: 60ch;
}

/* ---------------- Eyebrow: NEUTRALIZED ----------------
   The old all-caps tracked terracotta kicker is gone. The serif headline is
   the only section label. Any remaining .eyebrow in markup renders as a quiet
   sentence-case muted line (pages should delete most). No color, no tracking,
   no uppercase, no mono. */
.eyebrow,
.eyebrow--plain {
  font-family: var(--sans);
  font-size: var(--fs-small);
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-muted);
  display: block;
  margin-bottom: 0.9rem;
}
.section--dark .eyebrow,
.section--dark .eyebrow--plain { color: var(--on-dark-muted); }

/* ---------------- Layout primitives ---------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: var(--container-narrow); }
.container--text { max-width: var(--container-text); }

.section { padding-block: var(--section-y); position: relative; }
.section--lg { padding-block: var(--section-y); }        /* one scale: no third size */
.section--tight { padding-block: var(--section-y-sm); }

/* dark espresso band, the one earned editorial moment per page */
.section--dark {
  background: var(--espresso);
  color: var(--on-dark);
}
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: var(--on-dark); }
.section--dark .lead { color: var(--on-dark-muted); }
.section--oat { background: var(--oat); }
.section--paper2 { background: var(--paper-2); }

/* section head: headline-first, generous air below */
.section-head { max-width: 24ch; margin-bottom: clamp(2.8rem, 5vw, 4.5rem); }
.section-head .lead { margin-top: 1.3rem; max-width: 56ch; }
.section-head--wide { max-width: 36ch; }
.section-head--center { margin-inline: auto; text-align: center; max-width: 30ch; }
.section-head--center .lead { margin-inline: auto; }

.hairline { height: 1px; background: var(--line); border: 0; }
.section--dark .hairline { background: var(--line-on-dark); }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: -0.006em;
  padding: 0.85em 1.6em;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  transition: transform var(--dur) var(--ease), background-color var(--dur) var(--ease),
              color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.btn:hover, .btn:focus-visible { will-change: transform; }
.btn:active { transform: translateY(1px); }

.btn .arr { transition: transform var(--dur) var(--ease); }
.btn:hover .arr { transform: translate(3px, -3px); }

.btn--primary { background: var(--accent); color: var(--paper); }
.btn--primary:hover { background: var(--accent-deep); }

.btn--dark { background: var(--espresso); color: var(--on-dark); }
.btn--dark:hover { background: #2f2616; }

.btn--ghost { border-color: var(--line-strong); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); background: var(--ink); color: var(--paper); }

.section--dark .btn--ghost,
.on-dark .btn--ghost { border-color: var(--line-on-dark-strong); color: var(--on-dark); }
.section--dark .btn--ghost:hover,
.on-dark .btn--ghost:hover { background: var(--on-dark); color: var(--espresso); border-color: var(--on-dark); }

/* quiet text link with arrow + underline-on-hover */
.tlink {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--accent);
  position: relative;
}
.tlink::after {
  content: "";
  position: absolute; left: 0; bottom: -3px;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.tlink:hover::after { transform: scaleX(1); }
.tlink .arr { transition: transform var(--dur) var(--ease); }
.tlink:hover .arr { transform: translate(3px, -3px); }

/* ---------------- Header / Nav ---------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.site-header--solid {
  background: rgba(251,247,238,0.94);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom-color: var(--line);
}

/* ---- Legibility scrim behind a header that floats over a dark hero ----
   Client review 2026-08-03: the mark + nav were dissolving into the hero
   video. Only the dark-hero pages get it (`.hero` / `.page-hero--dark`);
   the cream-hero pages recolor the nav to ink in their own page CSS and
   must stay scrim-free. Short and warm — it reads as depth under the nav,
   not as a bar. */
body:has(.hero) .site-header:not(.site-header--solid)::before,
body:has(.page-hero--dark) .site-header:not(.site-header--solid)::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: calc(var(--header-h) + 34px);
  background: linear-gradient(180deg,
    rgba(20,14,5,0.56) 0%,
    rgba(20,14,5,0.34) 52%,
    rgba(20,14,5,0) 100%);
  pointer-events: none;
  z-index: -1;
}

.brand { display: inline-flex; align-items: center; }
.brand img { height: 56px; width: auto; }   /* client 2026-07-08: way bigger; 56px leaves 11px of air in the 78px header */
@media (max-width: 640px) { .brand img { height: 44px; } }

.nav { display: flex; align-items: center; gap: clamp(1rem, 2vw, 2rem); }
.nav-links { display: flex; align-items: center; gap: clamp(0.9rem, 1.6vw, 1.9rem); }
.nav-links a {
  font-size: 0.92rem;
  font-weight: 450;
  letter-spacing: -0.003em;
  color: var(--ink);
  opacity: 0.82;
  transition: opacity var(--dur) var(--ease), color var(--dur) var(--ease);
  position: relative;
  padding-block: 0.4em;
}
.nav-links a:hover { opacity: 1; }
/* ============ language switcher — flag dropdown ============
   <details> so it works with no JS (site.js only adds close-on-outside-click).
   Summary shows the current language (flag + code); the menu lists all langs.
   Flags are inline-SVG data-URIs (Windows has no flag emoji glyphs). The block
   is regenerated per (lang,page) by the switcher generator — keep classnames. */
.lang-switch { position: relative; margin-left: clamp(0.3rem, 0.8vw, 0.7rem); }
.lang-switch > summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.34rem 0.55rem; border-radius: 999px; border: 1px solid transparent;
  font-size: 0.8rem; letter-spacing: 0.03em; color: inherit; opacity: 0.85;
  transition: opacity var(--dur) var(--ease), background-color var(--dur) var(--ease), border-color var(--dur) var(--ease);
  -webkit-user-select: none; user-select: none;
}
.lang-switch > summary::-webkit-details-marker { display: none; }
.lang-switch > summary::marker { content: ""; }
.lang-switch > summary:hover { opacity: 1; }
.lang-switch[open] > summary { opacity: 1; }
.ls-flag {
  width: 1.2rem; height: 0.85rem; border-radius: 2.5px; flex: none;
  background-size: cover; background-position: center;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.10), inset 0 0 0 0.5px rgba(255,255,255,0.28);
}
.ls-code { font-weight: 600; font-variant-numeric: tabular-nums; }
.ls-caret { transition: transform var(--dur) var(--ease); opacity: 0.55; margin-left: 0.05rem; }
.lang-switch[open] .ls-caret { transform: rotate(180deg); }

.lang-switch__menu {
  position: absolute; top: calc(100% + 0.55rem); inset-inline-end: 0; z-index: 200;
  min-width: 12.5rem; margin: 0; padding: 0.35rem; list-style: none;
  background: var(--paper); border: 1px solid var(--line); border-radius: 13px;
  box-shadow: 0 20px 48px -14px rgba(43,30,22,0.34), 0 3px 10px rgba(43,30,22,0.10);
  display: grid; gap: 1px;
  animation: ls-in 0.17s var(--ease) both;
}
@keyframes ls-in { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: none; } }
.lang-switch__menu li { list-style: none; }
.lang-switch__menu a {
  display: flex; align-items: center; gap: 0.65rem;
  padding: 0.5rem 0.6rem; border-radius: 9px;
  font-size: 0.88rem; color: var(--ink); opacity: 1; letter-spacing: 0;
  transition: background-color var(--dur) var(--ease);
}
.lang-switch__menu a:hover { background: rgba(43,30,22,0.06); }
.lang-switch__menu .ls-code { min-width: 1.7rem; opacity: 0.5; font-size: 0.72rem; letter-spacing: 0.06em; }
.lang-switch__menu .ls-name { font-weight: 450; }
.lang-switch__menu a.is-current { background: rgba(192,96,58,0.10); }
.lang-switch__menu a.is-current .ls-name { font-weight: 600; }
/* the menu panel is always paper — keep its links dark ink regardless of the
   header's dark/solid state (out-specifies the .nav-links a colour rules) */
.site-header:not(.site-header--solid) .nav-links .lang-switch__menu a,
.site-header--solid .nav-links .lang-switch__menu a { color: var(--ink); opacity: 1; }

/* summary tint per header state (menu panel is always paper, so always legible) */
.site-header--solid .lang-switch > summary { color: var(--ink); }
.site-header--solid .lang-switch > summary:hover,
.site-header--solid .lang-switch[open] > summary { background: rgba(43,30,22,0.05); border-color: var(--line); }
.site-header:not(.site-header--solid) .lang-switch > summary { color: var(--on-dark); }
.site-header:not(.site-header--solid) .lang-switch > summary:hover,
.site-header:not(.site-header--solid) .lang-switch[open] > summary { background: rgba(251,247,238,0.10); border-color: rgba(251,247,238,0.20); }

/* mobile drawer variant — a wrap of flag chips */
.ls-drawer { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.35rem; }
.ls-drawer a {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.34rem 0.6rem; border-radius: 999px;
  border: 1px solid var(--line); font-size: 0.82rem; letter-spacing: 0.03em;
}
.ls-drawer a.is-current { border-color: var(--accent); color: var(--accent); font-weight: 600; }

/* flag art (inline SVG data-URIs) */
.ls-flag--br { background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 20'><rect width='28' height='20' fill='%23009C3B'/><path d='M14 2.6 25.4 10 14 17.4 2.6 10Z' fill='%23FFDF00'/><circle cx='14' cy='10' r='4.1' fill='%23002776'/></svg>"); }
.ls-flag--gb { background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 40'><rect width='60' height='40' fill='%23012169'/><path d='M0,0 60,40M60,0 0,40' stroke='%23fff' stroke-width='8'/><path d='M0,0 60,40M60,0 0,40' stroke='%23C8102E' stroke-width='4'/><path d='M30,0V40M0,20H60' stroke='%23fff' stroke-width='13'/><path d='M30,0V40M0,20H60' stroke='%23C8102E' stroke-width='7'/></svg>"); }
.ls-flag--es { background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 3 2'><rect width='3' height='2' fill='%23AA151B'/><rect y='.5' width='3' height='1' fill='%23F1BF00'/></svg>"); }
.ls-flag--jp { background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 20'><rect width='30' height='20' fill='%23fff'/><circle cx='15' cy='10' r='6' fill='%23BC002D'/></svg>"); }
.ls-flag--cn { background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 20'><rect width='30' height='20' fill='%23DE2910'/><defs><path id='s' d='M0,-1 .2245,-.309 .951,-.309 .363,.118 .588,.809 0,.382 -.588,.809 -.363,.118 -.951,-.309 -.2245,-.309Z'/></defs><g fill='%23FFDE00'><use href='%23s' transform='translate(5,5) scale(3)'/><use href='%23s' transform='translate(10,2) scale(1)'/><use href='%23s' transform='translate(12,4.4) scale(1)'/><use href='%23s' transform='translate(12,7.2) scale(1)'/><use href='%23s' transform='translate(10,9.4) scale(1)'/></g></svg>"); }
.ls-flag--de { background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 3 3'><rect width='3' height='3' fill='%23000'/><rect y='1' width='3' height='1' fill='%23D00'/><rect y='2' width='3' height='1' fill='%23FFCE00'/></svg>"); }
.ls-flag--fr { background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 3 2'><rect width='3' height='2' fill='%23fff'/><rect width='1' height='2' fill='%23002395'/><rect x='2' width='1' height='2' fill='%23ED2939'/></svg>"); }
.ls-flag--it { background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 3 2'><rect width='3' height='2' fill='%23fff'/><rect width='1' height='2' fill='%23009246'/><rect x='2' width='1' height='2' fill='%23CE2B37'/></svg>"); }
.ls-flag--kr { background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 36 24'><rect width='36' height='24' fill='%23fff'/><g transform='translate(18,12) rotate(-33.69)'><path d='M0,-5 A5,5 0 0 1 0,5 A2.5,2.5 0 0 0 0,0 A2.5,2.5 0 0 1 0,-5Z' fill='%23CD2E3A'/><path d='M0,5 A5,5 0 0 1 0,-5 A2.5,2.5 0 0 0 0,0 A2.5,2.5 0 0 1 0,5Z' fill='%230047A0'/></g><g fill='%23000' transform='translate(18,12)'><g transform='rotate(-33.69) translate(0,-9)'><rect x='-3.4' y='-.5' width='2.2' height='1'/><rect x='-.55' y='-.5' width='2.2' height='1'/><rect x='1.2' y='-.5' width='2.2' height='1'/></g><g transform='rotate(146.31) translate(0,-9)'><rect x='-3.4' y='-.5' width='2.2' height='1'/><rect x='-.55' y='-.5' width='2.2' height='1'/><rect x='1.2' y='-.5' width='2.2' height='1'/></g></g></svg>"); }
.nav-links a.is-active { opacity: 1; }
.nav-links a.is-active::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1.5px; background: var(--accent);
}

/* header over a dark hero (top of page, not yet scrolled).
   Opacities raised 2026-08-03: 0.78 cream over a moving video read as grey. */
.site-header:not(.site-header--solid) .nav-links a { color: var(--on-dark); opacity: 0.92; }
.site-header:not(.site-header--solid) .nav-links a:hover,
.site-header:not(.site-header--solid) .nav-links a.is-active { opacity: 1; }
.site-header:not(.site-header--solid) .nav-cta.btn--ghost { border-color: rgba(245,239,224,0.62); color: var(--on-dark); }
.site-header:not(.site-header--solid) .nav-cta.btn--ghost:hover { background: var(--on-dark); color: var(--espresso); }
.site-header:not(.site-header--solid) .login-link { color: var(--on-dark); opacity: 0.86; }
.site-header:not(.site-header--solid) .nav-toggle span { background: var(--on-dark); }

/* The mark is a mid-tone terracotta/olive PNG: on cream it is perfect, on the
   dark hero it loses a full stop. Lift it there only (never on the cream-hero
   pages, which keep the mark exactly as the manual specifies). */
body:has(.hero) .site-header:not(.site-header--solid) .brand img,
body:has(.page-hero--dark) .site-header:not(.site-header--solid) .brand img {
  /* ~1.26 lands each ink on its own lighter brand equivalent (marrom ->
     marrom-claro, verde -> verde-claro), so this reads as the manual's
     light-background lockup rather than a filtered logo. */
  filter: brightness(1.26) saturate(1.04) drop-shadow(0 1px 12px rgba(0,0,0,0.5));
}

.nav-aux { display: flex; align-items: center; gap: 1.1rem; }
/* login link is a quiet sentence-case sans link, not a tracked mono label */
.login-link {
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 450;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-muted);
  transition: color var(--dur) var(--ease);
}
.login-link:hover { color: var(--accent); }
.nav-cta { padding: 0.6em 1.2em; font-size: 0.88rem; }

/* mobile toggle */
.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.nav-toggle span {
  width: 22px; height: 1.5px; background: var(--ink);
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
body.menu-open .nav-toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
body.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* mobile drawer */
.nav-drawer {
  position: fixed; inset: 0;
  z-index: 99;
  background: var(--espresso);
  color: var(--on-dark);
  display: flex; flex-direction: column;
  justify-content: center;
  padding: var(--gutter);
  transform: translateY(-100%);
  transition: transform 0.5s var(--ease);
  visibility: hidden;
}
body.menu-open .nav-drawer { transform: translateY(0); visibility: visible; }
.nav-drawer nav { display: flex; flex-direction: column; align-items: flex-start; }
.nav-drawer nav a {
  font-family: var(--display);
  font-size: clamp(1.9rem, 8.5vw, 2.8rem);
  line-height: 1.32;
  color: var(--on-dark);
  opacity: 0.9;
}
.nav-drawer a:hover { color: var(--accent-soft); }
.nav-drawer .drawer-aux {
  margin-top: 2.5rem; display: flex; gap: 1.5rem; align-items: center;
  font-family: var(--sans); font-size: 0.9rem; letter-spacing: 0; text-transform: none;
}
.nav-drawer .drawer-aux a { font-family: var(--sans); font-size: 0.9rem; opacity: 0.7; }

@media (max-width: 940px) {
  .nav-links, .nav-aux .login-link { display: none; }
  .nav-toggle { display: flex; }
  .nav-aux .nav-cta { display: none; }
}

/* ---------------- Footer ---------------- */
.site-footer {
  background: var(--espresso);
  color: var(--on-dark);
  padding-block: clamp(3.5rem, 5vw, 5.5rem) 2.5rem;
  position: relative;
  overflow: hidden;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-bottom: 3.5rem;
  border-bottom: 1px solid var(--line-on-dark);
}
/* same size as the header mark; the footer is always espresso, so the mark
   gets the same one-stop lift the header mark gets over a dark hero */
.footer-brand img { height: 56px; margin-bottom: 1.4rem; filter: brightness(1.26) saturate(1.04); }
@media (max-width: 640px) { .footer-brand img { height: 44px; } }
.footer-brand p { color: var(--on-dark-muted); max-width: 34ch; font-size: var(--fs-small); }
/* column headings: quiet sentence-case sans, not a tracked uppercase mono label */
.footer-col h5 {
  font-family: var(--sans); font-size: var(--fs-small); font-weight: 600;
  letter-spacing: 0; text-transform: none;
  color: var(--on-dark-faint); margin-bottom: 1.1rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.7rem; }
.footer-col a {
  color: var(--on-dark-muted); font-size: var(--fs-small);
  transition: color var(--dur) var(--ease);
}
.footer-col a:hover { color: var(--on-dark); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1rem;
  padding-top: 2rem;
  font-size: var(--fs-xs); color: var(--on-dark-faint);
}
.footer-bottom .legal { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-bottom a:hover { color: var(--on-dark-muted); }
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem 2rem; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------------- Page entrance ----------------
   One quiet settle for the whole page: a unified fade while the hero
   content rises as a single block. No per-element stagger — the page
   arrives as one sheet. CSS-only, runs once per load; .reveal classes
   in markup are inert. Background video/wash stay fixed (containers
   only), so no vestibular-scale motion. */
@media (prefers-reduced-motion: no-preference) {
  body { animation: pageIn 0.5s var(--ease-out) both; }
  .hero > .container,
  .page-hero > .container { animation: heroSettle 0.9s var(--ease-out) both; }
}
@keyframes pageIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes heroSettle { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------------- Utilities ---------------- */
.u-center { text-align: center; }
.u-muted { color: var(--ink-muted); }
.u-measure { max-width: 60ch; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

/* ---------------- Inner page hero ----------------
   Cream/editorial by default per the human direction: serif two-tone
   headline, lots of air, no label. Add .page-hero--dark for an espresso
   variant when a page wants its one dark moment up top. */
.page-hero {
  background: var(--paper);
  color: var(--ink);
  padding-top: calc(var(--header-h) + clamp(4rem, 8vw, 8rem));
  padding-bottom: clamp(3.5rem, 7vw, 7rem);
  position: relative;
  overflow: hidden;
}
.page-hero h1 { font-size: var(--fs-page-title); line-height: 1.04; max-width: 18ch; }
.page-hero .lead { max-width: 54ch; margin-top: 1.6rem; }

.page-hero--dark {
  background: var(--espresso);
  color: var(--on-dark);
}
.page-hero--dark h1 { color: var(--on-dark); }
.page-hero--dark .lead { color: var(--on-dark-muted); }

/* Big screens: the padding clamps above cap by ~1550px, so on a
   1920x1080 screen the type-only hero ends mid-viewport and the next
   section's headline crests the fold (audited on transações +
   investidores). Tie the band to the viewport and center its content
   so the first screen stays a composed hero, igcp-style. Photo-band
   heroes (e.g. .ab-hero) set their own min-height later in the
   cascade and are unaffected. */
@media (min-width: 1700px) {
  .page-hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: min(78vh, 900px);
  }
}

/* ---- CJK language mirrors (2026-08-17): keep Korean words whole on line
   breaks (default breaks anywhere, e.g. "운|이"), strict kinsoku for ja/zh. */
:lang(ko) { word-break: keep-all; overflow-wrap: anywhere; }
:lang(ja), :lang(zh-CN) { line-break: strict; }


/* =================================================================
   NAV — "Simule seu valuation" chip (client review 2026-08-28: the plain
   "Valuation" item read like any other page; it is the one self-serve
   action, so it gets a calculator glyph and a pill). Cream pages recolour
   .nav-links a to ink in their own CSS; the chip only adds the border and
   the glyph, so it follows that colour. Dark heroes get a cream border.
   ================================================================= */
.nav-links .nav-val {
  display: inline-flex; align-items: center; gap: 0.38rem;
  padding: 0.36em 0.85em 0.36em 0.62em;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  opacity: 1;
  white-space: nowrap;
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.nav-links .nav-val .msym { font-size: 1.1rem; line-height: 1; color: var(--accent); }
.nav-links .nav-val:hover { background: var(--accent-wash); border-color: var(--accent); }
.nav-links .nav-val.is-active { border-color: var(--accent); }
.nav-links .nav-val.is-active::after { display: none; }
body:has(.hero) .site-header:not(.site-header--solid) .nav-links .nav-val,
body:has(.page-hero--dark) .site-header:not(.site-header--solid) .nav-links .nav-val,
body:has(.sb-hero) .site-header:not(.site-header--solid) .nav-links .nav-val {
  border-color: rgba(245,239,224,0.42);
}
body:has(.hero) .site-header:not(.site-header--solid) .nav-links .nav-val .msym,
body:has(.page-hero--dark) .site-header:not(.site-header--solid) .nav-links .nav-val .msym,
body:has(.sb-hero) .site-header:not(.site-header--solid) .nav-links .nav-val .msym { color: var(--accent-soft); }
body:has(.hero) .site-header:not(.site-header--solid) .nav-links .nav-val:hover,
body:has(.page-hero--dark) .site-header:not(.site-header--solid) .nav-links .nav-val:hover,
body:has(.sb-hero) .site-header:not(.site-header--solid) .nav-links .nav-val:hover {
  background: rgba(245,239,224,0.10); border-color: var(--on-dark);
}
/* the drawer: same item in the big serif list, glyph scaled to the type */
.nav-drawer nav .nav-val { display: inline-flex; align-items: center; gap: 0.35em; }
.nav-drawer nav .nav-val .msym { font-size: 0.72em; color: var(--accent-soft); }

/* =================================================================
   FOOTER additions (client review 2026-08-28): the deck download under
   the brand line, the office address, and the tagline that closes the
   footer — the site's first line, set once more in serif.
   ================================================================= */
.footer-deck {
  display: inline-flex; align-items: center; gap: 0.45rem;
  margin-top: 1.1rem;
  font-size: var(--fs-small); color: var(--on-dark-muted);
  transition: color var(--dur) var(--ease);
}
.footer-deck .msym { font-size: 1.15rem; line-height: 1; color: var(--accent-soft); }
.footer-deck small { font-size: var(--fs-xs); color: var(--on-dark-faint); letter-spacing: 0.06em; }
.footer-deck:hover { color: var(--on-dark); }
.footer-addr { font-style: normal; font-size: var(--fs-small); line-height: 1.55; color: var(--on-dark-muted); }
.footer-tagline {
  margin: 0;
  padding: clamp(2rem, 3.4vw, 2.8rem) 0;
  border-bottom: 1px solid var(--line-on-dark);
  font-family: var(--display); font-weight: 400;
  font-size: var(--fs-h3); line-height: 1.1; letter-spacing: -0.015em;
  color: var(--on-dark);
}
.footer-tagline .accent { font-style: normal; color: var(--accent-soft); }
.footer-bottom .legal a { color: var(--on-dark-faint); }
