/* deepCVL website — design system taken from the 2026 mockup (Artboard6).
   Sage and lavender from the brand sheet, the rest from the mockup. Measurements follow the
   1450 px artboard and scale down fluidly. */

/* Type: Helvetica Neue, as in the brand sheet. It is not free to self-host, so devices that have it
   (Apple) use it and the rest get two free fonts drawn after Helvetica:
   - Aileron (CC0) for headings and the menu: closest to the sheet, but at text sizes on ordinary
     screens its "i" dot runs into the stem;
   - Arimo (OFL, same widths as Helvetica, built for screens) for body text.
   Aileron has no 500 weight, so 500 headings render as 400 with it. */

@font-face {
  font-family: "Aileron";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("/assets/fonts/aileron-300-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Aileron";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/aileron-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Aileron";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/aileron-600-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Aileron";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/aileron-700-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Arimo";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/arimo-latin-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

@font-face {
  font-family: "Arimo";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/arimo-latin-ext-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

@font-face {
  font-family: "Arimo";
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/arimo-latin-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

:root {
  --sage: #c8d4be; /* brand sheet */
  --sage-deep: #b6c4a6;
  --lavender: #d0ceda; /* brand sheet */
  --ink: #000;
  --text: #111;
  --muted: #585654;
  --dot: #9fa39b;
  --navy: #0e2379;
  --paper: #fff;
  --line: #d9d8df;
  --radius: 16px;
  --radius-pill: 14px;
  --shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
  --max: 1450px;
  --gutter: clamp(16px, 4vw, 58px);
  --header-h: 82px;
  --font: "Helvetica Neue", "Arimo", Helvetica, Arial, sans-serif;
  --font-display: "Helvetica Neue", "Aileron", Helvetica, Arial, sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 24px;
}

body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.55;
}

img,
svg,
video {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--navy);
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 3px;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

p {
  margin: 0 0 1em;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 100;
  border-radius: var(--radius-pill);
  background: var(--ink);
  padding: 10px 16px;
  color: #fff;
}

.skip-link:focus {
  top: 12px;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

main {
  position: relative;
  flex: 1;
}

/* ------------------------------------------------------------------ header */

.site-header {
  position: relative;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
  max-width: var(--max);
  width: 100%;
  min-height: var(--header-h);
  margin: 0 auto;
  padding: 0 var(--gutter) 0 calc(var(--gutter) * 0.55);
}

/* As in the header mockup, the logo sits lower than the menu and hangs a little below the header:
   the brand box keeps the header's height and the image overflows it, so the header does not grow. */
.brand {
  display: flex;
  align-items: flex-start;
  align-self: start;
  justify-self: start;
  height: var(--header-h);
  padding-top: clamp(12px, 1.25vw, 18px);
}

/* Grows with the screen: 66 px tall at 1280 px wide, 80 px at 1366, 88 px from ~1420. The limit is
   the Spanish menu (the widest): this keeps about 20 px between the logo and "inicio" from 1240 px
   up. 981-1200 px has its own size below, where the menu is tighter. */
.brand img {
  display: block;
  flex-shrink: 0;
  width: auto;
  max-width: none;
  height: clamp(54px, calc(16.5vw - 145px), 88px);
}

.site-nav ul {
  display: flex;
  height: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  font-family: var(--font-display);
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 clamp(14px, 2.3vw, 34px);
  color: var(--ink);
  font-size: 20px;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a:hover {
  text-decoration: underline;
}

/* 981–1200 px: the full menu (above all in Spanish) left the logo column a few pixels wide, so the
   logo was squeezed out of shape. Tighter menu padding here keeps the whole logo visible. */
@media (min-width: 981px) and (max-width: 1200px) {
  .site-nav a {
    padding: 0 clamp(12px, 1.2vw, 16px);
  }

  .brand img {
    height: clamp(54px, 4.9vw, 60px);
  }
}

.site-nav a[aria-current="page"] {
  background: var(--sage);
  font-weight: 700;
}

.header-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.lang-picker {
  position: relative;
}

.lang-picker summary {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  border-radius: 4px;
  background: var(--lavender);
  padding: 0 12px;
  box-shadow: var(--shadow);
  cursor: pointer;
  font-size: 19px;
  list-style: none;
}

.lang-picker summary::-webkit-details-marker {
  display: none;
}

.lang-picker summary svg {
  width: 10px;
  transition: transform 0.2s ease;
}

.lang-picker[open] summary svg {
  transform: rotate(180deg);
}

.lang-picker ul {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 30;
  min-width: 150px;
  margin: 0;
  border-radius: 10px;
  background: #fff;
  padding: 6px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.16);
  list-style: none;
}

.lang-picker li a {
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 6px;
  padding: 8px 12px;
  color: var(--ink);
  text-decoration: none;
}

.lang-picker li a:hover,
.lang-picker li a[aria-current="true"] {
  background: var(--lavender);
}

/* Flag beside each language, and beside the chosen one in the button. SVG files rather than
   emoji: Windows has no flag emoji and shows the letters "CL"/"GB" instead. */
.lang-picker .flag {
  flex: none;
  width: 21px;
  height: 14px;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.14);
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 10px;
  background: var(--sage);
  cursor: pointer;
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  display: block;
  position: relative;
  width: 20px;
  height: 2px;
  background: var(--ink);
  content: "";
}

.menu-toggle span::before {
  position: absolute;
  top: -6px;
}

.menu-toggle span::after {
  position: absolute;
  top: 6px;
}

/* ------------------------------------------------------------------ decoration */

.circles {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 0;
  width: max(100%, 1000px);
  max-width: var(--max);
  height: auto;
  transform: translateX(-50%);
  overflow: visible;
  pointer-events: none;
}

.circles circle {
  fill: none;
  stroke: rgba(0, 0, 0, 0.3); /* lighter than the text: decoration, not a line to read */
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.circles-clip {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: min(1100px, 76vw);
  overflow: hidden;
  pointer-events: none;
}

/* ------------------------------------------------------------------ pills & tabs */

.pill {
  font-family: var(--font-display);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--sage);
  padding: 7px 26px 8px;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.25;
  text-decoration: none;
  transition: background 0.15s ease;
}

a.pill:hover,
button.pill:hover {
  background: var(--sage-deep);
  text-decoration: none;
}

.pill.small {
  font-family: var(--font);
  padding: 4px 14px;
  font-size: 15px;
}

.pill.outline {
  background: transparent;
  box-shadow: inset 0 0 0 1.5px var(--sage-deep);
}

.pill.lavender {
  background: var(--lavender);
}

.tab-label {
  font-family: var(--font-display);
  position: relative;
  z-index: 1;
  display: inline-block;
  margin: 0 0 -20px 42px;
  border-radius: var(--radius-pill);
  background: var(--sage);
  padding: 7px 28px 8px;
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 0;
}

/* A label sitting on a card straddles its top edge: the label's vertical middle lies on the
   card's border (mockup). Block, not inline-block, so the negative margin is not swallowed by
   the line box; the label is 1.1em of text + 15px of padding tall. Labels above grids keep
   their own spacing. */
.tab-label:has(+ .card-lavender) {
  display: block;
  width: fit-content;
  margin-bottom: calc((1.1em + 15px) / -2);
}

.card-lavender {
  border-radius: var(--radius);
  background: var(--lavender);
  padding: 44px 38px 30px;
  font-size: 20px;
  line-height: 1.3;
}

/* ------------------------------------------------------------------ home: hero */

.hero {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: clamp(260px, 26vw, 390px);
  place-items: center;
  padding: clamp(40px, 6vw, 90px) var(--gutter) clamp(28px, 4vw, 60px);
}

.hero h1 {
  font-size: clamp(54px, 7.2vw, 106px);
  font-weight: 400;
  line-height: 0.93;
  letter-spacing: -0.035em;
  text-align: center;
}

.hero h1 span {
  display: block;
}

.hero-cta {
  position: absolute;
  top: 68%;
  left: calc(50% + clamp(140px, 15vw, 215px));
}

/* Hover / keyboard focus: bold label and a soft shadow. The hidden bold copy of the label
   (::after, zero height, not read by screen readers) reserves the bold width, so the button
   keeps its size and the text does not jump. */
.hero-cta {
  flex-direction: column;
  gap: 0;
  transition:
    background 0.15s ease,
    box-shadow 0.15s ease;
}

.hero-cta::after {
  content: attr(data-label);
  content: attr(data-label) / "";
  height: 0;
  overflow: hidden;
  visibility: hidden;
  font-weight: 700;
  pointer-events: none;
  user-select: none;
}

.hero-cta:hover,
.hero-cta:focus-visible {
  font-weight: 700;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
}

.about {
  position: relative;
  z-index: 1;
  max-width: 812px;
  margin-left: calc(max(0px, (100vw - var(--max)) / 2) + var(--gutter) + clamp(0px, 3vw, 40px));
  margin-right: var(--gutter);
}

.about .card-lavender p:last-child {
  margin-bottom: 0;
}

.about .more {
  display: inline-block;
  margin-top: 14px;
  color: var(--ink);
  font-size: 17px;
}

/* ------------------------------------------------------------------ home: next event */

.event-feature {
  position: relative;
  z-index: 1;
  margin-top: clamp(44px, 5vw, 64px);
}

.event-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  align-items: center;
  gap: clamp(24px, 3.5vw, 52px);
}

.event-text h3 {
  margin: 0 0 10px;
  font-size: clamp(26px, 2.5vw, 36px);
  font-weight: 500;
  line-height: 1.15;
}

.event-text h3 a {
  color: inherit;
  text-decoration: none;
}

.event-text h3 a:hover {
  text-decoration: underline;
}

.event-sub {
  margin: 0 0 22px;
  font-size: clamp(18px, 1.5vw, 21px);
  text-wrap: pretty;
}

.event-dl {
  display: grid;
  gap: 12px;
  margin: 0 0 26px;
}

.event-dl dt {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.event-dl dd {
  margin: 2px 0 0;
  font-size: 18px;
  line-height: 1.35;
}

.event-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
}

/* Poster: rounded with a soft shadow, as on the current site. */
.event-poster {
  display: block;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.event-poster img,
.event-poster picture {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 860px) {
  .event-card {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ------------------------------------------------------------------ news band */

.news-band {
  position: relative;
  z-index: 1;
  max-width: calc(var(--max) - 2 * 58px);
  margin: clamp(36px, 4vw, 48px) auto 0;
  border-radius: var(--radius);
  background: var(--sage);
  padding: 18px clamp(16px, 2.7vw, 38px) 14px;
}

.news-band + * {
  margin-top: 0;
}

.news-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(40px, 15vw, 230px);
  margin-bottom: 18px;
}

.news-head h2 {
  font-size: clamp(30px, 3vw, 42px);
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.arrow-button {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.arrow-button:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.45);
}

.arrow-button:disabled {
  opacity: 0.3;
  cursor: default;
}

.arrow-button svg {
  width: 14px;
  height: 24px;
}

.news-track {
  display: grid;
  grid-auto-columns: calc((100% - 3 * 27px) / 4);
  grid-auto-flow: column;
  gap: 27px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  margin: 0;
  padding: 0;
  list-style: none;
}

.news-track::-webkit-scrollbar {
  display: none;
}

.news-track > li {
  scroll-snap-align: start;
}

.news-card {
  display: flex;
  height: 100%;
  min-height: 344px;
  flex-direction: column;
  overflow: hidden;
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
}

a.news-card:hover h3 {
  text-decoration: underline;
}

.news-card .media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--lavender);
}

.news-card .media img,
.news-card .media picture,
.news-card .media .img-ph {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-card .body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  padding: 14px 18px 18px;
}

.news-card h3 {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.news-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.4;
}

.news-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

.kind {
  border-radius: 999px;
  background: var(--lavender);
  padding: 1px 10px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}

.kind.upcoming {
  background: var(--ink);
  color: #fff;
}

.dots {
  display: flex;
  justify-content: center;
  gap: 0;
  margin: 16px 0 2px;
  padding: 0;
  list-style: none;
}

/* 24px touch targets; the visible dot is drawn inside */
.dots button {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.dots button::before {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--dot);
  content: "";
  transition: width 0.2s ease;
}

.dots button[aria-current="true"] {
  width: 36px;
}

.dots button[aria-current="true"]::before {
  width: 28px;
  background: var(--muted);
}

.news-all {
  display: block;
  margin: 8px 0 0;
  text-align: right;
  font-size: 16px;
}

.news-all a {
  color: var(--ink);
}

/* ------------------------------------------------------------------ sections */

.section {
  position: relative;
  z-index: 1;
  padding: clamp(48px, 6vw, 84px) 0 0;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 24px;
  margin-bottom: 26px;
}

.section-head .tab-label {
  margin: 0;
}

.section-head a {
  color: var(--ink);
  font-size: 17px;
}

.grid {
  display: grid;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.grid.cols-3 {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
}

.grid.cols-4 {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr));
}

.card {
  display: flex;
  height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

a.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

a.card:hover h3 {
  text-decoration: underline;
}

.card .media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--lavender);
}

