.pitch-bar{display:none!important}
/* =========================================================================
   Clave Group - Redesign tokens & primitives
   One brand colour (teal). Magenta = CTA only. Purple = HR-Tech accent only.
   ========================================================================= */

:root {
  /* -- Colour ----------------------------------------------------- */
  --ink:           #1F2937;   /* body text + dark surfaces */
  --ink-2:         #3A4452;   /* secondary text */
  --muted:         #727999;   /* captions, metadata only - NEVER body */
  --bg:            #FFFFFF;
  --surface:       #F8F9FC;   /* section dividers, card fills */
  --surface-2:     #F2F3F9;
  --border:        #E4E6EF;
  --border-strong: #DCDEEA;

  --brand:         #45D2C3;   /* Clave teal - consultoria axis */
  --brand-deep:    #2BAA9D;
  --brand-ink:     #0F4A44;   /* text on teal */

  --brand-blue:    #0057F4;   /* Clave blue - primary identity (logo body) */
  --brand-blue-deep: #003DCC;
  --brand-blue-soft: #E5EDFE;

  --cta:           #DE1A5B;   /* magenta - primary CTAs ONLY (AA-compliant on white) */
  --cta-deep:      #B61348;

  --hrtech:        #6F3BEF;   /* purple - HR-Tech axis (logo drop) */
  --hrtech-soft:   #EFEAFE;

  /* -- Type ------------------------------------------------------- */
  --font-display: "Albert Sans", system-ui, sans-serif;
  --font-body:    "Mulish", system-ui, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* 8-step scale only: 12 / 14 / 16 / 18 / 24 / 32 / 48 / 72 */
  --t-12: 0.75rem;
  --t-14: 0.875rem;
  --t-16: 1rem;
  --t-18: 1.125rem;
  --t-24: 1.5rem;
  --t-32: 2rem;
  --t-48: 3rem;
  --t-72: 4.5rem;

  /* -- Spacing (multiples of 4) ----------------------------------- */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;
  --s-10: 128px;

  /* -- Radii (3 values only) -------------------------------------- */
  --r-sm:   8px;
  --r-lg:   16px;
  --r-pill: 9999px;

  /* -- Other ---------------------------------------------------- */
  --shadow-1: 0 1px 2px rgba(15, 23, 42, 0.04), 0 1px 1px rgba(15, 23, 42, 0.03);
  --shadow-2: 0 8px 24px -8px rgba(15, 23, 42, 0.08), 0 2px 6px rgba(15, 23, 42, 0.04);
  --maxw:    1240px;
}

/* -----------------------------------------------------------------
   Reset & base
   ----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html { scroll-behavior: smooth; }
html, body { overflow-x: clip; }

/* SPA-like cross-document transitions. Supported browsers (Chrome 126+, Safari 18+)
   render a crossfade between pages automatically; others navigate normally. */
@view-transition { navigation: auto; }
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 220ms;
  animation-timing-function: cubic-bezier(.2,.7,.2,1);
}
::view-transition-old(root) {
  animation-name: fade-slide-out;
}
::view-transition-new(root) {
  animation-name: fade-slide-in;
}
@keyframes fade-slide-out {
  to { opacity: 0; transform: translateY(-6px); }
}
@keyframes fade-slide-in {
  from { opacity: 0; transform: translateY(6px); }
}
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root),
  ::view-transition-new(root) { animation-duration: 0.001ms; }
}

/* Shared elements: persist across navigation instead of fading out/in.
   The browser morphs these between pages. Logo & marketing header bridge the
   marketing site; portal sidebar bridges portal/* pages. */
.site-header .logo { view-transition-name: brand-logo; }
.site-header { view-transition-name: site-header; }
.portal-side { view-transition-name: portal-sidebar; }
.portal-mobile-bar { view-transition-name: portal-mobile-bar; }
/* Persistent elements: skip their part of the crossfade — they morph instead */
::view-transition-old(brand-logo),
::view-transition-new(brand-logo),
::view-transition-old(site-header),
::view-transition-new(site-header),
::view-transition-old(portal-sidebar),
::view-transition-new(portal-sidebar),
::view-transition-old(portal-mobile-bar),
::view-transition-new(portal-mobile-bar) {
  animation-duration: 280ms;
  animation-name: none; /* let the morph handle it */
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--t-16);
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 5vw, var(--t-72)); line-height: 1.02; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.75rem, 3.2vw, var(--t-48)); line-height: 1.08; }
h3 { font-size: var(--t-24); line-height: 1.2; }
h4 { font-size: var(--t-18); line-height: 1.3; }
p  { margin: 0; text-wrap: pretty; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--t-12);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.lede {
  font-size: var(--t-18);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 60ch;
}

/* -----------------------------------------------------------------
   Layout primitives
   ----------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--s-5);
}
.section { padding-block: clamp(var(--s-8), 8vw, var(--s-10)); }
.section--tight { padding-block: clamp(var(--s-7), 6vw, var(--s-8)); }
.section--surface { background: var(--surface); }
.section--ink     { background: var(--ink); color: #E7EAF1; }
.section--ink h1, .section--ink h2, .section--ink h3, .section--ink h4 { color: #FFFFFF; }
.section--ink .eyebrow { color: rgba(255,255,255,0.55); }

.grid-12 { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--s-5); }

/* -----------------------------------------------------------------
   Buttons
   ----------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: 14px 22px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--t-16);
  letter-spacing: -0.01em;
  line-height: 1;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--cta,
.btn--cta:link,
.btn--cta:visited {
  background: var(--cta);
  color: #FFFFFF;
}
.btn--cta:hover,
.btn--cta:focus,
.btn--cta:active { background: var(--cta-deep); color: #FFFFFF; }

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

.btn--ghost-light {
  background: transparent;
  color: #FFFFFF;
  border-color: rgba(255,255,255,0.25);
}
.btn--ghost-light:hover { border-color: rgba(255,255,255,0.6); }

.btn--sm { padding: 10px 16px; font-size: var(--t-14); }

/* -----------------------------------------------------------------
   Header
   ----------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: var(--s-7);
  padding-block: var(--s-4);
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  color: var(--ink);
}
.logo__wordmark {
  display: inline-flex;
  flex-direction: column;
  line-height: 1;
  gap: 3px;
}
.logo__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--t-18);
  letter-spacing: -0.025em;
}
.logo__sub {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0.85;
}
/* Dark surfaces (auth side, mobile bar, etc) */
.auth-side .logo__sub,
.portal-side .logo__sub { color: rgba(255,255,255,0.55); }
.logo__mark {
  width: 32px; height: 32px;
  background: url("clave-logo.png") center / contain no-repeat;
  display: inline-block;
  font-size: 0; /* hide the "c" text fallback */
  flex-shrink: 0;
}
.nav {
  display: flex;
  align-items: center;
  gap: var(--s-6);
  margin-left: auto;
}
.nav a {
  font-size: var(--t-14);
  font-weight: 500;
  color: var(--ink-2);
  transition: color .15s;
}
.nav a:hover, .nav a.is-current { color: var(--ink); }
.nav__group {
  display: flex; gap: var(--s-5); align-items: center;
}
.lang {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: var(--surface-2);
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-size: var(--t-12);
}
.lang button {
  border: 0; background: transparent; padding: 4px 10px;
  border-radius: var(--r-pill);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.lang button.is-active { background: #FFFFFF; color: var(--ink); box-shadow: var(--shadow-1); }

/* -----------------------------------------------------------------
   Pitch banner (only on pages of this redesign proposal)
   ----------------------------------------------------------------- */
.pitch-bar {
  background: var(--ink);
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-size: var(--t-12);
  letter-spacing: 0.04em;
}
.pitch-bar__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-4);
  padding-block: 10px;
}
.pitch-bar__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--cta);
  display: inline-block;
  margin-right: var(--s-2);
  box-shadow: 0 0 0 4px rgba(244,53,119,0.18);
}
.pitch-bar a { color: var(--brand); }
.pitch-bar a:hover { text-decoration: underline; }

/* -----------------------------------------------------------------
   Hero
   ----------------------------------------------------------------- */
