/* =========================================================================
   Data Fixers — Editorial minimalist design
   Typography: Fraunces (display serif) + Inter (body) + JetBrains Mono (labels)
   Palette: warm paper / forest accent / soft charcoal
   ========================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght,SOFT@0,9..144,300..800,0..100;1,9..144,300..800,0..100&family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* ----------------- tokens ----------------- */
:root {
  /* light (default) — aligned with logo: near-white paper + mint/teal + ink black */
  --paper:        #fbfbfa;
  --paper-alt:    #eff4f3;
  --ink:          #141312;
  --ink-soft:     #3a3836;
  --ink-mute:     #6a6864;
  --ink-faint:    #a19e98;
  --rule:         #1413121a;
  --rule-strong:  #14131233;
  --card:         #ffffff;
  --accent:       #2a7975;   /* readable teal derived from logo mint */
  --accent-soft:  #b4d7d1;   /* pale mint from the logo itself (highlight bar) */
  --accent-ink:   #ffffff;
  --hot:          #b33a2a;   /* editorial red for NEW */

  --serif: 'Fraunces', 'Times New Roman', serif;
  --sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  --mono:  'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --container: 1200px;
  --radius: 2px;   /* editorial: almost square */
  --ease: cubic-bezier(.2,.7,.2,1);
}

html[data-theme='dark'] {
  --paper:        #0c1211;
  --paper-alt:    #121a18;
  --ink:          #edf4f1;
  --ink-soft:     #ccd8d4;
  --ink-mute:     #9aa5a1;
  --ink-faint:    #626b68;
  --rule:         #edf4f11f;
  --rule-strong:  #edf4f140;
  --card:         #141c1a;
  --accent:       #9dd3cc;
  --accent-soft:  #3f7a75;
  --accent-ink:   #0c1211;
  --hot:          #e57158;
}

/* ----------------- reset ----------------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  font-feature-settings: 'ss01','cv11';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, iframe { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; background: none; border: 0; color: inherit; cursor: pointer; }

/* ----------------- layout ----------------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.75rem;
}
@media (max-width: 600px) { .container { padding: 0 1.1rem; } }

.teal { color: var(--accent); font-weight: 500; }

/* ----------------- navigation ----------------- */
.top-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 85%, transparent);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--rule);
}
.top-nav .nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .95rem 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex: 0 0 auto;
  line-height: 0;
}
.brand-logo {
  height: 44px;
  width: auto;
  display: block;
  transition: transform .3s var(--ease);
}
.brand:hover .brand-logo { transform: translateY(-1px); }
@media (max-width: 880px) {
  .brand-logo { height: 36px; }
}
.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.75rem;
  flex: 1;
  justify-content: center;
}
.nav-links a {
  position: relative;
  text-decoration: none;
  color: var(--ink-soft);
  font-size: .86rem;
  font-weight: 500;
  letter-spacing: .04em;
  padding: .25rem 0;
  transition: color .25s var(--ease);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); }

/* pill links (L-AI, Dashboards) */
.nav-pill {
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  padding: .35rem .85rem !important;
  font-size: .8rem !important;
}
.nav-pill::after { display: none !important; }
.nav-pill:hover { background: var(--ink); color: var(--paper) !important; border-color: var(--ink); }

/* language switcher */
.nav-lang-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .4rem .85rem;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  color: var(--ink);
  text-decoration: none;
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .02em;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
  white-space: nowrap;
}
.nav-lang-btn:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.nav-lang-btn:hover .teal { color: var(--paper); }

/* theme toggle */
.nav-theme-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: .85rem;
  margin-right: .4rem;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.nav-theme-btn:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.nav-theme-btn svg { display: block; }
.nav-theme-btn .icon-sun { display: none; }
.nav-theme-btn .icon-moon { display: block; }
html[data-theme='dark'] .nav-theme-btn .icon-sun { display: block; }
html[data-theme='dark'] .nav-theme-btn .icon-moon { display: none; }

/* hamburger */
.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
}
.nav-toggle .hamburger { position: relative; width: 16px; height: 10px; display: inline-block; }
.nav-toggle .bar { position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; }
.nav-toggle .bar:nth-child(1) { top: 0; }
.nav-toggle .bar:nth-child(2) { top: 4.5px; }
.nav-toggle .bar:nth-child(3) { top: 9px; }