.card .media img,
.card .media picture,
.card .media .img-ph {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card .body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  padding: 18px 20px 20px;
}

.card h3 {
  font-size: 23px;
  font-weight: 500;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.45;
}

.card .more {
  margin-top: auto;
  padding-top: 8px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
}

.card.sage {
  border: 0;
  background: var(--sage);
}

.card.lavender {
  border: 0;
  background: var(--lavender);
}

/* placeholders until the image library is uploaded */
.img-ph {
  display: grid;
  width: 100%;
  height: 100%;
  min-height: 120px;
  place-items: center;
  background:
    radial-gradient(circle at 78% 28%, transparent 0 34%, rgba(0, 0, 0, 0.12) 34% calc(34% + 1px), transparent calc(34% + 1px)),
    var(--lavender);
  padding: 16px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.img-ph span {
  max-width: 24ch;
}

/* ------------------------------------------------------------------ inner pages */

.page-head {
  position: relative;
  z-index: 1;
  overflow: hidden;
  padding: clamp(36px, 5vw, 72px) 0 clamp(28px, 3vw, 44px);
}

.page-head .circle-deco {
  position: absolute;
  top: -55%;
  right: -14%;
  width: min(600px, 62vw);
  aspect-ratio: 1;
  border: 1px solid var(--ink);
  border-radius: 50%;
  pointer-events: none;
}

.page-head h1 {
  font-size: clamp(44px, 6vw, 84px);
  letter-spacing: -0.035em;
}

.page-head .eyebrow {
  display: inline-block;
  margin-bottom: 14px;
}

.page-head .lead {
  max-width: 68ch; /* wide enough for one-sentence intros (Demos) to stay on one line */
  text-wrap: pretty; /* longer intros never end with a single orphan word */
  margin: 20px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 1.6vw, 21px);
  line-height: 1.45;
}