.hero {
  padding-top: var(--s-9);
  padding-bottom: var(--s-9);
}
@media (max-width: 720px) {
  .hero { padding-top: var(--s-6); padding-bottom: var(--s-7); }
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: var(--s-8);
  align-items: center;
}
@media (max-width: 880px) {
  .hero__grid { grid-template-columns: 1fr; gap: var(--s-7); }
}
.hero__copy h1 { margin-bottom: var(--s-5); }
.hero__copy .lede { margin-bottom: var(--s-6); }
.hero__actions { display: flex; gap: var(--s-3); flex-wrap: wrap; }
.hero__since {
  margin-top: var(--s-7);
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  padding-top: var(--s-5);
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: var(--t-12);
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* -- Photo placeholder (rectangular, with drop-hint affordance) ---- */
.portrait {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  background:
    repeating-linear-gradient(135deg,
      rgba(255,255,255,0.55) 0 2px,
      transparent 2px 14px),
    radial-gradient(120% 120% at 30% 20%, #7AE3D7 0%, #45D2C3 40%, #2BAA9D 100%);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.04);
}
.portrait--purple {
  background:
    repeating-linear-gradient(135deg,
      rgba(255,255,255,0.5) 0 2px,
      transparent 2px 14px),
    radial-gradient(120% 120% at 30% 20%, #B69CFF 0%, #8A66F3 45%, #6F3BEF 100%);
}
/* Caption sits BELOW the circle, not clipped */
.portrait__label {
  position: absolute;
  left: 50%;
  bottom: -28px;
  transform: translateX(-50%);
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: var(--t-12);
  color: var(--muted);
  letter-spacing: 0.04em;
}
.portrait__label::before { content: "// "; opacity: 0.6; }

.portrait-stack {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: var(--s-4);
  width: 100%;
  max-width: 520px;
  margin-inline: auto;
  padding-bottom: var(--s-7); /* room for labels below circles */
}
.portrait-stack .portrait:nth-child(1) { grid-row: 1 / 3; }

/* -----------------------------------------------------------------
   Generic image placeholder (non-portrait)
   ----------------------------------------------------------------- */
.placeholder {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background:
    repeating-linear-gradient(135deg,
      var(--surface) 0 8px,
      var(--surface-2) 8px 16px);
  border: 1px solid var(--border);
}
.placeholder__label {
  position: absolute;
  left: var(--s-4); bottom: var(--s-4);
  font-family: var(--font-mono);
  font-size: var(--t-12);
  color: var(--muted);
  background: rgba(255,255,255,0.9);
  padding: 4px 8px;
  border-radius: var(--r-sm);
}
.placeholder__label::before { content: "// "; }

/* -----------------------------------------------------------------
   Logo wall (client proof)
   ----------------------------------------------------------------- */
.logo-wall {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: var(--s-5);
  align-items: center;
}
@media (max-width: 880px) { .logo-wall { grid-template-columns: repeat(4, 1fr); } }
.logo-wall__item {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--t-18);
  color: var(--muted);
  text-align: center;
  letter-spacing: -0.02em;
  padding-block: var(--s-3);
  opacity: 0.78;
  transition: opacity .15s, color .15s;
}
.logo-wall__item:hover { opacity: 1; color: var(--ink); }

/* Marquee logo wall (replacement / variant) */
.marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 6%, black 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 6%, black 94%, transparent);
}
.marquee__track {
  display: flex;
  gap: var(--s-9);
  width: max-content;
  animation: marquee 50s linear infinite;
  align-items: center;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--t-18);
  color: var(--muted);
  letter-spacing: -0.02em;
  white-space: nowrap;
  opacity: 0.7;
  transition: opacity .2s, color .2s;
}
.marquee__item svg { width: 24px; height: 24px; flex-shrink: 0; color: currentColor; }
.marquee__item--mono { font-family: var(--font-mono); font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; font-size: var(--t-14); }
.marquee__item--italic { font-style: italic; font-weight: 500; }
.marquee__item--heavy { font-weight: 800; }
.marquee__item:hover { opacity: 1; color: var(--ink); }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; transform: translateX(0); }
}

/* Reveal-on-scroll — section-level fade/slide/blur */
[data-reveal] {
  opacity: 0;
  transform: translateY(36px);
  filter: blur(8px);
  transition:
    opacity 1s cubic-bezier(.2,.8,.2,1),
    transform 1s cubic-bezier(.2,.8,.2,1),
    filter 1s cubic-bezier(.2,.8,.2,1);
  will-change: opacity, transform, filter;
}
[data-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* Reveal-on-scroll — staggered direct children (cards, stats, articles) */
[data-reveal-stagger] > * {
  opacity: 0;
  transform: translateY(28px);
  filter: blur(6px);
  transition:
    opacity .8s cubic-bezier(.2,.8,.2,1),
    transform .8s cubic-bezier(.2,.8,.2,1),
    filter .8s cubic-bezier(.2,.8,.2,1);
  transition-delay: calc(var(--i, 0) * 90ms);
}
[data-reveal-stagger].is-revealed > * {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal],
  [data-reveal-stagger] > * {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }
}

/* -----------------------------------------------------------------
   Stats
   ----------------------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-5);
}
@media (max-width: 720px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat {
  padding: var(--s-6) var(--s-5);
  border-top: 1px solid var(--border-strong);
  min-width: 0;
}
.stat__num {
  font-family: var(--font-display);
  font-size: clamp(40px, 12vw, var(--t-72));
  line-height: 0.95;
  letter-spacing: -0.04em;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: var(--s-3);
  overflow-wrap: anywhere;
}
.stat__num em { font-style: normal; color: var(--brand); }
.stat__label {
  font-size: var(--t-14);
  color: var(--ink-2);
  max-width: 24ch;
}

/* -----------------------------------------------------------------
   Service lines split (homepage)
   ----------------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-5);
}
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } }
.split__card {
  position: relative;
  padding: var(--s-7);
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: border-color .15s, transform .15s;
  display: flex;
  flex-direction: column;
  gap: var(--s-5);
}
.split__card:hover { border-color: var(--ink); transform: translateY(-2px); }
.split__card .eyebrow { color: var(--ink-2); }
.split__card--consultoria .split__bar { background: var(--brand); }
.split__card--hrtech .split__bar { background: var(--hrtech); }
.split__bar {
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  border-radius: var(--r-lg) 0 0 var(--r-lg);
}
.split__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.split__list li {
  display: flex; gap: var(--s-3); align-items: flex-start;
  font-size: var(--t-14);
  color: var(--ink-2);
}
.split__list li::before {
  content: ""; width: 6px; height: 6px; margin-top: 8px;
  background: currentColor; border-radius: 50%; flex-shrink: 0;
  color: var(--brand);
}
.split__card--hrtech .split__list li::before { color: var(--hrtech); }

/* -----------------------------------------------------------------
   Testimonial card
   ----------------------------------------------------------------- */
.testimonial {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s-6);
  display: flex;
  flex-direction: column;
  gap: var(--s-5);
}
.testimonial__quote {
  font-family: var(--font-display);
  font-size: var(--t-24);
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.testimonial__quote::before {
  content: "“";
  font-size: var(--t-72);
  line-height: 0;
  vertical-align: -28px;
  color: var(--brand);
  margin-right: 6px;
}
.testimonial__byline {
  display: flex; align-items: center; gap: var(--s-3);
  padding-top: var(--s-4);
  border-top: 1px solid var(--border);
  margin-top: auto;
}
.testimonial__avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: radial-gradient(120% 120% at 30% 20%, #7AE3D7 0%, #45D2C3 40%, #2BAA9D 100%);
  flex-shrink: 0;
}
.testimonial__who {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--t-16);
  color: var(--ink);
}
.testimonial__role {
  font-size: var(--t-12);
  color: var(--muted);
}

/* -----------------------------------------------------------------
   Product card
   ----------------------------------------------------------------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-4);
}
@media (max-width: 880px) { .product-grid { grid-template-columns: 1fr; } }
.product-card {
  padding: var(--s-6);
  border-radius: var(--r-lg);
  background: var(--bg);
  border: 1px solid var(--border);
  display: flex; flex-direction: column; gap: var(--s-4);
  transition: border-color .15s, transform .15s;
  min-height: 240px;
}
.product-card:hover { border-color: var(--ink); transform: translateY(-2px); }
.product-card__icon {
  width: 44px; height: 44px;
  border-radius: var(--r-sm);
  background: var(--surface);
  display: grid; place-items: center;
  color: var(--ink);
}
.product-card--hrtech .product-card__icon { background: var(--hrtech-soft); color: var(--hrtech); }
.product-card__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--t-18);
  letter-spacing: -0.01em;
}
.product-card__body {
  font-size: var(--t-14);
  color: var(--ink-2);
  flex-grow: 1;
}
.product-card__more {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--t-14);
  color: var(--ink);
  display: inline-flex; align-items: center; gap: 6px;
}
.product-card__more svg { transition: transform .15s; }
.product-card:hover .product-card__more svg { transform: translateX(3px); }

/* -----------------------------------------------------------------
   CTA band
   ----------------------------------------------------------------- */
.cta-band {
  background: var(--ink);
  color: #FFFFFF;
  border-radius: var(--r-lg);
  padding: clamp(var(--s-7), 6vw, var(--s-9));
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--s-6);
  align-items: center;
}
@media (max-width: 880px) { .cta-band { grid-template-columns: 1fr; } }
.cta-band h2 { color: #FFFFFF; }
.cta-band__sub { color: rgba(255,255,255,0.65); margin-top: var(--s-4); max-width: 50ch; }
.cta-band__actions { display: flex; gap: var(--s-3); flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 880px) { .cta-band__actions { justify-content: flex-start; } }

/* -----------------------------------------------------------------
   Footer
   ----------------------------------------------------------------- */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.7);
  padding-block: var(--s-9) var(--s-6);
}
.site-footer a { color: rgba(255,255,255,0.7); }
.site-footer a:hover { color: #FFFFFF; }
.footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--s-6);
  padding-bottom: var(--s-7);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
@media (max-width: 880px) { .footer__top { grid-template-columns: 1fr 1fr; } }
.footer__brand h4 { color: #FFFFFF; font-family: var(--font-display); font-size: var(--t-18); margin-bottom: var(--s-3); }
.footer__brand p { font-size: var(--t-14); color: rgba(255,255,255,0.55); max-width: 36ch; }
.footer__col h5 {
  font-family: var(--font-mono);
  font-size: var(--t-12);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.4);
  font-weight: 500;
  margin: 0 0 var(--s-4);
}
.footer__col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer__col li { font-size: var(--t-14); }
.footer__bottom {
  margin-top: var(--s-6);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--s-3);
  font-size: var(--t-12);
  font-family: var(--font-mono);
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.04em;
}

/* -----------------------------------------------------------------
   Section heading combo
   ----------------------------------------------------------------- */
.sec-head { display: grid; gap: var(--s-3); margin-bottom: var(--s-7); max-width: 64ch; }
.sec-head--center { margin-inline: auto; text-align: center; }
.sec-head--row {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: var(--s-5); max-width: none;
}
@media (max-width: 720px) { .sec-head--row { flex-direction: column; align-items: flex-start; } }