@media (max-width: 880px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: fixed;
    left: 1rem; right: 1rem; top: 64px;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: .25rem;
    padding: 1rem;
    background: var(--paper);
    border: 1px solid var(--rule-strong);
    box-shadow: 0 30px 60px -30px rgba(0,0,0,.25);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { border-bottom: 1px solid var(--rule); }
  .nav-links li:last-child { border-bottom: 0; }
  .nav-links a { display: block; padding: .85rem .25rem; font-size: .95rem; }
  .nav-links a::after { display: none; }
  .nav-pill { display: inline-block; padding: .4rem .85rem !important; }
}

/* ----------------- hero ----------------- */
.hero-section {
  padding: clamp(4rem, 12vh, 9rem) 0 clamp(3rem, 8vh, 6rem);
  background: var(--paper);
  position: relative;
}
.hero-section::before { content: none; }

.hero-logo {
  display: block;
  margin: 0 auto clamp(1.75rem, 4vh, 2.5rem);
  width: clamp(240px, 38vw, 460px);
  height: auto;
}
.hero-card {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
  padding: 0 .5rem;
  border: none;
  background: none;
  box-shadow: none;
  animation: none !important;
}
.hero-section .tagline {
  font-family: var(--serif);
  font-weight: 300;
  font-style: normal;
  font-variation-settings: 'opsz' 144, 'SOFT' 50;
  font-size: clamp(1.6rem, 3.2vw, 2.55rem);
  line-height: 1.25;
  letter-spacing: -.015em;
  color: var(--ink);
  max-width: 22ch;
  margin: 0 auto;
}
.hero-section .site-name[hidden] { display: none; }
.hero-section .tagline-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
  transition: color .25s var(--ease), border-color .25s var(--ease);
}
.hero-section .tagline-link:hover {
  color: var(--accent);
}
.hero-section .highlight {
  font-style: normal;
  color: var(--ink);
  font-weight: 500;
  padding: 0 .18em;
  background-image: linear-gradient(
    to bottom,
    transparent 0,
    transparent 52%,
    var(--accent-soft) 52%,
    var(--accent-soft) 92%,
    transparent 92%
  );
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.affiliations {
  display: flex;
  justify-content: center;
  margin-top: clamp(2.5rem, 6vh, 4rem);
  padding-top: clamp(1.5rem, 4vh, 2.5rem);
  border-top: 1px solid var(--rule);
  max-width: 620px;
  margin-left: auto; margin-right: auto;
}
.aff-badge {
  display: inline-flex;
  align-items: baseline;
  gap: .6rem;
  font-size: .78rem;
  line-height: 1.55;
  color: var(--ink-soft);
  letter-spacing: .01em;
  text-align: center;
}
.aff-badge .aff-emoji {
  font-size: .9rem;
  position: relative;
  top: 1px;
}
.aff-badge strong { font-weight: 500; color: var(--ink); }
.aff-badge a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--rule-strong);
  transition: border-color .25s var(--ease);
}
.aff-badge a:hover { border-color: var(--accent); color: var(--accent); }

/* kill the old rainbow animation */
@keyframes df-hue { to { } }
@keyframes df-pulse { to { } }

/* ----------------- section chrome ----------------- */
section { padding: clamp(4rem, 10vh, 7rem) 0; }

section h2,
section .section-title,
.transparency-section h2,
.stories-section h2,
.dashboards-section h2,
.media-mentions-section h2,
.about-section h2,
.current-projects-section h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-variation-settings: 'opsz' 144;
  font-size: clamp(1.8rem, 3.8vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -.02em;
  color: var(--ink);
  text-align: left !important;
  margin: 0 0 2.25rem 0 !important;
  padding-top: 1.5rem;
  position: relative;
}
section h2::before,
section .section-title::before {
  content: none;
}

section h2 .highlight,
.section-title .highlight {
  font-style: italic;
  color: var(--accent);
}

/* rule under heading */
section h2::after,
section .section-title::after {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  background: var(--rule);
  margin-top: 1.25rem;
}