.eyebrow a {
  color: var(--ink);
}

.prose {
  max-width: 76ch;
  font-size: 18.5px;
}

.prose h2 {
  margin: 1.8em 0 0.6em;
  font-size: 30px;
  font-weight: 500;
}

.prose h3 {
  margin: 1.4em 0 0.4em;
  font-size: 22px;
  font-weight: 600;
}

.prose ul {
  padding-left: 1.2em;
}

.prose li {
  margin: 0.3em 0;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
}

.prose th,
.prose td {
  border-bottom: 1px solid var(--line);
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
}

.prose-figure {
  margin: 1.6em 0;
}

.prose-figure img,
.prose-figure picture {
  display: block;
  border-radius: 12px;
}

.prose-figure .img-ph {
  min-height: 180px;
  border-radius: 12px;
}

.prose-figure figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 15px;
}

.layout-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}

.aside {
  position: sticky;
  top: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.aside .card-lavender {
  padding: 22px 24px;
  font-size: 17px;
}

.aside h2 {
  font-family: var(--font);
  margin-bottom: 10px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0;
}

.aside ul {
  margin: 0;
  padding-left: 1.1em;
}

.back-link {
  display: inline-block;
  margin-top: 40px;
  color: var(--ink);
}

/* people */
.people-group {
  margin-top: clamp(36px, 4vw, 56px);
}

.people-group h2 {
  margin-bottom: 22px;
}

.person {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.person .avatar,
.person .avatar-ph,
.person picture {
  display: block;
  width: 148px;
  height: 148px;
  overflow: hidden;
  border-radius: 50%;
  object-fit: cover;
}

.person picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-ph {
  font-family: var(--font-display);
  display: grid !important;
  place-items: center;
  background: var(--sage);
  color: var(--ink);
  font-size: 40px;
  font-weight: 300;
  letter-spacing: 0.02em;
}

.person:nth-child(3n + 2) .avatar-ph {
  background: var(--lavender);
}

.person h3 {
  font-family: var(--font);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.person h3 a {
  color: var(--ink);
}

.person .affiliation {
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.people-grid {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr));
  row-gap: 34px;
}

.people-grid.compact .avatar,
.people-grid.compact .avatar-ph,
.people-grid.compact picture {
  width: 108px;
  height: 108px;
}

.people-grid.compact .avatar-ph {
  font-size: 30px;
}

/* partners */
.logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.logo-tile {
  display: flex;
  height: 100%;
  min-height: 150px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 18px;
  color: var(--ink);
  text-align: center;
  text-decoration: none;
}

a.logo-tile:hover {
  border-color: var(--ink);
}

.logo-tile img,
.logo-tile picture {
  display: block;
  max-width: 150px;
  max-height: 72px;
  object-fit: contain;
}

.logo-tile .img-ph {
  min-height: 60px;
  max-width: 150px;
  border-radius: 10px;
  font-size: 13px;
}

.logo-tile span.name {
  font-size: 15px;
  font-weight: 600;
}

/* publications */
.filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 30px;
}

.filters .pill[aria-pressed="false"] {
  background: transparent;
  box-shadow: inset 0 0 0 1.5px var(--sage-deep);
}

.search-input {
  flex: 1 1 260px;
  max-width: 420px;
  min-height: 42px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 0 16px;
  font: inherit;
  font-size: 16px;
}

.pub-count {
  color: var(--muted);
  font-size: 15px;
}

.pub-year {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 24px;
  border-top: 1px solid var(--line);
  padding: 26px 0;
}

.pub-year h2 {
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 300;
}

.pub-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pub-title {
  margin: 0 0 4px;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.3;
}

.pub-authors {
  margin: 0;
  color: var(--text);
  font-size: 16px;
}

.pub-venue {
  margin: 2px 0 8px;
  color: var(--muted);
  font-size: 16px;
  font-style: italic;
}

.pub-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pub-links a {
  border-radius: 999px;
  background: var(--lavender);
  padding: 2px 12px;
  color: var(--ink);
  font-size: 14px;
  text-decoration: none;
}

.pub-links a:hover {
  background: var(--sage);
}

.pub-lines {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.pub-lines span {
  color: var(--muted);
  font-size: 13px;
}

.pub-lines span + span::before {
  content: "· ";
}

[hidden] {
  display: none !important;
}

/* datasets & grants */
.list-rows {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.row-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  border-radius: 14px;
  background: var(--lavender);
  padding: 16px 20px;
}

.row-card h3 {
  font-size: 21px;
  font-weight: 500;
}

.row-card p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.row-card .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.row-card .actions .pill {
  background: #fff;
}

.row-card .actions .pill:hover {
  background: var(--sage);
}

.subsection {
  margin-top: clamp(32px, 4vw, 52px);
}

.subsection > h2 {
  margin-bottom: 18px;
  font-size: 30px;
  font-weight: 500;
}

/* demos */
.demo-card .media {
  aspect-ratio: 16 / 9;
}

.demo-card .body {
  padding: 22px 24px 24px;
}

.demo-card h3 {
  font-size: 28px;
}

.demo-card .body p {
  margin-bottom: 10px;
}

.demo-card .pill {
  align-self: flex-start;
  margin-top: auto; /* bottom-left in every card, so buttons line up across a row */
}

/* industry */
.tracks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 22px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.track {
  border-radius: var(--radius);
  background: var(--lavender);
  padding: 26px 26px 24px;
}

.track h3 {
  margin-bottom: 10px;
  font-size: 23px;
  font-weight: 600;
}

.track p {
  margin: 0;
  font-size: 17px;
}

.contact-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 26px;
  border-radius: var(--radius);
  background: var(--sage);
  padding: 26px 30px;
  font-size: 20px;
}

.contact-band .mails {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 28px;
}

.contact-band a.mail {
  color: var(--ink);
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 600;
}

/* events */
.event-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 14px;
  margin: 0 0 26px;
  padding: 0;
  list-style: none;
}