/* -----------------------------------------------------------------
   Mindset Digital feature block
   ----------------------------------------------------------------- */
.mindset {
  background: var(--ink);
  color: #FFFFFF;
  border-radius: var(--r-lg);
  padding: clamp(var(--s-7), 6vw, var(--s-9));
  position: relative;
  overflow: hidden;
}
.mindset h2 { color: #FFFFFF; }
.mindset__intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-7);
  margin-bottom: var(--s-7);
  align-items: end;
}
@media (max-width: 880px) { .mindset__intro { grid-template-columns: 1fr; } }
.mindset__intro p { color: rgba(255,255,255,0.7); }
.mindset__tiers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-3);
}
@media (max-width: 880px) { .mindset__tiers { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .mindset__tiers { grid-template-columns: 1fr; } }
.tier {
  padding: var(--s-5);
  border-radius: var(--r-sm);
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.03);
  display: flex; flex-direction: column; gap: var(--s-3);
}
.tier__num {
  font-family: var(--font-mono);
  font-size: var(--t-12);
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.08em;
}
.tier__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--t-24);
  letter-spacing: -0.02em;
}
.tier__desc { font-size: var(--t-14); color: rgba(255,255,255,0.6); }
.tier__bar { height: 4px; border-radius: 4px; background: rgba(255,255,255,0.08); overflow: hidden; }
.tier__bar > span { display: block; height: 100%; background: var(--brand); }
.tier:nth-child(1) .tier__bar > span { width: 18%; background: #FF6E6E; }
.tier:nth-child(2) .tier__bar > span { width: 42%; background: #F5B800; }
.tier:nth-child(3) .tier__bar > span { width: 68%; background: var(--brand); }
.tier:nth-child(4) .tier__bar > span { width: 96%; background: #FFFFFF; }

/* -----------------------------------------------------------------
   Article card (blog/podcast - kept close to existing pattern)
   ----------------------------------------------------------------- */
.articles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
}
@media (max-width: 880px) { .articles { grid-template-columns: 1fr; } }
.article {
  display: flex; flex-direction: column; gap: var(--s-4);
}
.article__img {
  aspect-ratio: 4/3;
  border-radius: var(--r-sm);
  background:
    repeating-linear-gradient(135deg,
      var(--surface) 0 8px,
      var(--surface-2) 8px 16px);
  border: 1px solid var(--border);
  position: relative;
}
.article__img .placeholder__label { background: rgba(255,255,255,0.95); }
.article__tag {
  font-family: var(--font-mono);
  font-size: var(--t-12);
  color: var(--brand-deep);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.article__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--t-18);
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.article__meta {
  font-size: var(--t-12);
  color: var(--muted);
  font-family: var(--font-mono);
}

/* -----------------------------------------------------------------
   Product hero (used on product subpages)
   ----------------------------------------------------------------- */
.phero {
  padding-top: var(--s-8);
  padding-bottom: var(--s-8);
  border-bottom: 1px solid var(--border);
}
.phero__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--s-8);
  align-items: center;
}
@media (max-width: 880px) { .phero__grid { grid-template-columns: 1fr; } }
.phero__crumb {
  display: flex; gap: var(--s-2);
  font-family: var(--font-mono);
  font-size: var(--t-12);
  color: var(--muted);
  margin-bottom: var(--s-4);
  letter-spacing: 0.04em;
}
.phero__crumb span { color: var(--ink-2); }
.phero h1 { font-size: clamp(2rem, 4vw, var(--t-48)); margin-bottom: var(--s-5); }

/* Quote in product hero */
.phero-quote {
  margin-top: var(--s-6);
  padding: var(--s-5);
  background: var(--surface);
  border-left: 3px solid var(--brand);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
}
.phero-quote--hrtech { border-left-color: var(--hrtech); }
.phero-quote p {
  font-family: var(--font-display);
  font-size: var(--t-18);
  letter-spacing: -0.01em;
  margin-bottom: var(--s-3);
  color: var(--ink);
}
.phero-quote__who { font-size: var(--t-12); color: var(--muted); font-family: var(--font-mono); letter-spacing: 0.04em; }

/* -----------------------------------------------------------------
   Sticky mobile CTA
   ----------------------------------------------------------------- */
.sticky-cta {
  display: none;
  position: fixed;
  left: var(--s-4); right: var(--s-4); bottom: var(--s-4);
  z-index: 30;
  background: var(--ink);
  color: #FFFFFF;
  border-radius: var(--r-pill);
  padding: 10px 10px 10px 18px;
  box-shadow: var(--shadow-2);
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  font-size: var(--t-14);
}
.sticky-cta .btn { padding: 10px 16px; font-size: var(--t-14); }
@media (max-width: 720px) { .sticky-cta { display: flex; } }

/* -----------------------------------------------------------------
   System reference page bits
   ----------------------------------------------------------------- */
.swatch {
  border-radius: var(--r-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  display: flex; flex-direction: column;
}
.swatch__chip { height: 110px; }
.swatch__meta { padding: var(--s-4); display: grid; gap: 4px; }
.swatch__name { font-family: var(--font-display); font-weight: 600; font-size: var(--t-16); }
.swatch__hex { font-family: var(--font-mono); font-size: var(--t-12); color: var(--muted); }
.swatch__role { font-size: var(--t-12); color: var(--ink-2); }

.token-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-4);
}
@media (max-width: 880px) { .token-grid { grid-template-columns: repeat(2, 1fr); } }

.type-spec {
  display: grid;
  grid-template-columns: 80px 1fr;
  align-items: baseline;
  gap: var(--s-5);
  padding-block: var(--s-5);
  border-top: 1px solid var(--border);
}
.type-spec__meta { font-family: var(--font-mono); font-size: var(--t-12); color: var(--muted); letter-spacing: 0.04em; }
.type-spec__sample { color: var(--ink); }

.divider { height: 1px; background: var(--border); margin-block: var(--s-7); border: 0; }

/* =========================================================================
   POLISH ROUND 2
   ========================================================================= */

/* -- Nav active state (per-page) ---------------------------------- */
.nav a[aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
  position: relative;
}
.nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -22px;
  height: 2px;
  background: var(--brand-blue);
}

/* -- Photo placeholder (rectangular, with drop-hint affordance) ---- */
.photo {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background:
    repeating-linear-gradient(135deg,
      rgba(255,255,255,0.55) 0 2px,
      transparent 2px 14px),
    radial-gradient(120% 120% at 30% 20%, #7AE3D7 0%, #45D2C3 40%, #2BAA9D 100%);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.04);
  aspect-ratio: 4/5;
}
.photo--wide { aspect-ratio: 16/10; }
.photo--square { aspect-ratio: 1/1; }
.photo--purple {
  background:
    repeating-linear-gradient(135deg,
      rgba(255,255,255,0.5) 0 2px,
      transparent 2px 14px),
    radial-gradient(120% 120% at 30% 20%, #B69CFF 0%, #8A66F3 45%, #6F3BEF 100%);
}
.photo--ink {
  background:
    repeating-linear-gradient(135deg,
      rgba(255,255,255,0.04) 0 2px,
      transparent 2px 14px),
    radial-gradient(120% 120% at 30% 20%, #3A4452 0%, #1F2937 60%, #0E1420 100%);
}
.photo__cap {
  position: absolute;
  inset: auto var(--s-4) var(--s-4) var(--s-4);
  font-family: var(--font-mono);
  font-size: var(--t-12);
  color: rgba(255,255,255,0.92);
  letter-spacing: 0.04em;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}
.photo__cap::before { content: "// "; opacity: 0.6; }

/* =========================================================================
   CASE STUDY PAGE
   ========================================================================= */
.case-hero {
  background: var(--ink);
  color: #FFFFFF;
  padding: clamp(var(--s-8), 7vw, var(--s-10)) 0;
}
.case-hero h1 { color: #FFFFFF; }
.case-hero .eyebrow { color: rgba(255,255,255,0.5); }
.case-hero__client {
  font-family: var(--font-display);
  font-size: var(--t-32);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--brand);
  margin-bottom: var(--s-4);
}
.case-hero__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: var(--s-8);
  align-items: end;
}
@media (max-width: 880px) { .case-hero__grid { grid-template-columns: 1fr; } }
.case-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-5);
  padding: var(--s-5);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r-lg);
}
.case-meta dt {
  font-family: var(--font-mono);
  font-size: var(--t-12);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 4px;
}
.case-meta dd {
  font-family: var(--font-display);
  font-size: var(--t-18);
  font-weight: 600;
  color: #FFFFFF;
  margin: 0;
}

.case-headline-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
@media (max-width: 720px) { .case-headline-stats { grid-template-columns: 1fr; } }
.case-headline-stats .stat {
  border-top: 0;
  padding: var(--s-7) var(--s-6);
  border-right: 1px solid var(--border);
}
.case-headline-stats .stat:last-child { border-right: 0; }
@media (max-width: 720px) {
  .case-headline-stats .stat { border-right: 0; border-top: 1px solid var(--border); }
  .case-headline-stats .stat:first-child { border-top: 0; }
}