.section-separator {
  display: none; /* hairline borders on sections handle separation now */
}

/* ----------------- buttons ----------------- */
.btn-primary,
.btn-secondary,
.dashboard-btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--sans);
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .02em;
  text-decoration: none;
  padding: .7rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--ink);
  color: var(--paper);
}
.btn-primary:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-secondary:hover,
.dashboard-btn:hover { background: var(--ink); color: var(--paper); }

.btn-primary::after,
.btn-secondary::after,
.dashboard-btn::after {
  content: "→";
  transition: transform .25s var(--ease);
}
.btn-primary:hover::after,
.btn-secondary:hover::after,
.dashboard-btn:hover::after { transform: translateX(3px); }

.btn-animated-border { animation: none !important; }

.badge-new {
  display: inline-block;
  vertical-align: middle;
  margin-left: .5rem;
  font-family: var(--mono);
  font-size: .62rem;
  font-weight: 500;
  letter-spacing: .14em;
  color: var(--hot);
  padding: .15rem .45rem;
  border: 1px solid var(--hot);
  border-radius: 2px;
  background: transparent;
  text-transform: uppercase;
}

/* ----------------- current projects (01) ----------------- */
.current-projects-section {
  background: var(--paper) !important;
  padding: clamp(4rem, 10vh, 7rem) 0 !important;
  border-top: 1px solid var(--rule);
}
.current-projects-section .dashboards-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--rule);
}
.current-projects-section .dashboard-item {
  background: transparent !important;
  border: 0;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  border-radius: 0;
  box-shadow: none;
  padding: 2rem 1.75rem !important;
  text-align: left !important;
  display: flex !important;
  flex-direction: column;
  justify-content: space-between;
  min-height: 280px;
  transition: background .3s var(--ease);
}
.current-projects-section .dashboard-item:nth-child(4n) { border-right: 0; }
.current-projects-section .dashboard-item:hover { background: var(--paper-alt) !important; }

.dashboard-item .dash-icon {
  font-size: 1.35rem !important;
  color: var(--ink-mute) !important;
  margin-bottom: 1.25rem !important;
}
.dashboard-item h3 {
  font-family: var(--serif) !important;
  font-weight: 400 !important;
  font-size: 1.4rem !important;
  line-height: 1.2;
  letter-spacing: -.015em;
  color: var(--ink) !important;
  margin: 0 0 .65rem 0 !important;
}
.dashboard-item p {
  font-size: .88rem !important;
  line-height: 1.55;
  color: var(--ink-mute) !important;
  margin-bottom: 1.5rem !important;
}
.dashboard-item .dashboard-btn {
  margin-top: auto;
  align-self: flex-start;
  border: 0;
  padding: 0;
  background: transparent !important;
  color: var(--ink) !important;
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
  padding-bottom: 2px !important;
}
.dashboard-item .dashboard-btn:hover { color: var(--accent) !important; border-color: var(--accent); background: transparent !important; }

@media (max-width: 1024px) {
  .current-projects-section .dashboards-grid { grid-template-columns: repeat(2, 1fr); }
  .current-projects-section .dashboard-item:nth-child(4n) { border-right: 1px solid var(--rule); }
  .current-projects-section .dashboard-item:nth-child(2n) { border-right: 0; }
}
@media (max-width: 640px) {
  .current-projects-section .dashboards-grid { grid-template-columns: 1fr; }
  .current-projects-section .dashboard-item { border-right: 0 !important; min-height: auto; }
}

/* ----------------- transparency videos (02) ----------------- */
.transparency-section {
  background: var(--paper-alt);
  padding: clamp(4rem, 10vh, 7rem) 0 !important;
  border-top: 1px solid var(--rule);
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}
.video-card {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.video-card:hover { border-color: var(--rule-strong); transform: translateY(-2px); }
.video-card iframe { width: 100%; aspect-ratio: 16/9; border: 0; }
.video-card .video-title {
  display: block;
  padding: 1rem 1.1rem 1.15rem;
  font-size: .88rem;
  font-weight: 500;
  line-height: 1.45;
  color: var(--ink);
  border-top: 1px solid var(--rule);
}

/* ----------------- stories grid (03 – Reportagens) ----------------- */
.section-title {
  margin-top: clamp(4rem, 8vh, 5.5rem) !important;
}
.stories-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 2.25rem 1.75rem !important;
  margin-top: 1.25rem !important;
}
@media (max-width: 960px) {
  .stories-grid { grid-template-columns: repeat(2, minmax(0,1fr)) !important; }
}
@media (max-width: 560px) {
  .stories-grid { grid-template-columns: 1fr !important; gap: 2.5rem !important; }
}