.event-facts li {
  border-radius: 14px;
  background: var(--lavender);
  padding: 14px 18px;
}

/* The Register button takes a fact box's place: same cell, same radius, full size. */
.event-facts li.event-cta {
  display: flex;
  background: none;
  padding: 0;
}

.event-facts li.event-cta .pill {
  flex: 1;
  justify-content: center;
  border-radius: 14px;
  font-weight: 600;
}

.event-facts strong {
  display: block;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.speakers {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.speaker {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.speaker .avatar,
.speaker .avatar-ph,
.speaker picture {
  display: block;
  width: 120px;
  height: 120px;
  overflow: hidden;
  border-radius: 50%;
  object-fit: cover;
}

.speaker .talk {
  margin: 4px 0 0;
  font-weight: 600;
  line-height: 1.3;
}

.speaker .who {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

/* ------------------------------------------------------------------ footer */

.site-footer {
  position: relative;
  z-index: 1;
  margin-top: clamp(56px, 7vw, 96px);
  background: var(--ink);
  color: #fff;
}

.site-footer .wrap {
  display: grid;
  grid-template-columns: minmax(180px, 1.1fr) repeat(3, minmax(0, 1fr));
  gap: 32px;
  padding-top: 48px;
  padding-bottom: 40px;
}

.site-footer img.footer-logo {
  width: 150px;
  height: auto;
}

.site-footer h2 {
  font-family: var(--font);
  margin-bottom: 10px;
  color: var(--sage);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.site-footer p,
.site-footer li {
  margin: 0;
  color: #e9e9ee;
  font-size: 15.5px;
  line-height: 1.6;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer a {
  color: #fff;
}

.site-footer .legal {
  border-top: 1px solid #333;
  padding: 16px 0 22px;
  color: #a9a9b3;
  font-size: 14px;
}

.site-footer .legal .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  padding-top: 0;
  padding-bottom: 0;
}

/* ------------------------------------------------------------------ people: team band */
.team-head {
  position: relative;
  z-index: 1;
  padding: clamp(24px, 3vw, 40px) 0 clamp(8px, 1.5vw, 16px);
}

.team-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  align-items: center;
  gap: 24px clamp(24px, 4vw, 64px);
  border-radius: var(--radius);
  background: var(--sage);
  padding: clamp(24px, 3vw, 34px) clamp(24px, 4vw, 52px);
}

.team-band h1 {
  width: min-content; /* one word per line, as in the mockup */
  font-size: clamp(48px, 5.4vw, 78px);
  line-height: 0.95;
  letter-spacing: -0.035em;
}

.team-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.team-stats li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  text-align: center;
}

.team-stats li + li {
  border-left: 1px solid rgba(0, 0, 0, 0.18);
}

.team-stats strong {
  font-family: var(--font-display);
  color: var(--muted);
  font-size: clamp(44px, 5vw, 72px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.team-stats span {
  color: var(--muted);
  font-size: clamp(14px, 1.3vw, 18px);
  font-weight: 600;
}

.team-head .lead {
  max-width: 68ch;
  text-wrap: pretty;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 1.4vw, 19px);
  line-height: 1.45;
}

@media (max-width: 760px) {
  .team-band {
    grid-template-columns: 1fr;
  }

  .team-band h1 {
    width: auto; /* "Our People" on one line on phones */
    padding: 0 8px;
  }

  .team-band {
    padding: 22px 12px;
  }

  .team-stats li {
    padding: 4px 2px;
  }

  .team-stats span {
    font-size: clamp(11px, 3.4vw, 13px); /* "Colaboradores" must fit a third of a 320 px phone */
  }
}

/* ------------------------------------------------------------------ responsive */

@media (max-width: 1180px) {
  .news-track {
    grid-auto-columns: calc((100% - 27px) / 2);
  }

  .hero-cta {
    position: static;
    margin-top: 26px;
  }

  .hero {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 980px) {
  :root {
    --header-h: 68px;
  }

  .site-header {
    grid-template-columns: 1fr auto;
    align-items: center;
    padding-left: var(--gutter);
  }

  .brand {
    align-items: center;
    align-self: stretch;
    height: auto;
    padding: 5px 0;
  }

  .brand img {
    height: 52px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: none;
    background: rgba(255, 255, 255, 0.98);
    padding: 90px var(--gutter) 40px;
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 6px;
    height: auto;
  }

  .site-nav a {
    height: auto;
    border-radius: var(--radius-pill);
    padding: 12px 20px;
    font-size: 28px;
  }

  .nav-close {
    position: absolute;
    top: 14px;
    right: var(--gutter);
  }

  .header-tools {
    grid-column: 2;
    grid-row: 1;
  }

  .layout-split {
    grid-template-columns: 1fr;
  }

  .aside {
    position: static;
  }

  .site-footer .wrap {
    grid-template-columns: 1fr 1fr;
  }

  .pub-year {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

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

@media (max-width: 760px) {
  body {
    font-size: 17px;
  }

  .circles .c2 {
    display: none;
  }

  .about {
    margin-left: var(--gutter);
  }

  .card-lavender {
    padding: 38px 22px 24px;
    font-size: 18px;
  }

  .tab-label {
    margin-left: 22px;
    font-size: 18px;
  }

  .news-band {
    margin-left: 12px;
    margin-right: 12px;
  }

  .news-head {
    gap: 24px;
  }

  .site-footer .wrap {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .news-track {
    grid-auto-columns: 86%;
    gap: 16px;
  }
}

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

@media print {
  .site-header,
  .site-footer,
  .circles,
  .news-band {
    display: none;
  }
}

.subsection-title {
  margin: 36px 0 18px;
  font-size: 30px;
  font-weight: 500;
}

.poster {
  max-width: 760px;
}

/* Event page: organizer and supporter logos in equal-height boxes, names under the organizers. */
.org-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 28px 56px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.org-logos li {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.org-logos li > img,
.org-logos li > picture,
.org-logos li > picture img {
  display: block;
  width: auto;
  max-width: 240px;
  height: 72px;
  object-fit: contain;
  object-position: left center;
}

.org-logos span {
  max-width: 300px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.35;
}

.org-logos .img-ph {
  min-width: 160px;
  min-height: 48px;
  border-radius: 10px;
  font-size: 12px;
}

.organizers {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  padding: 0;
  list-style: none;
}

.grant-tag {
  margin: 0 0 8px;
  background: #fff;
}

a.plain {
  color: inherit;
}

.lang-picker abbr {
  text-decoration: none;
}

/* comfortable touch targets in sidebars and footers */
.aside li {
  margin: 8px 0;
}

.aside li a,
.site-footer li a {
  display: inline-block;
  min-height: 24px;
}