.case-body {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: var(--s-8);
  align-items: start;
}
@media (max-width: 880px) { .case-body { grid-template-columns: 1fr; gap: var(--s-5); } }
.case-body__rail {
  position: sticky;
  top: 100px;
  display: grid;
  gap: var(--s-3);
  font-family: var(--font-mono);
  font-size: var(--t-12);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.case-body__rail a {
  color: var(--muted);
  padding: var(--s-2) 0;
  border-left: 2px solid var(--border);
  padding-left: var(--s-3);
  transition: color .15s, border-color .15s;
}
.case-body__rail a:hover, .case-body__rail a.is-active {
  color: var(--ink);
  border-left-color: var(--brand);
}
.case-body__main { display: grid; gap: var(--s-7); max-width: 64ch; }
.case-body__main h2 { margin-bottom: var(--s-4); }
.case-body__main p { color: var(--ink-2); font-size: var(--t-18); line-height: 1.6; }
.case-body__main p + p { margin-top: var(--s-4); }
.case-body__chapter { scroll-margin-top: 100px; }

.case-pullquote {
  margin: var(--s-7) 0;
  padding: var(--s-6) var(--s-7);
  border-left: 3px solid var(--brand);
  background: var(--surface);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
}
.case-pullquote p {
  font-family: var(--font-display);
  font-size: var(--t-24);
  letter-spacing: -0.015em;
  color: var(--ink);
  line-height: 1.3;
  margin-bottom: var(--s-3);
}
.case-pullquote__who { font-family: var(--font-mono); font-size: var(--t-12); color: var(--muted); letter-spacing: 0.04em; }

/* =========================================================================
   SOBRE / TEAM PAGE
   ========================================================================= */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-6);
}
@media (max-width: 880px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .team-grid { grid-template-columns: 1fr; } }
.team-card { display: grid; gap: var(--s-4); }
.team-card .photo { aspect-ratio: 4/5; }
.team-card__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--t-24);
  letter-spacing: -0.02em;
}
.team-card__role {
  font-family: var(--font-mono);
  font-size: var(--t-12);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-deep);
}
.team-card__bio { font-size: var(--t-14); color: var(--ink-2); }
.team-card__led {
  font-family: var(--font-mono);
  font-size: var(--t-12);
  color: var(--muted);
  letter-spacing: 0.04em;
  padding-top: var(--s-3);
  border-top: 1px solid var(--border);
}

.timeline {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: var(--s-6);
}
@media (max-width: 720px) { .timeline { grid-template-columns: 1fr; } }
.timeline__row {
  display: contents;
}
.timeline__year {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--t-32);
  color: var(--brand-deep);
  letter-spacing: -0.03em;
}
.timeline__body {
  padding-bottom: var(--s-6);
  border-bottom: 1px solid var(--border);
}
.timeline__body h3 { margin-bottom: var(--s-3); }
.timeline__body p { color: var(--ink-2); }

/* =========================================================================
   PORTAL CHROME (auth, dashboard, report, respondent)
   ========================================================================= */
.portal-shell {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
  background: var(--surface);
}
@media (max-width: 880px) {
  .portal-shell { grid-template-columns: 1fr; }
  .portal-side { display: none; }
}
.portal-side {
  background: #FFFFFF;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: var(--s-5);
  gap: var(--s-5);
}
.portal-side .logo { padding: var(--s-3); }
.portal-nav {
  display: grid;
  gap: 2px;
}
.portal-nav__group {
  font-family: var(--font-mono);
  font-size: var(--t-12);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  padding: var(--s-4) var(--s-3) var(--s-2);
}
.portal-nav a {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: 10px var(--s-3);
  font-size: var(--t-14);
  color: var(--ink-2);
  border-radius: var(--r-sm);
  font-weight: 500;
}
.portal-nav a:hover { background: var(--surface); color: var(--ink); }
.portal-nav a[aria-current="page"] {
  background: var(--surface);
  color: var(--ink);
  font-weight: 600;
}
.portal-nav a[aria-current="page"] svg { color: var(--brand-deep); }
.portal-nav svg { width: 18px; height: 18px; flex-shrink: 0; }

.portal-user {
  margin-top: auto;
  padding: var(--s-4) var(--s-3);
  display: flex;
  align-items: center;
  gap: var(--s-3);
  border-top: 1px solid var(--border);
}
.portal-user__avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: radial-gradient(120% 120% at 30% 20%, #7AE3D7 0%, #45D2C3 40%, #2BAA9D 100%);
  display: grid; place-items: center;
  color: #0F4A44;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--t-14);
}
.portal-user__name { font-family: var(--font-display); font-weight: 600; font-size: var(--t-14); }
.portal-user__org { font-size: var(--t-12); color: var(--muted); }

.portal-main {
  padding: var(--s-7) clamp(var(--s-5), 4vw, var(--s-7));
  display: grid;
  gap: var(--s-7);
}
.portal-topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--s-5);
  flex-wrap: wrap;
}
.portal-topbar h1 { font-size: clamp(1.75rem, 3vw, var(--t-32)); margin: 0; }
.portal-topbar__crumb { font-family: var(--font-mono); font-size: var(--t-12); color: var(--muted); margin-bottom: var(--s-2); letter-spacing: 0.04em; }
.portal-topbar__actions { display: flex; gap: var(--s-3); }

/* -- Dashboard KPI cards ---------------------------------------- */
.kpi-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-4);
}
@media (max-width: 880px) { .kpi-row { grid-template-columns: repeat(2, 1fr); } }
.kpi {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  display: grid;
  gap: var(--s-3);
}
.kpi__label {
  font-family: var(--font-mono);
  font-size: var(--t-12);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.kpi__num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--t-48);
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink);
}
.kpi__num em { font-style: normal; color: var(--brand); font-size: 0.6em; margin-left: 4px; }
.kpi__delta {
  font-family: var(--font-mono);
  font-size: var(--t-12);
  color: var(--brand-deep);
}
.kpi__delta--down { color: var(--cta-deep); }

/* -- Panels (dashboard sections) -------------------------------- */
.panel {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.panel__head {
  padding: var(--s-5) var(--s-6);
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--s-3);
}
.panel__head h3 { font-size: var(--t-18); }
.panel__head .eyebrow { color: var(--muted); margin-bottom: 4px; }
.panel__body { padding: var(--s-6); }
.panel__body--flush { padding: 0; }

.panel-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--s-5);
}
@media (max-width: 880px) { .panel-grid { grid-template-columns: 1fr; } }