.stories-grid .story-card {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  overflow: visible !important;
  display: flex;
  flex-direction: column;
  gap: .9rem;
}

/* image first — editorial crop */
.stories-grid .story-card .story-image {
  order: 1;
  overflow: hidden;
  background: var(--paper-alt);
  aspect-ratio: 4/3;
}
.stories-grid .story-card .story-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin: 0 !important;
  border-radius: 0 !important;
  transition: transform .8s var(--ease), filter .5s var(--ease);
  filter: saturate(.95) contrast(1.02);
}
.stories-grid .story-card:hover .story-image img { transform: scale(1.04); }

/* outlet tags — small caps, inline */
.stories-grid .story-card .story-tags {
  order: 2;
  display: flex !important;
  flex-wrap: wrap;
  gap: .4rem .9rem;
  margin: 0 !important;
  padding: 0 !important;
}
.stories-grid .story-card .story-tags span {
  background: transparent !important;
  color: var(--ink-mute) !important;
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .16em;
  font-weight: 500;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 0 !important;
  text-transform: uppercase;
  position: relative;
}
.stories-grid .story-card .story-tags span + span::before {
  content: "·";
  margin-right: .9rem;
  margin-left: -.5rem;
  color: var(--ink-faint);
}

.stories-grid .story-card h3 {
  order: 3;
  font-family: var(--serif) !important;
  font-weight: 400 !important;
  font-size: 1.35rem !important;
  line-height: 1.2;
  letter-spacing: -.015em;
  color: var(--ink) !important;
  padding: 0 !important;
  margin: 0 !important;
}

.stories-grid .story-card p {
  order: 4;
  display: block !important;
  font-size: .9rem !important;
  line-height: 1.6;
  color: var(--ink-mute) !important;
  margin: 0 !important;
  padding: 0 !important;
}

.stories-grid .story-card .story-links {
  order: 5;
  padding: 0 !important;
  margin-top: .35rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .5rem;
}
.stories-grid .story-card .btn-secondary {
  background: transparent !important;
  color: var(--ink) !important;
  border: 0 !important;
  border-bottom: 1px solid var(--ink) !important;
  border-radius: 0 !important;
  padding: 0 0 2px 0 !important;
  font-size: .82rem;
  letter-spacing: .02em;
  display: inline-flex !important;
  align-items: center;
  gap: .4rem;
  margin: 0 !important;
  filter: none !important;
}
.stories-grid .story-card .btn-secondary::after { content: "→"; transition: transform .25s var(--ease); }
.stories-grid .story-card .btn-secondary:hover { color: var(--accent) !important; border-color: var(--accent) !important; background: transparent !important; }
.stories-grid .story-card .btn-secondary:hover::after { transform: translateX(3px); }

/* toggle stories button */
.toggle-stories-btn {
  display: inline-flex !important;
  align-items: center;
  gap: .55rem;
  margin: 3rem auto 0 !important;
  width: fit-content !important;
  background: transparent !important;
  color: var(--ink) !important;
  border: 1px solid var(--ink) !important;
  border-radius: 999px !important;
  padding: .7rem 1.4rem !important;
  font-size: .82rem !important;
  font-weight: 500 !important;
  letter-spacing: .02em;
  cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease);
}
.toggle-stories-btn:hover { background: var(--ink) !important; color: var(--paper) !important; }
.toggle-stories-btn::after {
  content: attr(data-more) "  ↓";
  font: inherit;
}
#toggle-stories:checked ~ .stories-grid + .toggle-stories-btn::after,
#toggle-stories:checked + h2 + .stories-grid + .toggle-stories-btn::after {
  content: attr(data-less) "  ↑";
}

