/* ============================================================
   BrazFlow Labs — main stylesheet
   Brand palette (measured from the official logo):
   navy #143556 · copper #D28354 · gray #7B7F86
   ============================================================ */

:root {
  /* Brand */
  --navy-900: #0E263E;
  --navy-800: #143556;   /* primary */
  --navy-700: #1C4672;
  --navy-600: #2A5E92;
  --copper:   #D28354;   /* accent */
  --copper-dk:#A55C32;   /* accent for text on light backgrounds (AA contrast) */
  --copper-lt:#E5A272;   /* accent for text on dark backgrounds */
  --sky:      #7FA6CF;
  --sky-lt:   #E6EEF7;
  --logo-gray:#7B7F86;

  /* Neutrals */
  --white: #ffffff;
  --gray-50: #F6F8FA;
  --gray-100:#EEF1F4;
  --gray-200:#DDE3E9;
  --gray-500:#667381;
  --ink:     #143556;
  --body:    #33414E;

  --maxw: 1160px;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(14,38,62,.10);
  --shadow-sm: 0 4px 14px rgba(14,38,62,.08);
  --ease: cubic-bezier(.4,0,.2,1);

  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: var(--font);
  color: var(--body);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
[hidden] { display: none !important; }   /* keeps the hidden attribute working on elements with their own display value */
img, svg, video { max-width: 100%; display: block; }
a { color: var(--navy-700); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--copper-dk); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; font-weight: 700; }
h1, h2, h3 { text-wrap: balance; }   /* avoids one-word last lines in headings */
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; }
sub { font-size: .72em; line-height: 0; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 999;
  background: var(--navy-800); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: inherit; font-weight: 600; font-size: .98rem; line-height: 1;
  padding: 14px 26px; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: all .22s var(--ease); white-space: nowrap;
}
.btn--sm { padding: 10px 18px; font-size: .9rem; }
.btn--accent { background: var(--copper); color: #23150a; border-color: var(--copper); }
.btn--accent:hover { background: var(--copper-dk); border-color: var(--copper-dk); color: #fff; transform: translateY(-2px); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn--ghost:hover { background: rgba(255,255,255,.12); color: #fff; border-color: #fff; }
.btn--light { background: #fff; color: var(--navy-800); border-color: #fff; }
.btn--light:hover { background: var(--sky-lt); color: var(--navy-800); transform: translateY(-2px); }

/* ---------- Top bar ---------- */
.topbar { background: var(--navy-900); color: #cdd7e0; font-size: .82rem; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; min-height: 38px; gap: 16px; }
.topbar__tag { letter-spacing: .04em; text-transform: uppercase; font-size: .72rem; color: #9fb0c0; }
.topbar__links { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.topbar__links a { color: #cdd7e0; }
.topbar__links a:hover { color: var(--copper-lt); }
.topbar__sep { color: #3c536b; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.96); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--gray-200);
  transition: box-shadow .25s var(--ease);
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 20px; }

.brand { display: inline-flex; align-items: center; }
.brand__logo { height: 44px; width: auto; }
.brand--footer .brand__logo { height: 42px; }

.main-nav { display: flex; align-items: center; gap: 26px; }
.main-nav ul { display: flex; align-items: center; gap: 22px; list-style: none; }
.main-nav a { color: var(--navy-800); font-weight: 600; font-size: .96rem; position: relative; padding: 6px 0; }
.main-nav ul a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0; background: var(--copper);
  transition: width .25s var(--ease);
}
.main-nav ul a:hover::after, .main-nav ul a.active::after { width: 100%; }
.main-nav__cta { margin-left: 4px; }
.main-nav .btn--accent { color: #23150a; }
.main-nav .btn--accent:hover { color: #fff; }

/* Language switch (EN | PT) */
.main-nav { margin-left: auto; }
.lang-switch {
  display: inline-flex; align-items: center; gap: 2px; flex: none; margin-left: 4px;
  padding: 3px; border: 1px solid var(--gray-200); border-radius: 999px; background: #fff;
}
.lang-switch__opt {
  padding: 5px 11px; border-radius: 999px; font-size: .78rem; font-weight: 700; letter-spacing: .04em;
  line-height: 1.2; color: var(--navy-800);
}
.lang-switch__opt:hover { background: var(--sky-lt); color: var(--navy-800); }
.lang-switch__opt[aria-current="true"] { background: var(--navy-800); color: #fff; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer;
  padding: 12px 10px; min-height: 44px; min-width: 44px; align-items: center; justify-content: center;
}
.nav-toggle span { width: 26px; height: 3px; background: var(--navy-800); border-radius: 2px; transition: .25s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; overflow: hidden; }
.hero__bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(1100px 520px at 88% -8%, rgba(210,131,84,.30), transparent 60%),
    radial-gradient(900px 600px at -5% 115%, rgba(127,166,207,.20), transparent 55%),
    linear-gradient(135deg, var(--navy-900), var(--navy-800) 55%, var(--navy-700));
}
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(115deg, rgba(255,255,255,.035) 0 2px, transparent 2px 26px);
  mask-image: linear-gradient(180deg, transparent, #000 40%);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 40%);
}
.hero__grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(32px, 5vw, 64px); align-items: center;
  padding-top: 64px; padding-bottom: 108px;
}
.hero__eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700; color: var(--copper-lt); margin-bottom: 18px; }
.hero__title { color: #fff; font-size: clamp(2rem, 3.5vw, 3.05rem); font-weight: 800; letter-spacing: -.01em; margin-bottom: 20px; }
.hero__title span { color: var(--copper-lt); }
html[lang="pt-BR"] .hero__title { font-size: clamp(1.9rem, 3.2vw, 2.8rem); }   /* Portuguese headline is longer */
.hero__lead { font-size: clamp(1rem, 1.6vw, 1.15rem); color: #d7e0e8; max-width: 560px; margin-bottom: 28px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 26px; }
.hero__chip {
  display: inline-flex; align-items: center; gap: 10px; margin: 0;
  padding: 8px 16px; border-radius: 999px; font-size: .84rem; font-weight: 600; color: #e9eff5;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.18);
}
.hero__chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--copper); flex: none; }

/* ---------- Carousel (images + videos) ---------- */
.carousel { width: 100%; }
.carousel__viewport {
  position: relative; aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden;
  background: var(--navy-900);
  box-shadow: 0 24px 60px rgba(0,0,0,.38), 0 0 0 1px rgba(255,255,255,.12);
  isolation: isolate;
}
.slide {
  position: absolute; inset: 0; opacity: 0; visibility: hidden; z-index: 0;
  /* the outgoing slide stays visible under the incoming one for the length of the fade, then disappears */
  transition: opacity 0s linear .8s, visibility 0s linear .8s;
}
.slide.is-active { opacity: 1; visibility: visible; z-index: 2; transition: opacity .8s var(--ease), visibility 0s; }
.slide__bg {
  position: absolute; left: -8%; top: -8%; width: 116%; height: 116%; object-fit: cover;
  filter: blur(24px) brightness(.72) saturate(1.1);
}
.slide__media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: transparent; }
.slide__scrim {
  position: absolute; left: 0; right: 0; bottom: 0; height: 40%; pointer-events: none;
  background: linear-gradient(to top, rgba(8,22,38,.86), rgba(8,22,38,0));
}
.slide__caption {
  position: absolute; left: 18px; right: 18px; bottom: 20px; margin: 0;
  color: #fff; font-size: .92rem; font-weight: 600; line-height: 1.4; text-shadow: 0 1px 8px rgba(0,0,0,.55);
}
.slide__badge {
  display: inline-flex; align-items: center; gap: 6px; margin-right: 8px; vertical-align: 1px;
  padding: 3px 9px 3px 7px; border-radius: 999px; font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 700;
  background: var(--copper); color: #23150a; text-shadow: none;
}
.slide__badge::before { content: ""; border-style: solid; border-width: 4.5px 0 4.5px 7px; border-color: transparent transparent transparent currentColor; }
.carousel__progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,.18); z-index: 2; }
.carousel__progress span { display: block; height: 100%; width: 100%; background: var(--copper); transform: scaleX(0); transform-origin: left center; }

.carousel__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 16px; }
.carousel__dots { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dot {
  position: relative; width: 10px; height: 10px; padding: 0; border: 0; border-radius: 999px;
  background: rgba(255,255,255,.35); cursor: pointer; transition: width .3s var(--ease), background .3s var(--ease);
}
.dot::after { content: ""; position: absolute; inset: -12px -4px; }   /* larger touch target */
.dot:hover { background: rgba(255,255,255,.6); }
.dot[aria-current="true"] { width: 28px; background: var(--copper); }
.carousel__ctrls { display: flex; align-items: center; gap: 8px; flex: none; }
.carousel__btn {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; padding: 0; cursor: pointer;
  border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.08); color: #fff;
  transition: background .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.carousel__btn:hover { background: rgba(255,255,255,.2); border-color: #fff; }
.carousel__btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.carousel__btn .ico-pause { fill: currentColor; stroke: none; }
.carousel__btn .ico-play { display: none; fill: currentColor; stroke: none; }
.carousel.is-paused .ico-pause { display: none; }
.carousel.is-paused .ico-play { display: block; }

/* ---------- Highlights ---------- */
.highlights { background: var(--white); margin-top: -50px; position: relative; z-index: 2; }
.highlights__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.highlight {
  background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 24px; display: flex; gap: 16px; align-items: flex-start;
}
.highlight__icon {
  flex: none; width: 46px; height: 46px; display: grid; place-items: center;
  background: var(--sky-lt); color: var(--navy-800); border-radius: 12px;
}
.highlight__icon svg, .card__icon svg, .impact__icon svg {
  width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.highlight h3 { font-size: 1.05rem; margin-bottom: 4px; }
.highlight p { margin: 0; font-size: .92rem; color: var(--gray-500); }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section--alt { background: var(--gray-50); }
.section__head { max-width: 740px; margin: 0 auto 52px; text-align: center; }
.section__eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700; color: var(--copper-dk); margin-bottom: 12px; }
.section__title { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
.section__sub { color: var(--gray-500); font-size: 1.05rem; margin: 0; }

/* ---------- Expertise cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius);
  padding: 30px 26px; transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--copper-lt); }
.card__icon {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-600)); margin-bottom: 18px;
}
.card__icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.2rem; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.card p { margin: 0; color: var(--gray-500); font-size: .96rem; }
.card--featured { border-color: var(--copper); box-shadow: 0 12px 34px rgba(210,131,84,.16); }
.card--featured .card__icon { background: linear-gradient(135deg, var(--copper-dk), var(--copper)); }
.tag { font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; background: var(--copper); color: #23150a; padding: 3px 8px; border-radius: 999px; font-weight: 700; }

/* ---------- Team ---------- */
.team {
  margin-top: 56px; display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: center;
  background: linear-gradient(135deg, var(--navy-900), var(--navy-800) 60%, var(--navy-700));
  color: #d7e0e8; border-radius: 20px; padding: clamp(28px, 4vw, 48px); position: relative; overflow: hidden;
}
.team::after {
  content: ""; position: absolute; right: -80px; top: -120px; width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(210,131,84,.28), transparent 70%); pointer-events: none;
}
.team .section__eyebrow { color: var(--copper-lt); }
.team h3 { color: #fff; font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 14px; }
.team p { margin-bottom: 0; }
.team__visual { position: relative; z-index: 1; }
.team__avatars { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.avatar {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22); color: #fff;
}
.avatar:nth-child(even) { background: rgba(210,131,84,.22); border-color: rgba(229,162,114,.5); color: var(--copper-lt); }
.avatar svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.team__count { font-size: .95rem; font-weight: 600; color: #fff; margin: 0 0 14px; }
.team__count strong { color: var(--copper-lt); font-size: 1.6rem; margin-right: 6px; }
.team__roles { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.team__roles li {
  padding: 6px 13px; border-radius: 999px; font-size: .82rem; font-weight: 600; color: #fff;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.2);
}

/* ---------- Stats ---------- */
.stats { background: linear-gradient(135deg, var(--navy-800), var(--navy-700)); color: #fff; padding: 60px 0; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat__num { display: block; font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; color: var(--copper-lt); line-height: 1; }
.stat__label { display: block; margin-top: 8px; font-size: .9rem; color: #cdd7e0; }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 1fr 1.15fr; gap: 48px; align-items: center; }
.about__panel { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.about__text .section__eyebrow { margin-bottom: 12px; }
.checklist { list-style: none; margin-top: 8px; }
.checklist li { position: relative; padding-left: 30px; margin-bottom: 10px; color: var(--body); }
.checklist li::before {
  content: ""; position: absolute; left: 6px; top: .38em; width: 6px; height: 12px;
  border: solid var(--copper-dk); border-width: 0 2.5px 2.5px 0; transform: rotate(40deg);
}
.impact { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 44px; }
.impact__item { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 22px; }
.impact__icon {
  width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; margin-bottom: 12px;
  background: var(--sky-lt); color: var(--navy-800);
}
.impact__item h3 { font-size: 1.02rem; margin-bottom: 6px; }
.impact__item p { margin: 0; font-size: .92rem; color: var(--gray-500); }

/* ---------- Laboratory / reactor ---------- */
.lab { display: grid; grid-template-columns: 1.1fr 1fr; gap: 44px; align-items: center; margin-bottom: 64px; }
.lab__figure { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #fff; border: 1px solid var(--gray-200); }
.lab__figure img { width: 100%; height: auto; }
.lab__figure figcaption { padding: 12px 16px; font-size: .86rem; color: var(--gray-500); background: #fff; }
.lab__text .section__eyebrow { margin-bottom: 12px; }
.lab__text h3 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 32px; }
.gallery__item { margin: 0; }
/* all four figures share the same frame (height:auto overrides the img height attribute) */
.gallery__item img {
  width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover;
  border-radius: var(--radius-sm); border: 1px solid var(--gray-200); background: #fff;
}
.gallery__item--contain img { object-fit: contain; padding: 8px; }   /* CFD map: keep the colour bar visible */
.gallery__item figcaption { font-size: .78rem; color: var(--gray-500); margin-top: 6px; line-height: 1.35; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.step { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 28px 22px; }
.step__n { display: inline-block; font-size: 1.4rem; font-weight: 800; color: var(--copper); margin-bottom: 12px; }
.step h3 { font-size: 1.08rem; }
.step p { margin: 0; color: var(--gray-500); font-size: .93rem; }

/* ---------- Publications ---------- */
.pubs__filters { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin: 0 0 30px; }
.chip-btn {
  padding: 10px 18px; border-radius: 999px; border: 1px solid var(--gray-200); background: #fff; color: var(--navy-800);
  font: inherit; font-weight: 600; font-size: .9rem; cursor: pointer; transition: all .2s var(--ease);
}
.chip-btn:hover { border-color: var(--navy-800); }
.chip-btn[aria-pressed="true"] { background: var(--navy-800); color: #fff; border-color: var(--navy-800); }
.chip-btn .count { opacity: .7; font-weight: 500; margin-left: 6px; }
.pubs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.pub {
  position: relative; display: flex; flex-direction: column; gap: 10px;
  background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius);
  padding: 24px 24px 22px 30px; transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.pub:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.pub::before { content: ""; position: absolute; left: 0; top: 20px; bottom: 20px; width: 4px; border-radius: 0 4px 4px 0; background: var(--copper); }
.pub[data-type="conference"]::before { background: var(--navy-600); }
.pub[hidden] { display: none; }
.pub__meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.pub__type { color: var(--copper-dk); }
.pub[data-type="conference"] .pub__type { color: var(--navy-600); }
.pub__year { color: var(--gray-500); }
.pub__oa { background: #E5F3EA; color: #1D6B3F; padding: 2px 9px; border-radius: 999px; letter-spacing: .04em; }
.pub h3 { font-size: 1.08rem; line-height: 1.35; margin: 0; }
.pub h3 a { color: var(--ink); }
.pub h3 a:hover { color: var(--copper-dk); }
.pub__authors { font-size: .84rem; color: var(--gray-500); margin: 0; }
.pub__venue { font-size: .86rem; font-weight: 600; color: var(--navy-700); margin: 0; }
.pub__summary { font-size: .92rem; margin: 0; color: var(--body); }
.pub__foot { margin-top: auto; padding-top: 8px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.pub__link { font-weight: 700; font-size: .9rem; color: var(--navy-700); }
.pub__link:hover { color: var(--copper-dk); }
.pub__actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.pub[data-poster]::before { background: var(--copper); }
.pub__badge { background: var(--sky-lt); color: var(--navy-700); padding: 2px 9px; border-radius: 999px; letter-spacing: .04em; }

/* ---------- Poster pages ---------- */
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.btn--outline { background: transparent; color: var(--navy-800); border-color: var(--gray-200); }
.btn--outline:hover { border-color: var(--navy-800); color: var(--navy-800); transform: translateY(-2px); }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.poster-hero { position: relative; color: #fff; overflow: hidden; }
.poster-hero__inner { position: relative; z-index: 1; padding-top: 40px; padding-bottom: 96px; }
.crumbs { font-size: .86rem; color: #b9c6d2; margin-bottom: 22px; }
.crumbs a { color: #e9eff5; text-decoration: underline; text-underline-offset: 3px; }
.crumbs a:hover { color: var(--copper-lt); }
.poster-hero__title { color: #fff; font-size: clamp(1.6rem, 3.2vw, 2.45rem); font-weight: 800; max-width: 34ch; margin-bottom: 14px; }
.poster-hero__orig { color: #b9c6d2; font-size: .9rem; font-style: italic; max-width: 70ch; }
.poster-hero__authors { color: #e3eaf1; font-size: .98rem; max-width: 95ch; margin-bottom: 8px; }
.poster-hero__aff { color: #9fb0c0; font-size: .82rem; max-width: 110ch; margin: 0; }
.poster-hero__event { margin: 14px 0 0; font-size: .9rem; color: #e3eaf1; }
.poster-hero__event a { color: var(--copper-lt); text-decoration: underline; text-underline-offset: 3px; }
.poster-hero__event a:hover { color: #fff; }
.page-link { margin: 14px 0 0; font-size: .82rem; color: #9fb0c0; }
.page-link code { color: #e9eff5; background: rgba(255,255,255,.08); padding: 2px 8px; border-radius: 6px; font-size: .85rem; word-break: break-all; }
.kpis-wrap { position: relative; z-index: 2; margin-top: -54px; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.kpi { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; }
.kpi__num { display: block; font-size: clamp(1.3rem, 2.2vw, 1.75rem); font-weight: 800; color: var(--copper-dk); line-height: 1.1; margin-bottom: 8px; }
.kpi__label { display: block; font-size: .9rem; color: var(--gray-500); line-height: 1.4; }
.section__head--left { text-align: left; margin-left: 0; margin-bottom: 32px; }
.analysis { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.analysis__block { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 26px; }
.analysis__block--wide { grid-column: 1 / -1; }
.analysis__block--accent { background: var(--sky-lt); border-color: transparent; }
.analysis__block h3 { font-size: 1.1rem; }
.analysis__block p:last-child, .analysis__block ul:last-child { margin-bottom: 0; }
.conditions { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
.panel { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 26px; min-width: 0; }
.panel--wide { grid-column: 1 / -1; }
.data-table--narrow { width: auto; min-width: 60%; }
.panel h3 { font-size: 1.05rem; margin-bottom: 14px; }
.panel h3:not(:first-child) { margin-top: 24px; }
.specs { display: grid; grid-template-columns: minmax(110px, max-content) 1fr; gap: 10px 18px; margin: 0; font-size: .93rem; }
.specs dt { font-weight: 700; color: var(--navy-800); }
.specs dd { margin: 0; color: var(--body); }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.data-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.data-table th, .data-table td { padding: 9px 12px; border-bottom: 1px solid var(--gray-200); text-align: left; vertical-align: top; }
.data-table thead th { background: var(--sky-lt); color: var(--navy-800); font-weight: 700; white-space: nowrap; }
.data-table tbody th { font-weight: 600; color: var(--navy-800); }
.data-table td { font-variant-numeric: tabular-nums; }
.table-note { font-size: .8rem; color: var(--gray-500); margin: 8px 0 0; }
.figs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; align-items: start; grid-auto-flow: row dense; }
.fig--rows2 { grid-row: span 2; }
.fig { margin: 0; background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius); overflow: hidden; }
.fig--wide { grid-column: 1 / -1; }
.fig__link { display: block; background: #fff; }
.fig__link img { width: auto; max-width: 100%; height: auto; max-height: 620px; margin: 0 auto; transition: opacity .2s var(--ease); }
.fig__link:hover img { opacity: .92; }
.fig--tall .fig__link img { max-height: 760px; width: auto; max-width: 100%; margin: 0 auto; }
.fig figcaption { padding: 12px 16px 14px; font-size: .88rem; color: var(--body); border-top: 1px solid var(--gray-100); }
.compare { margin-bottom: 40px; }
.compare__head { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-bottom: 12px; }
.compare__head span { font-weight: 700; color: var(--navy-800); font-size: .95rem; padding: 10px 14px; background: var(--sky-lt); border-radius: var(--radius-sm); }
.compare__row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-bottom: 26px; align-items: start; }
.compare__title { grid-column: 1 / -1; font-size: 1rem; margin: 6px 0 -8px; }
.refs { margin: 0 0 8px; padding-left: 22px; font-size: .9rem; color: var(--body); }
.refs li { margin-bottom: 8px; }
.refs a { word-break: break-all; }
.pub__doi { font-size: .74rem; color: var(--gray-500); word-break: break-all; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--copper); color: #23150a; }
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 48px 24px; flex-wrap: wrap; }
.cta-band h2 { color: #23150a; margin-bottom: 4px; }
.cta-band p { margin: 0; color: #4a2410; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: start; }
.contact__list { list-style: none; margin: 20px 0; }
.contact__list li { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.contact__ico {
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; flex: none;
  background: var(--sky-lt); color: var(--navy-800);
}
.contact__ico svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.contact__list a { font-weight: 600; }
.contact__social { display: flex; gap: 10px; margin-top: 18px; }
.contact__social a {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--navy-800); color: #fff; font-size: .82rem; font-weight: 700; text-transform: lowercase;
  transition: background .2s var(--ease), transform .2s var(--ease);
}
.contact__social a:hover { background: var(--copper-dk); color: #fff; transform: translateY(-2px); }
.contact__form, .contact__card { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 30px; }
.contact__card .contact__list { margin-top: 0; }
.contact__card .btn { margin-top: 6px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: .9rem; color: var(--navy-800); margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--gray-200); border-radius: var(--radius-sm);
  font: inherit; color: var(--body); background: var(--gray-50); transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--copper); box-shadow: 0 0 0 3px rgba(210,131,84,.2); background: #fff; }
.field textarea { resize: vertical; }
.field__note { font-size: .78rem; color: var(--gray-500); margin: 12px 0 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #b9c6d2; }
.site-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; padding: 64px 24px 40px; }
.site-footer__brand p { margin-top: 14px; font-size: .92rem; color: #93a3b2; max-width: 290px; }
.site-footer__badge {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 16px !important; padding: 7px 14px;
  background: rgba(210,131,84,.14); border: 1px solid rgba(210,131,84,.38);
  border-radius: 999px; color: var(--copper-lt) !important; font-size: .8rem !important; font-weight: 600;
}
.site-footer__badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--copper); flex: none; }
.site-footer__col h4 { color: #fff; font-size: .95rem; margin-bottom: 14px; }
.site-footer__col ul { list-style: none; }
.site-footer__col li { margin-bottom: 9px; }
.site-footer__col a { color: #b9c6d2; font-size: .92rem; }
.site-footer__col a:hover { color: var(--copper-lt); }
.site-footer__bottom { border-top: 1px solid rgba(255,255,255,.08); }
.site-footer__bottom-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; flex-wrap: wrap; }
.site-footer__bottom p { margin: 0; font-size: .82rem; color: #8496a6; }
.site-footer__legal { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer__legal a { color: #8496a6; font-size: .82rem; }
.site-footer__legal a:hover { color: var(--copper-lt); }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--copper); color: #23150a; font-size: 1.3rem; font-weight: 700;
  box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: all .25s var(--ease);
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--copper-dk); color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .hero__grid { grid-template-columns: 1fr; padding-top: 48px; padding-bottom: 72px; gap: 36px; }
  .hero__lead { max-width: 640px; }
  .highlights { margin-top: 0; padding-top: 40px; }
  .lab { grid-template-columns: 1fr; gap: 28px; }
  .team { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 900px) {
  .topbar { display: none; }
  .nav-toggle { display: flex; }
  .main-nav { margin-left: 0; }
  .lang-switch { margin-left: auto; margin-right: 2px; }
  .main-nav {
    position: fixed; inset: 68px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--gray-200); box-shadow: var(--shadow);
    padding: 8px 24px 20px; transform: translateY(-120%); transition: transform .3s var(--ease); max-height: calc(100vh - 68px); overflow: auto;
  }
  .main-nav.open { transform: translateY(0); }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav ul li { border-bottom: 1px solid var(--gray-100); }
  .main-nav ul a { display: block; padding: 14px 0; }
  .main-nav__cta { margin: 14px 0 0; }
  .highlights__grid, .cards, .steps, .stats__grid { grid-template-columns: 1fr 1fr; }
  .pubs { grid-template-columns: 1fr; }
  .impact { grid-template-columns: 1fr; }
  .about, .contact { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .kpis { grid-template-columns: 1fr 1fr; }
  .conditions, .analysis { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .highlights__grid, .cards, .steps, .stats__grid, .site-footer__grid { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  .container { padding: 0 18px; }
  .hero__grid { padding-top: 22px; padding-bottom: 52px; gap: 28px; }
  .hero__media { order: -1; }              /* phones: show the images/videos first */
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__eyebrow { font-size: .72rem; letter-spacing: .1em; margin-bottom: 12px; }
  .carousel__viewport { border-radius: 14px; }
  .slide__caption { left: 14px; right: 14px; bottom: 16px; font-size: .84rem; }
  .carousel__btn { width: 44px; height: 44px; }
  .contact__social a { width: 44px; height: 44px; }
  .cta-band__inner { padding: 40px 20px; }
  .team { padding: 26px 20px; border-radius: 16px; }
  .contact__form, .contact__card { padding: 22px; }
  .site-footer__bottom-inner { flex-direction: column; align-items: flex-start; }
  .figs { grid-template-columns: 1fr; }
  .fig--rows2 { grid-row: auto; }
  .kpis { grid-template-columns: 1fr; gap: 12px; }
  .kpis-wrap { margin-top: -40px; }
  .poster-hero__inner { padding-top: 28px; padding-bottom: 76px; }
  .poster-hero .btn-row .btn { flex: 1 1 100%; }
  .compare__head { display: none; }                 /* each figure keeps its own "Test 63 / Test 64" caption */
  .compare__row { grid-template-columns: 1fr 1fr; gap: 10px; }
  .compare__row .fig figcaption { padding: 8px 10px; font-size: .78rem; }
  .specs { grid-template-columns: 1fr; gap: 2px; }
  .specs dd { margin-bottom: 10px; }
  .panel, .analysis__block { padding: 20px; }
}

/* ---------- Accessibility & motion ---------- */
:focus-visible { outline: 3px solid var(--copper); outline-offset: 2px; border-radius: 4px; }
.carousel :focus-visible { outline-color: #fff; }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