/* -- Talent map (9-box grid) ------------------------------------ */
.ninebox {
  display: grid;
  grid-template-columns: 60px repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr) 40px;
  gap: 4px;
  aspect-ratio: 1.1/1;
}
.ninebox__cell {
  border-radius: var(--r-sm);
  padding: var(--s-3);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-size: var(--t-12);
  position: relative;
  min-height: 90px;
}
.ninebox__cell--n { background: #FEE8EE; color: #8B1F47; }
.ninebox__cell--m { background: #FFF2D6; color: #7A5300; }
.ninebox__cell--h { background: #D5F4EF; color: var(--brand-ink); }
.ninebox__cell strong {
  font-family: var(--font-display);
  font-size: var(--t-24);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.ninebox__cell span { opacity: 0.7; }
.ninebox__axis {
  font-family: var(--font-mono);
  font-size: var(--t-12);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  display: grid;
  place-items: center;
  text-align: center;
}
.ninebox__axis--y {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  grid-row: 1 / 4;
}
.ninebox__axis--x { grid-column: 2 / 5; }

/* -- Mindset cohort bars ---------------------------------------- */
.cohort {
  display: grid;
  gap: var(--s-3);
}
.cohort__row {
  display: grid;
  grid-template-columns: 110px 1fr 60px;
  gap: var(--s-4);
  align-items: center;
}
.cohort__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--t-14);
}
.cohort__bar {
  height: 12px;
  background: var(--surface);
  border-radius: var(--r-pill);
  overflow: hidden;
  position: relative;
}
.cohort__bar > span {
  display: block;
  height: 100%;
  border-radius: var(--r-pill);
}
.cohort__row:nth-child(1) .cohort__bar > span { background: #FF6E6E; }
.cohort__row:nth-child(2) .cohort__bar > span { background: #F5B800; }
.cohort__row:nth-child(3) .cohort__bar > span { background: var(--brand); }
.cohort__row:nth-child(4) .cohort__bar > span { background: var(--ink); }
.cohort__pct {
  font-family: var(--font-mono);
  font-size: var(--t-14);
  color: var(--ink);
  text-align: right;
  font-weight: 500;
}

/* -- Data table ------------------------------------------------- */
.dtable { width: 100%; border-collapse: collapse; }
.dtable th, .dtable td {
  padding: var(--s-4) var(--s-5);
  text-align: left;
  font-size: var(--t-14);
  border-bottom: 1px solid var(--border);
}
.dtable th {
  font-family: var(--font-mono);
  font-size: var(--t-12);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  background: var(--surface);
}
.dtable tbody tr:hover { background: var(--surface); }
.dtable td:first-child { font-weight: 600; color: var(--ink); }
.dtable .badge { display: inline-flex; align-items: center; gap: 4px; font-family: var(--font-mono); font-size: var(--t-12); padding: 2px 8px; border-radius: var(--r-pill); }
.dtable .badge--ok { background: #D5F4EF; color: var(--brand-ink); }
.dtable .badge--warn { background: #FFF2D6; color: #7A5300; }
.dtable .badge--off { background: var(--surface-2); color: var(--muted); }
.dtable .avatar-mini {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: radial-gradient(120% 120% at 30% 20%, #7AE3D7 0%, #45D2C3 40%, #2BAA9D 100%);
  display: inline-block;
  vertical-align: middle;
  margin-right: var(--s-3);
}

/* -- Login ------------------------------------------------------ */
.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 880px) { .auth-shell { grid-template-columns: 1fr; } }
.auth-side {
  background: var(--ink);
  color: #FFFFFF;
  padding: clamp(var(--s-6), 5vw, var(--s-9));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.auth-side::before {
  content: "";
  position: absolute;
  inset: -50% -20% auto auto;
  width: 60%; aspect-ratio: 1/1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(69,210,195,0.3), transparent 70%);
  pointer-events: none;
}
.auth-side .logo { color: #FFFFFF; }
.auth-side h2 { color: #FFFFFF; font-size: clamp(1.75rem, 3.2vw, var(--t-48)); max-width: 14ch; }
.auth-side blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--t-18);
  line-height: 1.45;
  color: rgba(255,255,255,0.8);
  max-width: 38ch;
  position: relative;
  padding-left: var(--s-5);
  border-left: 3px solid var(--brand);
}
.auth-side cite { display: block; margin-top: var(--s-3); font-family: var(--font-mono); font-size: var(--t-12); font-style: normal; color: rgba(255,255,255,0.5); letter-spacing: 0.04em; }
.auth-main {
  display: grid;
  place-items: center;
  padding: var(--s-7);
  background: #FFFFFF;
}
.auth-form {
  width: 100%;
  max-width: 380px;
  display: grid;
  gap: var(--s-5);
}
.auth-form h1 { font-size: var(--t-32); }
.field { display: grid; gap: 6px; }
.field label {
  font-family: var(--font-mono);
  font-size: var(--t-12);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-2);
  font-weight: 500;
}
.field input, .field textarea, .field select {
  font: inherit;
  font-family: var(--font-body);
  font-size: var(--t-16);
  padding: 12px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  background: #FFFFFF;
  color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--brand-deep);
  box-shadow: 0 0 0 3px rgba(43,170,157,0.18);
}
.field--inline { display: flex; align-items: center; gap: var(--s-3); }
.field--inline input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--brand-deep); }
.field__help { font-size: var(--t-12); color: var(--muted); }
.btn--block { width: 100%; justify-content: center; }
.auth-foot {
  font-size: var(--t-12);
  color: var(--muted);
  text-align: center;
}
.auth-foot a { color: var(--brand-deep); font-weight: 500; }

/* =========================================================================
   INDIVIDUAL REPORT
   ========================================================================= */
.report-cover {
  background: var(--ink);
  color: #FFFFFF;
  padding: var(--s-9) 0;
  position: relative;
  overflow: hidden;
}
.report-cover::before {
  content: "";
  position: absolute;
  inset: -30% -10% auto auto;
  width: 50%; aspect-ratio: 1/1;
  background: radial-gradient(circle, rgba(111,59,239,0.35), transparent 65%);
  pointer-events: none;
}
.report-cover h1 { color: #FFFFFF; font-size: clamp(2.5rem, 5vw, var(--t-72)); }
.report-cover .eyebrow { color: rgba(255,255,255,0.5); }
.report-cover__meta {
  display: flex;
  gap: var(--s-6);
  margin-top: var(--s-6);
  padding-top: var(--s-5);
  border-top: 1px solid rgba(255,255,255,0.15);
  flex-wrap: wrap;
}
.report-cover__meta dt { font-family: var(--font-mono); font-size: var(--t-12); text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255,255,255,0.5); }
.report-cover__meta dd { margin: 4px 0 0; font-family: var(--font-display); font-weight: 600; }
.report-cover__avatar {
  width: 140px; height: 140px;
  border-radius: 50%;
  background: radial-gradient(120% 120% at 30% 20%, #7AE3D7 0%, #45D2C3 40%, #2BAA9D 100%);
  box-shadow: inset 0 0 0 4px rgba(255,255,255,0.1), 0 20px 40px -10px rgba(0,0,0,0.4);
}

.report-section { padding: var(--s-8) 0; border-bottom: 1px solid var(--border); }
.report-section:last-of-type { border-bottom: 0; }
.report-section__head { display: grid; gap: var(--s-3); margin-bottom: var(--s-6); }
.report-section__head h2 { font-size: var(--t-32); }

/* Trait bars */
.traits { display: grid; gap: var(--s-5); }
.trait {
  display: grid;
  grid-template-columns: 180px 1fr 60px;
  gap: var(--s-5);
  align-items: center;
}
@media (max-width: 720px) { .trait { grid-template-columns: 1fr; gap: var(--s-2); } }
.trait__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--t-18);
  letter-spacing: -0.01em;
}
.trait__desc { font-size: var(--t-12); color: var(--muted); }
.trait__bar {
  position: relative;
  height: 8px;
  background: var(--surface-2);
  border-radius: var(--r-pill);
  overflow: visible;
}
.trait__bar > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--brand) 0%, var(--brand-deep) 100%);
  border-radius: var(--r-pill);
  position: relative;
}
.trait__marker {
  position: absolute;
  top: -4px;
  width: 16px; height: 16px;
  background: #FFFFFF;
  border: 3px solid var(--ink);
  border-radius: 50%;
  transform: translateX(-50%);
}
.trait__score {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--t-24);
  text-align: right;
  letter-spacing: -0.02em;
}
.trait__score em { font-style: normal; font-size: var(--t-12); color: var(--muted); font-weight: 400; }

/* Mindset Digital score plate */
.mindset-plate {
  background: var(--ink);
  border-radius: var(--r-lg);
  padding: var(--s-7);
  color: #FFFFFF;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--s-6);
  align-items: center;
}
@media (max-width: 720px) { .mindset-plate { grid-template-columns: 1fr; } }
.mindset-plate h2 { color: #FFFFFF; }
.mindset-plate__ring {
  width: 180px; height: 180px;
  border-radius: 50%;
  background:
    conic-gradient(var(--brand) 0 68%, rgba(255,255,255,0.1) 68% 100%);
  display: grid;
  place-items: center;
  position: relative;
}
.mindset-plate__ring::before {
  content: "";
  position: absolute;
  inset: 12px;
  background: var(--ink);
  border-radius: 50%;
}
.mindset-plate__ring-text {
  position: relative;
  text-align: center;
  font-family: var(--font-display);
}
.mindset-plate__ring-text strong { display: block; font-size: var(--t-48); font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.mindset-plate__ring-text span { font-family: var(--font-mono); font-size: var(--t-12); color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 0.08em; }

/* Recommendation chips */
.recs { display: grid; gap: var(--s-3); }
.rec {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--s-5);
  padding: var(--s-5);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: #FFFFFF;
  align-items: center;
}
.rec__icon {
  width: 44px; height: 44px;
  border-radius: var(--r-sm);
  background: var(--surface);
  display: grid; place-items: center;
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--brand-deep);
}
.rec__title { font-family: var(--font-display); font-weight: 600; font-size: var(--t-18); }
.rec__sub { font-size: var(--t-14); color: var(--ink-2); margin-top: 2px; }

/* =========================================================================
   RESPONDENT (assessment-taking flow)
   ========================================================================= */
.resp-shell {
  min-height: 100vh;
  background: var(--surface);
  display: grid;
  grid-template-rows: auto 1fr auto;
  grid-template-columns: minmax(0, 1fr);  /* allow children to shrink below intrinsic width */
  max-width: 100vw;
}
.resp-shell > * { min-width: 0; }
.resp-top {
  background: #FFFFFF;
  border-bottom: 1px solid var(--border);
  padding: var(--s-4) var(--s-5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
}
.resp-progress {
  flex: 1;
  max-width: 320px;
  display: grid;
  gap: 6px;
}
.resp-progress__label { font-family: var(--font-mono); font-size: var(--t-12); color: var(--muted); display: flex; justify-content: space-between; }
.resp-progress__bar { height: 6px; background: var(--surface-2); border-radius: var(--r-pill); overflow: hidden; }
.resp-progress__bar > span { display: block; height: 100%; background: var(--brand); border-radius: var(--r-pill); }

.resp-main {
  display: grid;
  place-items: start center;
  padding: var(--s-7);
  padding-top: clamp(var(--s-5), 4vh, var(--s-7));
}
.resp-card {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: clamp(var(--s-6), 5vw, var(--s-8));
  width: 100%;
  max-width: 720px;
  box-shadow: var(--shadow-2);
}
/* Transition between questions */
.resp-card .resp-q,
.resp-card .scale {
  transition: opacity 180ms ease, transform 220ms cubic-bezier(.2,.7,.2,1);
}
.resp-card[data-state="leaving-next"] .resp-q,
.resp-card[data-state="leaving-next"] .scale {
  opacity: 0;
  transform: translateX(-16px);
}
.resp-card[data-state="leaving-prev"] .resp-q,
.resp-card[data-state="leaving-prev"] .scale {
  opacity: 0;
  transform: translateX(16px);
}
.resp-card[data-state="entering-next"] .resp-q,
.resp-card[data-state="entering-next"] .scale {
  opacity: 0;
  transform: translateX(16px);
}
.resp-card[data-state="entering-prev"] .resp-q,
.resp-card[data-state="entering-prev"] .scale {
  opacity: 0;
  transform: translateX(-16px);
}
@media (prefers-reduced-motion: reduce) {
  .resp-card .resp-q,
  .resp-card .scale { transition: none; }
}
.resp-qnum { font-family: var(--font-mono); font-size: var(--t-12); color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; }
.resp-q {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.5rem, 3vw, var(--t-32));
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: var(--s-4) 0 var(--s-7);
}
.scale {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: var(--s-2);
}
/* Mobile: keep the Likert order (1→7 left-to-right). Hide per-button labels;
   show anchor labels at the ends. Compact numbers only, fits in viewport. */
@media (max-width: 560px) {
  .scale { gap: 6px; }
  .scale button {
    padding: 10px 4px !important;
    gap: 0 !important;
    min-height: 0 !important;
  }
  .scale .scale__lbl { display: none; }
  .scale .scale__dot {
    width: 36px; height: 36px;
    font-size: 16px;
  }
  .scale-anchors {
    display: flex !important;
    justify-content: space-between;
    margin-top: 10px;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 500;
    color: var(--ink-2, var(--ink));
    padding-inline: 6px;
  }
}