/* hide legacy radio slider */
.stories-slider { display: none !important; }

/* ----------------- dashboards (04) ----------------- */
.dashboards-section {
  background: var(--paper);
  padding: clamp(4rem, 10vh, 7rem) 0 !important;
  border-top: 1px solid var(--rule);
}
.dashboards-note {
  max-width: 760px;
  margin: -1rem 0 2rem !important;
  font-size: 1rem;
  color: var(--ink-mute);
  line-height: 1.6;
  text-align: left !important;
}
.dashboards-section .dashboards-grid,
.dashboards-grid.dashboards-grid-expanded {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0,1fr)) !important;
  gap: 0 !important;
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}
.dashboards-section .dashboard-item {
  background: transparent !important;
  border: 0 !important;
  border-right: 1px solid var(--rule) !important;
  border-bottom: 1px solid var(--rule) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 2rem 1.75rem !important;
  text-align: left !important;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: background .3s var(--ease);
}
.dashboards-section .dashboard-item:hover { background: var(--paper-alt) !important; }
@media (max-width: 1024px) {
  .dashboards-section .dashboards-grid,
  .dashboards-grid.dashboards-grid-expanded { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 640px) {
  .dashboards-section .dashboards-grid,
  .dashboards-grid.dashboards-grid-expanded { grid-template-columns: 1fr !important; }
}

/* ----------------- back to top ----------------- */
.back-to-top {
  display: inline-flex;
  margin: 2.5rem 0 0 !important;
  text-align: left;
  color: var(--ink-mute) !important;
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none !important;
  border-bottom: 1px solid var(--rule-strong);
  padding-bottom: 2px;
  transition: color .25s var(--ease), border-color .25s var(--ease);
}
.back-to-top:hover { color: var(--ink) !important; border-color: var(--ink); }

/* ----------------- media mentions (05) ----------------- */
.media-mentions-section {
  background: var(--paper-alt);
  padding: clamp(4rem, 10vh, 7rem) 0 !important;
  border-top: 1px solid var(--rule);
}
.mentions-grid {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 0 !important;
  border-top: 1px solid var(--rule);
}
.mention-item {
  background: transparent !important;
  border: 0 !important;
  border-bottom: 1px solid var(--rule) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 1.5rem 0 !important;
  display: grid !important;
  grid-template-columns: minmax(180px, 240px) 1fr auto;
  column-gap: 2rem;
  row-gap: .35rem;
  align-items: baseline;
  transition: padding-left .3s var(--ease);
}
.mention-item:hover { padding-left: .75rem !important; }
.mention-tag {
  font-family: var(--mono) !important;
  font-weight: 500 !important;
  font-size: .68rem !important;
  letter-spacing: .14em;
  line-height: 1.45;
  color: var(--ink-mute) !important;
  text-transform: uppercase;
  word-break: break-word;
  overflow-wrap: break-word;
  hyphens: none;
}
.mention-item p {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.15rem !important;
  line-height: 1.35;
  letter-spacing: -.01em;
  color: var(--ink) !important;
  margin: 0;
}
.mention-link {
  color: var(--ink) !important;
  text-decoration: none !important;
  font-size: .78rem !important;
  letter-spacing: .04em;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 1px;
  white-space: nowrap;
  font-weight: 500 !important;
  justify-self: end;
}
.mention-link::after { content: "  →"; transition: margin .25s var(--ease); }
.mention-link:hover { color: var(--accent) !important; border-color: var(--accent); }
.mention-link:hover::after { margin-left: 3px; }

@media (max-width: 760px) {
  .mention-item { grid-template-columns: 1fr; gap: .5rem; padding: 1.25rem 0 !important; }
  .mention-link { justify-self: start; }
}

/* ----------------- about (06) ----------------- */
.about-section {
  background: var(--paper);
  padding: clamp(4rem, 10vh, 7rem) 0 !important;
  border-top: 1px solid var(--rule);
}
.about-section .about-text {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  max-width: 760px !important;
  margin: 0 !important;
}
.about-section .about-text p {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  line-height: 1.45;
  letter-spacing: -.01em;
  color: var(--ink);
}
.about-section .about-text a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 1px;
  transition: color .25s var(--ease);
}
.about-section .about-text a:hover { color: var(--accent); }

