/* ==========================================================
   Goldman Sachs homepage — layout study
   Fonts: GS Sans / GS Serif / GS Sans Condensed (variable woff2 in /fonts)
   ========================================================== */

@font-face {
  font-family: "GS Sans";
  src: url("/fonts/gs-sans-variable.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "GS Sans";
  src: url("/fonts/gs-sans-variable-italic.woff2") format("woff2");
  font-weight: 100 900; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "GS Sans Condensed";
  src: url("/fonts/gs-sans-condensed-variable.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "GS Serif";
  src: url("/fonts/gs-serif-variable.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}

:root {
  --blue: #7297c5;
  --ink: rgba(0, 0, 0, .95);
  --ink-80: rgba(0, 0, 0, .8);
  --ink-70: rgba(0, 0, 0, .7);
  --ink-60: rgba(0, 0, 0, .6);
  --grey-bg: #f4f5f7;
  --line: rgba(0, 0, 0, .12);

  --sans: "GS Sans", Helvetica, Arial, sans-serif;
  --serif: "GS Serif", Times, "Times New Roman", serif;
  --cond: "GS Sans Condensed", "Arial Narrow", Helvetica, sans-serif;

  --container: 1360px;
  --gutter: 40px;
  --header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p { margin: 0; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 16px;
  line-height: 20px;
  padding: 9px 12px;
  border: 1px solid var(--ink);
  transition: background .2s, color .2s;
  white-space: nowrap;
}
.btn-sm { font-size: 14px; padding: 7px 10px; }
.btn-outline { color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-white { background: #fff; border-color: #fff; color: var(--ink); padding: 12px 14px; }
.btn-white:hover { background: rgba(255,255,255,.85); }
.btn-solid { background: #000; color: #fff; border-color: #000; }
.btn-solid:hover { background: #333; }
.btn .arr { font-weight: 400; }

.text-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 15px; font-weight: 500;
  text-decoration: underline; text-underline-offset: 3px;
}
.text-link:hover { text-decoration-thickness: 2px; }
.text-link.arrow::after { content: "→"; text-decoration: none; display: inline-block; }
.ext::after {
  content: "";
  display: inline-block;
  width: 12px; height: 12px;
  margin-left: 6px;
  vertical-align: -1px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M19 19H5V5h7V3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14c1.1 0 2-.9 2-2v-7h-2v7zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3h-7z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M19 19H5V5h7V3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14c1.1 0 2-.9 2-2v-7h-2v7zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3h-7z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---------- Typography helpers ---------- */
.eyebrow {
  font-size: 16px;
  line-height: 18px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ink-70);
  margin-bottom: 10px;
}
.eyebrow--sm { font-size: 14px; letter-spacing: .8px; }
.section-title {
  font-family: var(--cond);
  font-weight: 400;
  font-size: 64px;
  line-height: 1;
  letter-spacing: -.3px;
  color: var(--ink);
}
.card-eyebrow {
  font-size: 13px;
  line-height: 18px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ink-60);
  margin: 18px 0 8px;
}
.card-title-cond {
  font-family: var(--cond);
  font-weight: 400;
  font-size: 38px;
  line-height: 1.08;
  color: var(--ink);
}
.card-title-cond.sm { font-size: 30px; line-height: 1.1; }

/* ---------- Logo (vector mark from the original, coloured via currentColor) ---------- */
.logo { display: inline-flex; flex: none; color: rgba(0, 0, 0, .95); line-height: 0; }
.logo-mark { display: block; width: 63px; height: 26px; }
.logo--white { color: rgba(255, 255, 255, .95); }
.logo--white .logo-mark { width: 86px; height: 36px; }
@media (max-width: 767px) { .logo-mark { width: 53px; height: 22px; } .logo--white .logo-mark { width: 86px; height: 36px; } }

/* ==========================================================
   HEADER
   ========================================================== */
.site-header {
  position: relative;
  z-index: 50;
  background: var(--blue);
  color: var(--ink-80);
}
.header-inner {
  display: flex;
  align-items: center;
  height: var(--header-h);
}
.hamburger { display: none; }
/* Measured on the original: logo 40..103, first item box at 155, items padded 0 12px (0 8px below 1280) */
.primary-nav { margin-left: 52px; align-self: stretch; }
.primary-nav ul { display: flex; height: 100%; list-style: none; margin: 0; padding: 0; }
.nav-item {
  position: relative;
  height: 100%;
  font-size: 16px; line-height: 20px;
  color: #000;
  padding: 0 16px 0 12px; /* the original's item box is 4px wider than its label on the right */
}
.nav-item::after {
  content: ""; position: absolute; left: 12px; right: 16px; bottom: 0;
  height: 2px; background: #000;
  transform: scaleX(0); transition: transform .2s;
}
.nav-item:hover::after, .nav-item.is-open::after { transform: scaleX(1); }

.utility-nav { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.utility-nav > a:not(.btn) { color: #000; font-size: 16px; line-height: 20px; }
/* labels stay on one line (Portuguese labels are longer than English) */
.nav-item, .utility-nav > a { white-space: nowrap; }
.utility-nav > a:not(.btn):hover { text-decoration: underline; text-underline-offset: 4px; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; color: #000; }
.search-toggle { width: 40px; height: 40px; margin-left: -8px; }
.search-toggle svg { width: 20px; height: 20px; }
.site-header .btn-login { margin-left: -8px; color: #000; border-color: #000; padding: 9px 11px; font-size: 16px; line-height: 20px; }
.btn-login:hover { background: #000; color: #fff; }

/* Search panel: white sheet over the top half, dimmed page below (as on the original) */
.search-panel { position: fixed; inset: 0; z-index: 200; }
.search-backdrop { position: absolute; inset: 0; background: rgba(18, 18, 18, .8); }
.search-sheet { position: relative; background: #fff; min-height: 50vh; max-height: 100vh; overflow-y: auto; }
.search-inner { position: relative; padding-top: 120px; padding-bottom: 48px; }
.search-close { position: absolute; top: 12px; right: var(--gutter); width: 40px; height: 40px; }
.search-title { font-family: var(--cond); font-weight: 400; font-size: 36px; line-height: 36px; margin-bottom: 40px; color: var(--ink); }
.search-form { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 12px; border: 1px solid var(--ink); }
.search-form input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 16px; line-height: 20px; color: var(--ink); }
.search-form input::-webkit-search-cancel-button { display: none; }
.search-quick { margin-top: 8px; padding-bottom: 6px; }
.search-quick-title { padding: 10px 16px; font-size: 14px; line-height: 20px; letter-spacing: .5px; text-transform: uppercase; color: var(--ink-80); }
.search-quick a { display: flex; align-items: center; gap: 12px; padding: 11px 16px; font-size: 16px; line-height: 20px; }
.search-quick a:hover, .search-quick a:focus-visible { background: var(--grey-bg); text-decoration: underline; }
@media (min-width: 768px) { .search-title { font-size: 50px; line-height: 50px; } }
@media (min-width: 1024px) { .search-title { font-size: 60px; line-height: 60px; } }

/* Mega menu */
.mega {
  position: absolute; left: 0; right: 0; top: 100%;
  background: #fff;
  box-shadow: 0 12px 24px rgba(0,0,0,.08);
  animation: megaIn .18s ease-out;
}
@keyframes megaIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.mega-inner {
  display: flex; gap: 32px;
  padding-top: 36px; padding-bottom: 88px;
}
.mega-intro { flex: 0 0 186px; }
.mega-intro h2 {
  font-family: var(--cond); font-weight: 400;
  font-size: 40px; line-height: 40px; margin-bottom: 18px;
}
.mega-intro p { font-size: 16px; line-height: 24px; color: var(--ink-80); margin-bottom: 18px; }
.mega-intro .btn { font-size: 16px; line-height: 20px; font-weight: 500; padding: 7px 10px; }
.mega-cols { flex: 1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.mega-col h3 {
  font-family: var(--sans); font-weight: 400;
  font-size: 14px; line-height: 18px; letter-spacing: 0;
  text-transform: uppercase; color: var(--ink-70);
  margin: 8px 0 18px;
}
.mega-col a { display: block; font-size: 16px; line-height: 20px; margin-bottom: 26px; }
.mega-col a:hover { text-decoration: underline; text-underline-offset: 3px; }
.mega-feature {
  flex: 0 0 186px;
  align-self: flex-start;
  background: var(--grey-bg);
  padding: 20px 16px;
}
.mega-feature img { width: calc(100% + 32px); margin: -20px -16px 16px; aspect-ratio: 3/2; object-fit: cover; }
.mega-feature h3 { font-family: var(--sans); font-weight: 500; font-size: 20px; line-height: 24px; margin-bottom: 12px; }
.mega-feature p { font-size: 16px; line-height: 24px; color: var(--ink-80); }
.mega-feature .arrow { display: block; margin-top: 12px; font-size: 18px; }
.mega-eyebrow { display: block; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--ink-60); margin-bottom: 6px; }
.mega-feature:hover h3 { text-decoration: underline; }

/* Mobile drawer (< 1024px), measured on the original at 390px */
.drawer {
  position: fixed; inset: var(--header-h) 0 0 0;
  z-index: 49;
  background: #fff;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 13px calc(var(--gutter) + 1px) 40px;
}
.drawer-list, .drawer-utility { list-style: none; margin: 0; padding: 0; }
.drawer-item {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  padding: 10px 12px; font-size: 16px; line-height: 20px; color: var(--ink-80); text-align: left;
}
.drawer-item svg { flex: none; margin-right: -4px; }
.drawer-sep { border: 0; height: 1px; background: rgba(0, 0, 0, .34); margin: 4px 0 16px; }
.drawer-utility a { display: block; padding: 8px 0 8px 8px; font-size: 16px; line-height: 20px; color: var(--ink); }
.drawer-item:hover, .drawer-utility a:hover, .drawer-sub .mega-col a:hover { text-decoration: underline; text-underline-offset: 3px; }
.drawer .drawer-login { display: flex; justify-content: center; margin: 10px 12px 0; padding: 9px 11px; font-size: 16px; line-height: 20px; font-weight: 500; }
.drawer-main, .drawer-sub { animation: drawerIn .2s ease-out; }
@keyframes drawerIn { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }
.drawer-back {
  display: flex; align-items: center; gap: 4px; margin-left: -4px;
  padding: 10px 12px 10px 0; font-size: 16px; line-height: 20px; color: var(--ink-80);
}
.drawer-back svg { transform: scaleX(-1); }
.drawer-sub .mega-intro h2 { font-family: var(--cond); font-weight: 400; font-size: 22px; line-height: 22px; margin: 12px 0; color: var(--ink); }
.drawer-sub .mega-intro p { font-size: 16px; line-height: 24px; color: var(--ink-80); margin-bottom: 18px; }
.drawer-sub .mega-intro .btn { font-size: 14px; line-height: 18px; padding: 7px 8px; }
.drawer-sub .mega-cols { display: block; margin-top: 32px; }
.drawer-sub .mega-col + .mega-col { margin-top: 12px; }
.drawer-sub .mega-col h3 { font-family: var(--sans); font-size: 14px; line-height: 18px; font-weight: 400; letter-spacing: 0; text-transform: uppercase; color: var(--ink-70); padding: 8px 0; margin: 0; }
.drawer-sub .mega-col a { display: block; padding: 13px 0; margin: 0; font-size: 16px; line-height: 20px; }

/* ==========================================================
   HERO
   ========================================================== */
.hero {
  position: relative;
  height: calc(100vh - var(--header-h));
  min-height: 560px;
  max-height: 1100px;
  overflow: hidden;
  color: #fff;
  background: #222;
}
.hero-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,.15) 55%, rgba(0,0,0,0) 100%),
    linear-gradient(0deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,0) 45%);
}
.hero-monogram {
  position: absolute; top: -6px; right: -18px;
  display: flex; flex-direction: column;
  font-family: var(--serif); font-weight: 300;
  font-size: 190px; line-height: .78;
  color: #fff;
  pointer-events: none;
}
.hero-monogram span:last-child { margin-left: 4px; }
.hero-content {
  position: absolute; left: 0; right: 0; bottom: 72px;
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 80px;
  line-height: 1;
  letter-spacing: -.5px;
  color: rgba(255,255,255,.95);
  margin-bottom: 40px;
}
.hero-content p {
  max-width: 660px;
  font-size: 18px;
  line-height: 28px;
  margin-bottom: 40px;
}
.hero-pause {
  position: absolute; right: 32px; bottom: 32px;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  background: #fff; color: #000;
}
.hero-pause .i-play { display: none; }
.hero-pause.is-paused .i-play { display: block; }
.hero-pause.is-paused .i-pause { display: none; }

/* ==========================================================
   SECTIONS
   ========================================================== */
.section { padding: 72px 0 80px; }
.section--grey { background: var(--grey-bg); }
.section-title + .grid-3,
.section-title + .carousel { margin-top: 56px; }

.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter); }

.media { position: relative; overflow: hidden; background: #e7e9ec; }
.media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.ratio-16x9 { aspect-ratio: 16 / 9; }
.ratio-3x2  { aspect-ratio: 3 / 2; }

/* Firm in Action */
.action-card { display: flex; flex-direction: column; }
.action-card .card-title-cond { margin-bottom: 14px; }
.card-body { font-size: 18px; line-height: 28px; color: var(--ink-80); margin-bottom: 28px; }
.card-body--sm { font-size: 16px; line-height: 26px; }
.action-card .text-link { margin-top: auto; align-self: flex-start; }

/* Carousel */
.carousel { position: relative; }
.carousel-track {
  display: flex;
  gap: var(--gutter);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  margin-right: calc(-1 * var(--gutter));
  padding-right: var(--gutter);
}
.carousel-track::-webkit-scrollbar { display: none; }
.biz-card {
  flex: 0 0 calc((100% - var(--gutter) * 2) / 2.6);
  scroll-snap-align: start;
  background: #fff;
  display: flex; flex-direction: column;
}
.biz-card .media { aspect-ratio: 3 / 2; }
.biz-body { padding: 24px 24px 22px; display: flex; flex-direction: column; flex: 1; }
.biz-body h3 { font-family: var(--sans); font-weight: 700; font-size: 18px; line-height: 24px; margin-bottom: 10px; }
.biz-body p { font-size: 17px; line-height: 24px; color: var(--ink-80); margin-bottom: 18px; }
.arrow-icon { margin-top: auto; font-size: 20px; line-height: 1; transition: transform .2s; }
.biz-card:hover .media img,
.insight-feature:hover .media img,
.firm-card:hover .media img { transform: scale(1.04); }
.biz-card:hover .arrow-icon { transform: translateX(6px); }
.carousel-controls { display: flex; justify-content: flex-end; gap: 14px; margin-top: 28px; }
.car-btn { width: 36px; height: 36px; display: grid; place-items: center; color: #000; }
.car-btn:disabled { color: rgba(0,0,0,.25); cursor: default; }

/* Insights */
.section-title + .btn { margin-top: 28px; }
.insights-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gutter);
  margin-top: 56px;
}
.insight-feature-body { padding: 0 24px; }
.insight-feature .card-eyebrow { margin-top: 26px; }
.insight-feature .card-title-cond { font-size: 42px; }
.insight-feature:hover .card-title-cond,
.insight-item:hover .card-title-cond { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.meta { margin-top: 12px; font-size: 17px; color: var(--ink-70); display: flex; align-items: center; gap: 6px; }
.meta .sep { padding: 0 2px; }
.meta .mp { white-space: nowrap; }
.podcast-ico { font-size: 13px; }
.insight-list { display: flex; flex-direction: column; gap: 52px; }
.insight-item { display: grid; grid-template-columns: 120px 1fr; gap: 24px; align-items: start; }
.insight-item .card-eyebrow { margin-top: 0; }
.thumb { aspect-ratio: 1; overflow: hidden; background: #e7e9ec; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }

/* Newsletter */
.newsletter {
  margin-top: 88px;
  background: var(--blue);
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 64px;
  align-items: center;
  padding: 56px 48px;
}
.newsletter-text .eyebrow { color: rgba(0,0,0,.8); margin-bottom: 10px; }
.newsletter h3 { font-family: var(--cond); font-weight: 400; font-size: 36px; line-height: 1.1; margin-bottom: 30px; }
.newsletter-text p:not(.eyebrow) { font-size: 18px; line-height: 28px; max-width: 760px; margin-bottom: 34px; color: var(--ink); }
.newsletter-img { aspect-ratio: 1; overflow: hidden; }
.newsletter-img img { width: 100%; height: 100%; object-fit: cover; }

/* Careers */
.careers { background: var(--grey-bg); padding-top: 72px; padding-bottom: 80px; }
.careers-head { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); align-items: start; margin-bottom: 72px; }
.careers-lede { font-size: 18px; line-height: 28px; padding-top: 4px; }
.careers-composite { width: 100%; background: #ddd; }
.careers-composite img { width: 100%; height: auto; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter); margin-top: 72px; }
.stat-num {
  font-family: var(--cond);
  font-weight: 300;
  font-size: 100px;
  line-height: 1;
  letter-spacing: -2px;
  margin-bottom: 12px;
}
.stat p { font-weight: 600; font-size: 17px; line-height: 27px; max-width: 360px; }
.sources { margin-top: 64px; font-size: 11px; color: var(--ink-80); }
.stats-cta { display: flex; align-items: center; gap: 36px; margin-top: 40px; }
.plain-link { font-size: 16px; }
.plain-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Our Firm */
.our-firm { padding-top: 96px; padding-bottom: 104px; }
.firm-statement {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(44px, 6.1vw, 96px);
  line-height: 1.04;
  letter-spacing: -.5px;
  max-width: 1100px;
  margin-bottom: 64px;
}
.firm-card h3 { font-family: var(--sans); font-weight: 700; font-size: 17px; line-height: 24px; margin: 28px 0 8px; }
.firm-card p { font-size: 17px; line-height: 26px; color: var(--ink-80); }
.firm-card:hover h3 { text-decoration: underline; text-underline-offset: 3px; }

/* ==========================================================
   FOOTER
   ========================================================== */
.site-footer { background: #000; color: rgba(255,255,255,.95); padding: 56px 0 24px; }
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
  gap: var(--gutter);
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,.35);
}
.footer-col h4 {
  font-weight: 400; font-size: 12px; letter-spacing: .8px;
  text-transform: uppercase; color: rgba(255,255,255,.7);
  margin: 4px 0 20px;
}
.footer-col a { display: block; font-size: 14px; line-height: 18px; margin-bottom: 13px; max-width: 200px; }
.footer-col a:hover { text-decoration: underline; text-underline-offset: 3px; }
.social { display: flex; gap: 14px; align-items: center; }
.social a { margin: 0; display: inline-flex; }
.social a:hover { opacity: .7; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 24px; font-size: 13px; }
.footer-bottom p { color: rgba(255,255,255,.8); }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 36px; }
.footer-bottom nav a:hover { text-decoration: underline; text-underline-offset: 3px; }
.privacy-choices { display: inline-flex; align-items: center; gap: 6px; }
.pc-toggle {
  display: inline-block; width: 28px; height: 12px; border-radius: 6px;
  background: #0066ff; position: relative;
}
.pc-toggle::before {
  content: "✓"; position: absolute; left: 3px; top: -3px; font-size: 9px; color: #fff;
}
.pc-toggle::after {
  content: ""; position: absolute; right: 2px; top: 2px; width: 8px; height: 8px; border-radius: 50%; background: #fff;
}

/* ---------- Image fade-in ---------- */
img[data-src] { opacity: 0; }
img.is-loaded { opacity: 1; transition: opacity .4s ease, transform .5s ease; }

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 1180px) {
  .mega-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .newsletter { grid-template-columns: 1fr 300px; }
}

@media (max-width: 900px) {

  .hero { height: 78vh; }
  .hero h1 { font-size: 52px; margin-bottom: 24px; }
  .hero-content { bottom: 88px; }
  .hero-content p { font-size: 16px; line-height: 24px; margin-bottom: 28px; }
  .hero-monogram { font-size: 120px; }

  .section-title { font-size: 42px; }
  .grid-3 { grid-template-columns: 1fr; gap: 48px; }
  .biz-card { flex-basis: 78%; }
  .insights-grid { grid-template-columns: 1fr; gap: 48px; }
  .insight-feature-body { padding: 0; }
  .insight-list { gap: 32px; }
  .insight-item { grid-template-columns: 96px 1fr; gap: 16px; }
  .newsletter { grid-template-columns: 1fr; padding: 36px 24px; gap: 32px; }
  .newsletter-img { max-width: 360px; }
  .careers-head { grid-template-columns: 1fr; gap: 20px; margin-bottom: 48px; }
  .stats { grid-template-columns: 1fr; gap: 40px; }
  .stat-num { font-size: 76px; }
  .stats-cta { flex-wrap: wrap; gap: 20px 28px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-top .logo { grid-column: 1 / -1; margin-bottom: 12px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .footer-bottom nav { gap: 14px 24px; }
}

@media (max-width: 520px) {
  .hero h1 { font-size: 42px; }
  .card-title-cond { font-size: 30px; }
  .insight-feature .card-title-cond { font-size: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ---------- Header breakpoints (original: hamburger below 1024, 40px bar below 768) ---------- */
@media (min-width: 1024px) and (max-width: 1279px) {
  .nav-item { font-size: 14px; line-height: 18px; padding: 0 12px 0 8px; }
  .nav-item::after { left: 8px; right: 12px; }
  .utility-nav > a:not(.btn) { font-size: 14px; line-height: 18px; }
  .search-toggle { width: 32px; height: 32px; }
  .search-toggle svg { width: 18px; height: 18px; }
  .site-header .btn-login { font-size: 14px; line-height: 18px; padding: 6px 7px; }
}
@media (max-width: 1023px) {
  :root { --gutter: 32px; }
  .hamburger {
    display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 4px;
    width: 20px; height: 40px; margin-right: 24px;
  }
  .hamburger span { display: block; height: 2px; width: 18px; background: #000; transition: transform .2s, opacity .2s; }
  .hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .primary-nav, .mega, .utility-nav > a { display: none !important; }
  .search-toggle { margin-left: 0; }
}
@media (max-width: 767px) {
  :root { --gutter: 16px; --header-h: 40px; }
  .hamburger { margin-right: 12px; }
  .search-toggle { width: 32px; height: 32px; }
  .search-toggle svg { width: 18px; height: 18px; }
}
@media (min-width: 1024px) {
  .drawer { display: none !important; }
}
/* Language switch (EN | PT): header from 1280px, drawer, footer */
.lang-switch { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.lang-switch span { opacity: .5; }
.lang-switch a { text-underline-offset: 4px; }
.lang-switch a:hover { text-decoration: underline; }
.lang-switch a[aria-current] { font-weight: 700; text-decoration: underline; }
.utility-nav .lang-switch { color: #000; font-size: 16px; line-height: 20px; }
.drawer-lang .lang-switch { padding: 8px 0 8px 8px; font-size: 16px; line-height: 20px; color: var(--ink); }
.drawer-utility .lang-switch a { padding: 0; }
.lang-switch--footer { color: #fff; }
@media (max-width: 1279px) { .lang-switch--header { display: none; } }
@media (min-width: 1280px) {
  .utility-nav { margin-right: 8px; } /* original: 48px right gap vs 40px left */
}
/* Portuguese labels are longer than English: tighten the header so it stays on one line */
@media (min-width: 1024px) and (max-width: 1279px) {
  :lang(pt) .utility-nav { gap: 12px; }
  :lang(pt) .primary-nav { margin-left: 40px; }
  :lang(pt) .nav-item { padding: 0 10px 0 6px; }
  :lang(pt) .nav-item::after { left: 6px; right: 10px; }
}
@media (max-width: 1365px) { :lang(pt) .lang-switch--header { display: none; } }
@media (min-width: 1024px) and (max-width: 1099px) {
  :lang(pt) .utility-nav { gap: 8px; }
  :lang(pt) .primary-nav { margin-left: 32px; }
}
/* long Portuguese button labels may wrap on narrow screens instead of overflowing */
@media (max-width: 767px) { :lang(pt) .btn { white-space: normal; max-width: 100%; } }