/* Mobile: compress top header and remove timer to keep questionnaire above-fold */
@media (max-width: 560px) {
  .resp-top {
    padding: 10px 14px !important;
    gap: 10px !important;
    flex-wrap: wrap;
  }
  .resp-top > .logo { flex-shrink: 0; }
  .resp-top > div[style*="MIN RESTANTES"],
  .resp-top > div:not(.resp-progress):not(.logo) { display: none !important; }
  .resp-progress { max-width: none; min-width: 0; flex: 1; }
  .resp-progress__label { font-size: 11px; gap: 8px; }
  .resp-progress__label > span:first-child a { font-size: 0; }
  .resp-progress__label > span:first-child a::before {
    content: "← Voltar";
    font-size: 11px;
    letter-spacing: 0.04em;
    color: var(--muted);
    font-family: var(--font-mono);
  }
  .resp-progress__label > span:first-child { flex: 0 0 auto; }
  /* Hide the textual count (the bar is the signal on mobile) */
  #prog-text { display: none; }
  /* Hide the keyboard hint on touch devices */
  .resp-card > div:last-of-type > span {
    display: none;
  }
  /* Voltar / Próxima buttons sit on one row */
  .resp-card > div:last-of-type {
    justify-content: space-between !important;
    margin-top: 18px !important;
  }

  .resp-main { padding: 12px !important; }
  .resp-card { padding: 18px 16px !important; }
  .resp-q { font-size: 18px !important; margin: 10px 0 18px !important; }
  .resp-qnum { font-size: 11px; }
  /* hide the small "Sem certo ou errado · responda no impulso" subtitle */
  .resp-card > div:first-child > span:last-child { display: none; }

  /* Footer (privacy line + auto-save) — stack and shrink */
  .resp-foot {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 4px !important;
    font-size: 10px !important;
    padding: 10px 14px !important;
    line-height: 1.3 !important;
  }
}
.scale button {
  border: 1px solid var(--border-strong);
  background: #FFFFFF;
  padding: var(--s-5) var(--s-3);
  border-radius: var(--r-sm);
  display: flex; flex-direction: column; gap: 6px; align-items: center;
  font-family: var(--font-body);
  color: var(--ink-2);
  transition: border-color .15s, background .15s, transform .15s;
  min-height: 100px;
}
.scale button:hover { border-color: var(--brand-deep); background: var(--surface); transform: translateY(-2px); }
.scale button[aria-pressed="true"] { border-color: var(--brand-deep); background: #E5F8F4; color: var(--brand-ink); }
.scale__dot {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 2px solid currentColor;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--t-14);
}
.scale__lbl {
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.25;
  letter-spacing: 0;
  text-align: center;
  color: inherit;
  max-width: 90px;     /* forces 2-word labels to wrap on a narrow column */
  word-spacing: normal;
}
.scale-anchors { display: none; } /* shown on mobile only */
.scale__ends {
  display: flex; justify-content: space-between;
  margin-top: var(--s-3);
  font-family: var(--font-mono);
  font-size: var(--t-12);
  color: var(--muted);
  letter-spacing: 0.04em;
}

.resp-foot {
  display: flex; justify-content: space-between; align-items: center;
  padding: var(--s-4) var(--s-5);
  background: #FFFFFF;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: var(--t-12);
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* =========================================================================
   MINDSET DIGITAL QUIZ (marketing/lead-gen surface)
   ========================================================================= */
.quiz-hero {
  background: var(--ink);
  color: #FFFFFF;
  padding: clamp(var(--s-8), 7vw, var(--s-10)) 0 var(--s-7);
  position: relative;
  overflow: hidden;
}
.quiz-hero::before {
  content: "";
  position: absolute;
  right: -10%; top: -30%;
  width: 60%; aspect-ratio: 1/1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(111,59,239,0.4), transparent 65%);
}
.quiz-hero h1 { color: #FFFFFF; }
.quiz-hero .eyebrow { color: var(--brand); }
.quiz-card {
  background: #FFFFFF;
  border-radius: var(--r-lg);
  padding: clamp(var(--s-6), 5vw, var(--s-8));
  max-width: 720px;
  margin: -80px auto var(--s-9);
  position: relative;
  z-index: 2;
  box-shadow: var(--shadow-2);
  display: grid;
  gap: var(--s-6);
}
.quiz-card .scale__ends { margin-top: 0; }
.quiz-steps {
  display: flex; gap: var(--s-2);
  justify-content: center;
  margin-bottom: var(--s-3);
}
.quiz-step {
  width: 36px; height: 4px;
  background: var(--surface-2);
  border-radius: var(--r-pill);
}
.quiz-step.is-done { background: var(--brand); }
.quiz-step.is-current { background: var(--ink); }

/* =========================================================================
   ROUND 3 - Respondent welcome/completion, talent drill-down, mobile portal
   ========================================================================= */

/* -- Respondent welcome ---------------------------------------- */
.resp-welcome {
  background: var(--ink);
  color: #FFFFFF;
  padding: clamp(var(--s-7), 6vw, var(--s-9)) 0;
  position: relative;
  overflow: hidden;
}
.resp-welcome::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto auto;
  width: 70%; aspect-ratio: 1/1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(69,210,195,0.28), transparent 65%);
}
.resp-welcome h1 { color: #FFFFFF; font-size: clamp(2rem, 4.5vw, var(--t-72)); max-width: 18ch; }
.resp-welcome .lede { color: rgba(255,255,255,0.7); max-width: 56ch; }

.resp-prep {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r-lg);
  padding: var(--s-6);
  display: grid;
  gap: var(--s-4);
}
.resp-prep__row {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: var(--s-4);
  align-items: flex-start;
}
.resp-prep__icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(69,210,195,0.15);
  color: var(--brand);
  display: grid; place-items: center;
}
.resp-prep__title { font-family: var(--font-display); font-weight: 600; font-size: var(--t-16); color: #FFFFFF; }
.resp-prep__sub { font-size: var(--t-14); color: rgba(255,255,255,0.65); margin-top: 4px; }

/* -- Respondent completion ------------------------------------ */
.resp-done {
  background: var(--surface);
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: var(--s-7);
}
.resp-done__card {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: clamp(var(--s-7), 5vw, var(--s-9));
  max-width: 640px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-2);
  display: grid;
  gap: var(--s-5);
}
.resp-done__check {
  width: 88px; height: 88px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  display: grid; place-items: center;
  margin: 0 auto var(--s-3);
  color: #FFFFFF;
  box-shadow: 0 20px 40px -16px rgba(43,170,157,0.45);
}
.resp-done h1 { font-size: var(--t-48); text-wrap: balance; }
.resp-done__next {
  margin-top: var(--s-5);
  padding: var(--s-5);
  background: var(--surface);
  border-radius: var(--r-sm);
  text-align: left;
  display: grid;
  gap: var(--s-3);
}

/* -- Talent drill-down ---------------------------------------- */
.talent-hero {
  background: var(--ink);
  color: #FFFFFF;
  padding: var(--s-8) 0 var(--s-7);
}
.talent-hero h1 { color: #FFFFFF; }
.talent-hero .eyebrow { color: rgba(255,255,255,0.5); }
.talent-hero__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--s-7);
  align-items: end;
}
@media (max-width: 880px) { .talent-hero__grid { grid-template-columns: 1fr; } }
.talent-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-4);
}
.talent-meta__cell {
  padding: var(--s-4);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r-sm);
}
.talent-meta__cell dt {
  font-family: var(--font-mono);
  font-size: var(--t-12);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.5);
  margin-bottom: 6px;
}
.talent-meta__cell dd {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--t-24);
  color: #FFFFFF;
  margin: 0;
  letter-spacing: -0.02em;
}