/* ----------------- footer ----------------- */
.site-footer {
  background: var(--paper);
  border-top: 1px solid var(--rule);
  padding: 2rem 0;
  color: var(--ink-mute);
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-align: center;
}
.footer-contact {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .6rem 1.6rem;
}
.footer-contact a {
  color: var(--ink-mute);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 2px;
  transition: color .25s var(--ease), border-color .25s var(--ease);
}
.footer-contact a:hover {
  color: var(--ink);
  border-color: var(--accent);
}

/* ----------------- L-AI notebook page bits (kept minimalist) ----------------- */
.laibot-section { background: var(--paper-alt); padding: clamp(4rem,10vh,7rem) 0; border-top: 1px solid var(--rule); }
.laibot-wrapper { display: flex; gap: 2.5rem; flex-wrap: wrap; align-items: center; }
.laibot-video { flex: 1 1 420px; }
.laibot-video video { width: 100%; border-radius: var(--radius); border: 1px solid var(--rule); }
.laibot-text { flex: 1 1 320px; display: flex; flex-direction: column; gap: 1rem; }
.laibot-text h2 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--ink);
  font-size: clamp(1.8rem,3.4vw,2.5rem);
  line-height: 1.15;
  letter-spacing: -.02em;
}
.laibot-text h2::before,
.laibot-text h2::after { content: none !important; }

/* LAI page */
.lai-header { padding: 4rem 0; background: var(--paper); text-align: center; border-bottom: 1px solid var(--rule); }
.lai-header .logo-container { background: none; padding: 0; box-shadow: none; display: inline-block; }
.lai-header .logo-text { font-family: var(--serif); font-weight: 400; font-size: clamp(2.8rem,8vw,5rem); line-height: 1; letter-spacing: -.03em; }
.lai-header .logo-text .a-text, .lai-header .logo-text .que-pegou-text { color: var(--ink); font-style: italic; font-weight: 300; }
.lai-header .logo-text .lai-text { color: var(--accent); font-weight: 500; }
.lai-header .description { margin-top: 1rem; font-family: var(--mono); font-size: .75rem; letter-spacing: .16em; color: var(--ink-mute); text-transform: uppercase; }
.lai-header .description-teal { color: var(--accent); }

.highlight-simple { display: flex; flex-wrap: wrap; gap: 1.5rem; max-width: 1000px; margin: 0 auto 3rem; padding: 0 1rem; }
.highlight-card-simple { background: var(--card); border: 1px solid var(--rule); padding: 1.5rem; flex: 1 1 45%; min-width: 280px; box-shadow: none; border-radius: var(--radius); }
.highlight-card-simple .highlight-tag { background: transparent; color: var(--ink-mute); font-family: var(--mono); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; padding: 0; border-radius: 0; display: inline-block; margin-bottom: .75rem; }
.highlight-card-simple .highlight-title a { color: var(--ink); text-decoration: none; font-family: var(--serif); font-weight: 400; font-size: 1.2rem; line-height: 1.3; border-bottom: 1px solid transparent; }
.highlight-card-simple .highlight-title a:hover { color: var(--accent); border-color: var(--accent); }
.highlight-card-simple .highlight-text { font-size: .9rem; color: var(--ink-mute); margin: .75rem 0 0; line-height: 1.55; }

.content-section .info-card,
.info-note,
.course-card {
  max-width: 820px;
  margin: 0 auto 2rem;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.75rem 2rem;
  box-shadow: none;
  text-align: left;
}
.course-card { text-align: left; }
.course-card h3 { font-family: var(--serif); font-weight: 400; color: var(--ink); font-size: 1.4rem; margin-bottom: .75rem; }
.course-card p { color: var(--ink-mute); font-size: .95rem; margin-bottom: 1.25rem; }
.info-note { font-size: .85rem; color: var(--ink-mute); padding: 1rem 1.5rem; }

.iframe-wrapper { max-width: 1100px; margin: 0 auto; padding: 0 1rem 3rem; }
.iframe-wrapper iframe { width: 100%; border: 1px solid var(--rule); border-radius: var(--radius); }