.tfilters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  align-items: center;
  padding: var(--s-4) 0;
  border-bottom: 1px solid var(--border);
}
.tfilters__label {
  font-family: var(--font-mono);
  font-size: var(--t-12);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-right: var(--s-3);
}
.chip {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--t-14);
  padding: 6px 14px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border-strong);
  color: var(--ink-2);
  background: #FFFFFF;
  transition: border-color .15s, color .15s, background .15s;
  cursor: pointer;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.is-active { background: var(--ink); color: #FFFFFF; border-color: var(--ink); }

.tcards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--s-4);
  padding-top: var(--s-5);
}
.tcard {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  display: grid;
  gap: var(--s-3);
  transition: border-color .15s, transform .15s;
}
.tcard:hover { border-color: var(--ink); transform: translateY(-2px); }
.tcard__head {
  display: flex;
  gap: var(--s-3);
  align-items: center;
}
.tcard__avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: radial-gradient(120% 120% at 30% 20%, #7AE3D7 0%, #45D2C3 40%, #2BAA9D 100%);
  flex-shrink: 0;
}
.tcard__avatar--purple { background: radial-gradient(120% 120% at 30% 20%, #B69CFF 0%, #8A66F3 45%, #6F3BEF 100%); }
.tcard__name { font-family: var(--font-display); font-weight: 600; font-size: var(--t-16); }
.tcard__role { font-size: var(--t-12); color: var(--muted); font-family: var(--font-mono); letter-spacing: 0.04em; }
.tcard__scores {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-3);
  padding-top: var(--s-3);
  border-top: 1px solid var(--border);
}
.tcard__score-label { font-family: var(--font-mono); font-size: var(--t-12); color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.tcard__score-num { font-family: var(--font-display); font-weight: 700; font-size: var(--t-18); color: var(--ink); letter-spacing: -0.02em; }
.tcard__score-num em { font-style: normal; color: var(--muted); font-size: 12px; font-weight: 400; }

/* =========================================================================
   PORTAL MOBILE - hamburger drawer + responsive grids
   ========================================================================= */
.portal-mobile-bar {
  display: none;
  background: #FFFFFF;
  border-bottom: 1px solid var(--border);
  padding: var(--s-3) var(--s-5);
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  position: sticky;
  top: 0;
  z-index: 30;
}
.portal-mobile-bar__menu {
  width: 40px; height: 40px;
  border: 1px solid var(--border);
  background: #FFFFFF;
  border-radius: var(--r-sm);
  display: grid; place-items: center;
  cursor: pointer;
}
.portal-mobile-bar__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--t-16);
  flex: 1;
  text-align: center;
}
.portal-mobile-bar__user {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: radial-gradient(120% 120% at 30% 20%, #7AE3D7 0%, #45D2C3 40%, #2BAA9D 100%);
  display: grid; place-items: center;
  color: #0F4A44;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--t-12);
}

@media (max-width: 880px) {
  .portal-mobile-bar { display: flex; }
  .portal-shell { grid-template-columns: 1fr; }
  .portal-side {
    display: none;
    position: fixed;
    inset: 0 30% 0 0;
    z-index: 50;
    border-right: 1px solid var(--border);
    box-shadow: var(--shadow-2);
    overflow-y: auto;
  }
  .portal-side.is-open { display: flex; }
  .portal-side::after {
    content: "";
    position: fixed;
    inset: 0 0 0 70%;
    background: rgba(15,23,42,0.4);
    z-index: -1;
  }
  .portal-main { padding: var(--s-5); gap: var(--s-5); }
  .portal-topbar h1 { font-size: var(--t-24); }
  .ninebox { aspect-ratio: auto; grid-template-columns: 40px repeat(3, 1fr); }
  .ninebox__cell { min-height: 70px; padding: var(--s-2); }
  .ninebox__cell strong { font-size: var(--t-18); }
  .ninebox__cell span { font-size: 10px; }
  .ninebox__axis { font-size: 10px; }
}

/* Marketing header mobile — bottom-aligned overlay nav, thumb-reachable */
@media (max-width: 720px) {
  /* backdrop-filter on .site-header creates a containing block for fixed
     descendants, which would trap the overlay nav inside the header box.
     Drop it on mobile (we don't need the glass effect on phones anyway). */
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: #FFFFFF; }
  .site-header__inner { gap: var(--s-3); }

  .nav {
    display: flex;
    position: fixed;
    inset: 0;
    background: #FFFFFF;
    flex-direction: column;
    /* push everything toward the bottom (thumb zone) */
    justify-content: flex-end;
    padding: 88px var(--s-5) calc(env(safe-area-inset-bottom, 0px) + var(--s-6));
    gap: var(--s-5);
    z-index: 99;
    overflow-y: auto;
    overscroll-behavior: contain;
    visibility: hidden;
    opacity: 0;
    transition: opacity 140ms ease, visibility 0s linear 140ms;
  }
  .nav.is-open {
    visibility: visible;
    opacity: 1;
    transition: opacity 140ms ease;
  }

  /* Decorative accent stripe inside the overlay (real logo lives in header) */
  .nav::after {
    content: "";
    position: absolute;
    top: 68px;
    left: var(--s-5);
    right: var(--s-5);
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--brand) 0%, var(--brand) 50%, var(--cta) 50%, var(--cta) 100%);
    opacity: 0.9;
  }

  .nav .nav__group {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  /* Primary nav group: medium taps, divided */
  .nav .nav__group:first-child a {
    font-family: var(--font-display, "Albert Sans", sans-serif);
    font-size: 22px;
    font-weight: 600;
    color: var(--ink);
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    min-height: 52px;
    display: flex;
    align-items: center;
    letter-spacing: -0.01em;
  }
  .nav .nav__group:first-child a:first-child { border-top: 1px solid var(--border); }
  .nav .nav__group:first-child a[aria-current="page"]::after { display: none; }
  .nav .nav__group:first-child a[aria-current="page"] { color: var(--brand, var(--ink)); }

  /* Secondary group (lang + portal + CTA): normalize widths, CTA first, lang last */
  .nav .nav__group:nth-child(2) {
    padding-top: var(--s-4);
    gap: var(--s-3);
    align-items: stretch;
  }
  /* Reorder: CTA on top of the bottom group (most important), then portal, then lang */
  .nav .nav__group:nth-child(2) .btn--cta { order: 1; }
  .nav .nav__group:nth-child(2) .btn--ghost { order: 2; }
  .nav .lang {
    order: 3;
    align-self: center;
    margin-top: var(--s-3);
  }
  .nav .btn,
  .nav .btn--ghost,
  .nav .btn--cta {
    font-size: 16px;
    padding: 14px 20px;
    min-height: 52px;
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
  }
  /* belt-and-suspenders on CTA text colour (some browsers/visited states leak) */
  .nav .btn--cta,
  .nav .btn--cta:link,
  .nav .btn--cta:visited,
  .nav .btn--cta:hover {
    color: #FFFFFF;
  }

  /* Stagger: faster — total reveal under 280ms */
  .nav .nav__group > * {
    transform: translateY(8px);
    opacity: 0;
  }
  .nav.is-open .nav__group > * {
    animation: nav-item-in 220ms cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
  }
  .nav.is-open .nav__group:first-child > :nth-child(1) { animation-delay:  20ms; }
  .nav.is-open .nav__group:first-child > :nth-child(2) { animation-delay:  50ms; }
  .nav.is-open .nav__group:first-child > :nth-child(3) { animation-delay:  80ms; }
  .nav.is-open .nav__group:first-child > :nth-child(4) { animation-delay: 110ms; }
  .nav.is-open .nav__group:first-child > :nth-child(5) { animation-delay: 140ms; }
  .nav.is-open .nav__group:nth-child(2) > :nth-child(1) { animation-delay: 170ms; }
  .nav.is-open .nav__group:nth-child(2) > :nth-child(2) { animation-delay: 200ms; }
  .nav.is-open .nav__group:nth-child(2) > :nth-child(3) { animation-delay: 230ms; }

  /* Toggle button — SVG hamburger fades out, CSS-drawn X fades in */
  .nav-toggle {
    display: grid;
    place-items: center;
    width: 44px; height: 44px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    margin-left: auto;
    cursor: pointer;
    position: relative;
    z-index: 100;
    transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
  }
  .nav-toggle svg { transition: opacity 140ms ease; }
  .nav-toggle::before,
  .nav-toggle::after {
    content: "";
    position: absolute;
    width: 18px; height: 2px;
    background: currentColor;
    border-radius: 1px;
    top: 50%; left: 50%;
    opacity: 0;
    transform: translate(-50%, -50%) rotate(0);
    transition: transform 180ms cubic-bezier(.2,.7,.2,1), opacity 140ms ease;
    pointer-events: none;
  }
  body.nav-open .nav-toggle svg { opacity: 0; }
  body.nav-open .nav-toggle::before {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(45deg);
  }
  body.nav-open .nav-toggle::after {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(-45deg);
  }
  /* When the menu is open, float the WHOLE header above the nav so the
     logo + toggle stay in their natural positions. Same look as the closed
     header — only the icon flips to ×. */
  body.nav-open .site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
    background: #FFFFFF;
  }
  body.nav-open .nav-toggle {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
  }
  /* Bulletproof scroll lock (iOS Safari included). JS saves --scroll-y. */
  body.nav-open {
    position: fixed;
    top: var(--scroll-y, 0);
    left: 0;
    width: 100%;
    overflow: hidden;
    touch-action: none;
  }
}

@keyframes nav-item-in {
  to { transform: translateY(0); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .nav { transition: none; }
  .nav.is-open .nav__group > * { animation: none; transform: none; opacity: 1; }
  .nav-toggle svg { transition: none; }
}

@media (min-width: 721px) { .nav-toggle { display: none; } }

/* =========================================================================
   DESIGN SYSTEM - Mobile guidance block
   ========================================================================= */
.bp-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-3);
}
@media (max-width: 720px) { .bp-bar { grid-template-columns: 1fr 1fr; } }
.bp {
  padding: var(--s-5);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  display: grid;
  gap: var(--s-3);
  background: var(--surface);
}
.bp__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--t-32);
  letter-spacing: -0.03em;
  color: var(--ink);
}
.bp__num em { font-style: normal; color: var(--muted); font-size: 14px; font-weight: 500; margin-left: 6px; }
.bp__name {
  font-family: var(--font-mono);
  font-size: var(--t-12);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-deep);
}
.bp__body { font-size: var(--t-14); color: var(--ink-2); }

.do-dont {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-5);
}
@media (max-width: 720px) { .do-dont { grid-template-columns: 1fr; } }
.dd {
  padding: var(--s-5);
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: #FFFFFF;
}
.dd__label {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-family: var(--font-mono);
  font-size: var(--t-12);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  margin-bottom: var(--s-3);
}
.dd--do .dd__label { background: #D5F4EF; color: var(--brand-ink); }
.dd--dont .dd__label { background: #FEE8EE; color: #8B1F47; }
.dd__title { font-family: var(--font-display); font-weight: 600; font-size: var(--t-18); margin-bottom: var(--s-2); }
.dd__body { font-size: var(--t-14); color: var(--ink-2); }

/* Phone-frame demo */
.phone-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
}
@media (max-width: 880px) { .phone-row { grid-template-columns: 1fr; } }
.phone {
  background: var(--ink);
  border-radius: 32px;
  padding: 8px;
  box-shadow: var(--shadow-2);
  aspect-ratio: 320/620;
  max-width: 280px;
  margin-inline: auto;
}
.phone__screen {
  background: #FFFFFF;
  border-radius: 26px;
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
}
.phone__cap {
  font-family: var(--font-mono);
  font-size: var(--t-12);
  color: var(--muted);
  text-align: center;
  margin-top: var(--s-3);
  letter-spacing: 0.04em;
}
.phone__hdr {
  display: flex; justify-content: space-between; align-items: center;
  padding: var(--s-4) var(--s-4);
  border-bottom: 1px solid var(--border);
  font-size: var(--t-14);
}
.phone__hdr .logo__mark { width: 24px; height: 24px; font-size: 14px; }
.phone__body { padding: var(--s-4); display: grid; gap: var(--s-3); }
.phone__stub { background: var(--surface); border-radius: var(--r-sm); height: 14px; }
.phone__stub--tall { height: 80px; }
.phone__stub--cta { background: var(--cta); height: 36px; border-radius: var(--r-pill); }
.phone__stub--btn { background: var(--ink); height: 32px; border-radius: var(--r-pill); }
.phone__bottom-cta {
  position: absolute;
  inset: auto var(--s-3) var(--s-3) var(--s-3);
  background: var(--ink);
  border-radius: var(--r-pill);
  padding: 8px 10px 8px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--t-12);
  color: #FFFFFF;
}
.phone__bottom-cta span:last-child {
  background: var(--cta);
  padding: 6px 12px;
  border-radius: var(--r-pill);
  font-size: 11px;
}

/* =========================================================================
   ROUND 4 - More portal patterns (empty state, tabs, segmented, charts)
   ========================================================================= */
.empty {
  text-align: center;
  padding: var(--s-9) var(--s-5);
  display: grid;
  gap: var(--s-4);
  place-items: center;
}
.empty__icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--surface);
  display: grid; place-items: center;
  color: var(--muted);
}
.empty__title { font-family: var(--font-display); font-weight: 600; font-size: var(--t-24); }
.empty__body { color: var(--ink-2); max-width: 36ch; }

.tabs {
  display: inline-flex;
  background: var(--surface);
  padding: 4px;
  border-radius: var(--r-pill);
  gap: 2px;
  font-family: var(--font-display);
  font-weight: 500;
}
.tabs button {
  border: 0; background: transparent;
  padding: 8px 18px;
  border-radius: var(--r-pill);
  color: var(--ink-2);
  font-size: var(--t-14);
  cursor: pointer;
  transition: background .15s, color .15s;
}
.tabs button:hover { color: var(--ink); }
.tabs button.is-active {
  background: #FFFFFF;
  color: var(--ink);
  box-shadow: var(--shadow-1);
  font-weight: 600;
}
.tabs button .count {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--t-12);
  background: var(--surface-2);
  color: var(--muted);
  padding: 1px 8px;
  border-radius: var(--r-pill);
  margin-left: 6px;
}
.tabs button.is-active .count { background: var(--ink); color: #FFFFFF; }

/* Report card grid */
.report-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--s-4);
}
.rcard {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  display: grid;
  gap: var(--s-3);
  transition: border-color .15s, transform .15s;
}
.rcard:hover { border-color: var(--ink); transform: translateY(-2px); }
.rcard__hd {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: var(--s-3);
}
.rcard__name { font-family: var(--font-display); font-weight: 600; font-size: var(--t-18); letter-spacing: -0.01em; }
.rcard__role { font-size: var(--t-12); color: var(--muted); font-family: var(--font-mono); letter-spacing: 0.04em; }
.rcard__avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: radial-gradient(120% 120% at 30% 20%, #7AE3D7 0%, #45D2C3 40%, #2BAA9D 100%);
  flex-shrink: 0;
}
.rcard__avatar--purple { background: radial-gradient(120% 120% at 30% 20%, #B69CFF 0%, #6F3BEF 100%); }
.rcard__meta {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3);
  padding-top: var(--s-3); border-top: 1px solid var(--border);
  font-size: var(--t-12); color: var(--muted); font-family: var(--font-mono); letter-spacing: 0.04em;
}
.rcard__meta strong { color: var(--ink); font-family: var(--font-display); font-weight: 600; display: block; font-size: var(--t-14); margin-top: 2px; }
.rcard__tag {
  display: inline-flex;
  font-family: var(--font-mono);
  font-size: var(--t-12);
  padding: 2px 8px;
  border-radius: var(--r-pill);
  background: var(--surface);
  color: var(--ink-2);
  letter-spacing: 0.04em;
}

/* Heatmap (climate survey) */
.heatmap {
  display: grid;
  grid-template-columns: 180px repeat(5, 1fr);
  gap: 4px;
}
.heatmap__row { display: contents; }
.heatmap__label {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--t-14);
  color: var(--ink-2);
  padding: var(--s-3) var(--s-4);
  display: flex; align-items: center;
}
.heatmap__hd {
  background: transparent;
  font-family: var(--font-mono);
  font-size: var(--t-12);
  color: var(--muted);
  text-align: center;
  padding: var(--s-3) 0;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.heatmap__cell {
  border-radius: var(--r-sm);
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  min-height: 56px;
  font-size: var(--t-14);
}
.heatmap__cell--1 { background: #FEE8EE; color: #8B1F47; }
.heatmap__cell--2 { background: #FFE0CC; color: #8C3D0E; }
.heatmap__cell--3 { background: #FFF2D6; color: #7A5300; }
.heatmap__cell--4 { background: #DBEFCB; color: #2F5F1A; }
.heatmap__cell--5 { background: #D5F4EF; color: var(--brand-ink); }

/* Trilhas / track card */
.track {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  display: grid;
  gap: var(--s-4);
  position: relative;
  overflow: hidden;
  transition: border-color .15s, transform .15s;
}
.track:hover { border-color: var(--ink); transform: translateY(-2px); }
.track__cover {
  aspect-ratio: 16/9;
  border-radius: var(--r-sm);
  background:
    repeating-linear-gradient(135deg,
      rgba(255,255,255,0.5) 0 2px,
      transparent 2px 14px),
    radial-gradient(120% 120% at 30% 20%, #7AE3D7 0%, #45D2C3 40%, #2BAA9D 100%);
  position: relative;
}
.track__cover--purple {
  background:
    repeating-linear-gradient(135deg,
      rgba(255,255,255,0.5) 0 2px,
      transparent 2px 14px),
    radial-gradient(120% 120% at 30% 20%, #B69CFF 0%, #6F3BEF 100%);
}
.track__cover--ink {
  background:
    repeating-linear-gradient(135deg,
      rgba(255,255,255,0.04) 0 2px,
      transparent 2px 14px),
    radial-gradient(120% 120% at 30% 20%, #3A4452 0%, #0E1420 100%);
}
.track__tag {
  position: absolute;
  inset: var(--s-3) var(--s-3) auto auto;
  background: rgba(255,255,255,0.92);
  font-family: var(--font-mono);
  font-size: var(--t-12);
  padding: 2px 8px;
  border-radius: var(--r-pill);
  color: var(--ink);
}
.track__title { font-family: var(--font-display); font-weight: 600; font-size: var(--t-18); letter-spacing: -0.01em; }
.track__meta {
  font-family: var(--font-mono); font-size: var(--t-12); color: var(--muted);
  letter-spacing: 0.04em;
}
.track__progress { height: 6px; background: var(--surface); border-radius: var(--r-pill); overflow: hidden; }
.track__progress > span { display: block; height: 100%; background: var(--brand); }

/* Integration card */
.intg {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  display: grid;
  gap: var(--s-3);
  position: relative;
}
.intg__head { display: flex; gap: var(--s-3); align-items: center; }
.intg__logo {
  width: 44px; height: 44px;
  border-radius: var(--r-sm);
  background: var(--surface);
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--t-18);
  color: var(--ink);
}
.intg__name { font-family: var(--font-display); font-weight: 600; font-size: var(--t-16); }
.intg__body { font-size: var(--t-14); color: var(--ink-2); }
.intg__foot {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: var(--s-3); border-top: 1px solid var(--border);
  font-family: var(--font-mono); font-size: var(--t-12);
}

/* Dark CTA strip inside panels */
.strip {
  background: var(--ink);
  color: #FFFFFF;
  padding: var(--s-5);
  border-radius: var(--r-sm);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-4);
  flex-wrap: wrap;
}
.strip h4 { color: #FFFFFF; font-size: var(--t-18); }
.strip p { color: rgba(255,255,255,0.65); font-size: var(--t-14); }

/* DS surface tag (marketing vs portal callout) */
.surface-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-family: var(--font-mono);
  font-size: var(--t-12);
  padding: 4px 10px 4px 8px;
  border-radius: var(--r-pill);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.surface-tag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; }
.surface-tag--marketing { background: rgba(43,170,157,0.12); color: var(--brand-deep); }
.surface-tag--marketing::before { background: var(--brand); }
.surface-tag--portal { background: rgba(111,59,239,0.1); color: var(--hrtech); }
.surface-tag--portal::before { background: var(--hrtech); }

/* Surface comparison cards */
.surfaces {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-5);
}
@media (max-width: 720px) { .surfaces { grid-template-columns: 1fr; } }
.surf {
  padding: var(--s-6);
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  display: grid;
  gap: var(--s-4);
}
.surf--marketing { background: var(--bg); border-left: 4px solid var(--brand); }
.surf--portal { background: var(--surface); border-left: 4px solid var(--hrtech); }
.surf__title { font-family: var(--font-display); font-weight: 600; font-size: var(--t-24); }
.surf__list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-2); }
.surf__list li { font-size: var(--t-14); color: var(--ink-2); padding-left: var(--s-4); position: relative; }
.surf__list li::before { content: "→"; position: absolute; left: 0; color: var(--brand-deep); font-family: var(--font-mono); }