.lai-footer { background: var(--paper); border-top: 1px solid var(--rule); padding: 2rem 0; font-family: var(--mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-mute); text-align: center; }
.lai-footer a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--rule-strong); }
.lai-footer a:hover { color: var(--accent); border-color: var(--accent); }

/* LAI page popup banner (keep functional, restyle) */
.banner-overlay {
  position: fixed; inset: 0;
  background: color-mix(in srgb, var(--ink) 70%, transparent);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999; padding: 1.5rem;
}
.banner-content {
  background: var(--paper);
  padding: 2.25rem 2rem;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  max-width: 560px;
  text-align: left;
  position: relative;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.4);
}
.banner-content h3 { font-family: var(--serif); font-weight: 400; color: var(--ink); font-size: 1.5rem; margin-bottom: 1rem; line-height: 1.2; }
.banner-content p { color: var(--ink-mute); margin-bottom: 1.5rem; line-height: 1.55; }
.banner-content .close-banner { position: absolute; top: 14px; right: 16px; font-size: 1.2rem; color: var(--ink-mute); cursor: pointer; }
.banner-content .close-banner:hover { color: var(--ink); }

/* Profile/partnerships (kept sober) */
.partnerships-section { background: var(--paper-alt); padding: 3rem 0; border-top: 1px solid var(--rule); }
.partners-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px,1fr)); gap: 1.25rem; justify-items: center; align-items: center; }
.partner-item { width: 100%; padding: 1rem; text-align: center; position: relative; }
.partner-item img { max-width: 110px; width: 100%; height: auto; filter: grayscale(1) opacity(.7); transition: filter .3s var(--ease); }
.partner-item:hover img { filter: grayscale(0) opacity(1); }
.partner-item .tooltip { position: absolute; left: 50%; bottom: calc(100% + 6px); transform: translateX(-50%); background: var(--ink); color: var(--paper); padding: .4rem .7rem; font-size: .72rem; border-radius: var(--radius); width: 200px; opacity: 0; visibility: hidden; transition: opacity .25s var(--ease); pointer-events: none; z-index: 2; }
.partner-item:hover .tooltip { opacity: 1; visibility: visible; }
.partnerships-section .disclaimer { margin-top: 2rem; font-size: .8rem; color: var(--ink-mute); text-align: center; }

.profile-card { background: var(--card); border: 1px solid var(--rule); padding: 1.5rem; display: grid; grid-template-columns: 80px 1fr; gap: 1.25rem; border-radius: var(--radius); }
.profile-photo { width: 80px; border-radius: var(--radius); }
.author-title { font-family: var(--mono); font-size: .72rem; letter-spacing: .15em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: .5rem; }
.author-description a { display: block; color: var(--ink); margin-bottom: .25rem; font-size: .85rem; text-decoration: none; border-bottom: 1px solid transparent; width: fit-content; }
.author-description a:hover { color: var(--accent); border-color: var(--accent); }

/* ----------------- selection & focus ----------------- */
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ----------------- responsive tweaks ----------------- */
@media (max-width: 768px) {
  .top-nav .nav-inner { padding: .7rem 0; }
  .brand { font-size: 1.05rem; }
  .btn-primary, .btn-secondary, .dashboard-btn { padding: .6rem .95rem; font-size: .78rem; }
  section { padding: 3.5rem 0; }
  .hero-section { padding: 4rem 0 3rem; }
  .hero-section::before { margin-bottom: 2rem; }
  .current-projects-section .dashboard-item,
  .dashboards-section .dashboard-item { padding: 1.5rem 1.25rem !important; min-height: auto; }
  .aff-badge { font-size: .75rem; flex-wrap: wrap; justify-content: center; }
}

@media (max-width: 480px) {
  body { font-size: 15px; }
  .hero-section .site-name { font-size: clamp(3rem, 14vw, 4.5rem); }
  .hero-section .tagline { font-size: 1.2rem; max-width: 28ch; }
}

/* -------------- print polish -------------- */
@media print {
  .top-nav, .back-to-top, .toggle-stories-btn, .nav-lang-btn { display: none !important; }
  body { background: white; color: black; }
}
