:root {
  color-scheme: light;
  --violet: #8200FF;
  --violet-deep: #4B14A8;
  --lime: #9FFF60;
  --ink: #1A1033;
  --muted: #554C70;
  --paper: #F3F0FA;
  --surface: #FFFFFF;
  --line: #DCD4EE;
  --river: #0E8C88;
  --river-bright: #19B3AE;
  --marigold: #FFB320;
  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1180px;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --ink: #EFEAFB;
    --muted: #B5ABD2;
    --paper: #160D2C;
    --surface: #21163F;
    --line: #382A60;
    --violet: #B07CFF;
    --river: #3FD0CA;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: 1.125rem; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-color: var(--violet); text-decoration-thickness: 2px; text-underline-offset: 4px; }
a:hover { color: var(--violet); }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; }
p { margin: 0 0 1rem; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 2.5rem); }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--paper); padding: .5rem 1rem; z-index: 50; }
.skip:focus { left: 1rem; top: 1rem; }

/* Language: show one at a time */
html[data-lang="en"] .l-es, html[data-lang="es"] .l-en { display: none !important; }

h1, h2, h3 { font-family: var(--font); margin: 0; line-height: 1.02; letter-spacing: -0.01em; }
h2 { font-stretch: 125%; font-weight: 800; font-size: clamp(2rem, 4.6vw, 3.4rem); margin-bottom: 1.25rem; }
h3 { font-stretch: 112%; font-weight: 750; font-size: clamp(1.3rem, 2.4vw, 1.7rem); line-height: 1.1; margin-bottom: .5rem; }
.lede { font-size: clamp(1.2rem, 2vw, 1.45rem); line-height: 1.45; max-width: 40ch; }
.muted { color: var(--muted); }

/* Header */
.top { position: absolute; inset: 0 0 auto 0; z-index: 10; }
.top .wrap { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-top: 1.1rem; padding-bottom: 1rem; }
.mark { display: block; width: 46px; height: 46px; background: #fff; -webkit-mask: url(img/logo-mark.png) center / contain no-repeat; mask: url(img/logo-mark.png) center / contain no-repeat; }
.top nav ul { list-style: none; display: flex; gap: clamp(.8rem, 2vw, 1.6rem); margin: 0; padding: 0; flex-wrap: wrap; align-items: center; }
.top nav a { color: #fff; text-decoration: none; font-weight: 600; font-size: 1rem; }
.top nav a:hover { text-decoration: underline; text-decoration-color: var(--lime); color: #fff; }
.lang { font-family: var(--font); font-weight: 700; font-size: .95rem; background: var(--lime); color: #1A1033; border: 0; padding: .45rem .85rem; cursor: pointer; }
.lang:hover { background: #fff; }
.lang:focus-visible { outline-color: #fff; }
@media (max-width: 820px) { .top nav li.opt { display: none; } }

/* Hero: the river */
.hero { position: relative; min-height: min(92vh, 860px); display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: #3A0B85; }
.hero video, .hero .poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(40, 6, 100, .55) 0%, rgba(40, 6, 100, .35) 35%, rgba(26, 16, 51, .9) 100%); }
.hero::before { content: ""; position: absolute; inset: 0; background: #6A12E0; mix-blend-mode: color; z-index: 1; }
.hero .wrap { position: relative; z-index: 2; width: 100%; padding-bottom: clamp(2.5rem, 7vw, 5rem); padding-top: 7rem; }
.hero h1 { margin: 0 0 1.5rem; }
.hero h1 .lockup { display: block; width: min(640px, 88vw); aspect-ratio: 945 / 452; background: #fff; -webkit-mask: url(img/logo-lockup.png) left center / contain no-repeat; mask: url(img/logo-lockup.png) left center / contain no-repeat; }
.hero .tag { font-size: clamp(1.25rem, 2.6vw, 1.75rem); line-height: 1.3; font-weight: 500; max-width: 34ch; margin: 0 0 1.75rem; }
.btns { display: flex; flex-wrap: wrap; gap: .75rem; margin: 0; }
.btn { display: inline-block; font-weight: 700; font-size: 1rem; text-decoration: none; padding: .7rem 1.2rem; border: 2px solid currentColor; }
.btn.solid { background: var(--lime); color: #1A1033; border-color: var(--lime); }
.btn.solid:hover { background: #fff; border-color: #fff; color: #1A1033; }
.btn.line { color: #fff; }
.btn.line:hover { background: #fff; color: #1A1033; border-color: #fff; }
.btn.dark { background: var(--violet); border-color: var(--violet); color: #fff; }
.btn.dark:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }

/* Next event strip */
.next { background: var(--lime); color: #1A1033; }
.next .wrap { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; align-items: baseline; justify-content: space-between; padding-top: 1.1rem; padding-bottom: 1.1rem; }
.next p { margin: 0; font-weight: 600; font-size: 1.05rem; }
.next strong { font-stretch: 115%; font-weight: 800; }
.next a { font-weight: 800; color: #1A1033; text-decoration-color: #1A1033; }
.next a:hover { color: var(--violet-deep); }

/* Sections */
section.block { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.head { max-width: 760px; margin-bottom: clamp(2rem, 4vw, 3rem); }
.head p { color: var(--muted); max-width: 62ch; }

/* The name */
.name { background: var(--violet); color: #fff; }
.words { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 2.5rem); margin-top: 2.5rem; }
.word { border-top: 3px solid var(--lime); padding-top: 1.1rem; }
.word .w { display: block; font-stretch: 125%; font-weight: 800; font-size: clamp(2.6rem, 6vw, 4.4rem); line-height: 1; letter-spacing: -0.02em; margin-bottom: .75rem; }
.word .means { font-size: 1.15rem; font-weight: 600; margin: 0 0 .4rem; color: var(--lime); }
.word p { color: #EDE4FF; font-size: 1.02rem; margin: 0; }
.name .intro { font-size: clamp(1.2rem, 2.2vw, 1.5rem); line-height: 1.45; max-width: 48ch; }
@media (max-width: 760px) { .words { grid-template-columns: 1fr; } }

/* Streams (programs) */
.streams { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(3rem, 6vw, 5rem); }
.stream { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.stream:nth-child(even) .pics { order: 2; }
.pics { display: grid; grid-template-columns: 2fr 1fr; gap: .6rem; }
.pics img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1; }
.pics img:first-child { grid-row: span 2; }
.pics img.fit { object-fit: contain; background: var(--surface); }
.pics img.face { object-position: 50% 38%; }
.stream ul.items { list-style: none; padding: 0; margin: 1.1rem 0 0; display: grid; gap: .55rem; }
.stream ul.items li { padding-left: 1.2rem; position: relative; font-size: 1.02rem; }
.stream ul.items li::before { content: ""; position: absolute; left: 0; top: .62em; width: .55rem; height: .55rem; background: var(--river-bright); transform: rotate(45deg); }
.where { font-weight: 650; color: var(--river); margin: 0 0 .75rem; font-size: 1rem; }
@media (max-width: 820px) { .stream { grid-template-columns: 1fr; } .stream:nth-child(even) .pics { order: 0; } }

/* Gallery */
.gallery-sec { background: var(--surface); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.75rem; padding: 0; list-style: none; }
.chips button { font-family: var(--font); font-weight: 650; font-size: .98rem; background: transparent; color: var(--ink); border: 2px solid var(--line); padding: .4rem .9rem; cursor: pointer; }
.chips button:hover { border-color: var(--violet); }
.chips button[aria-pressed="true"] { background: var(--violet); border-color: var(--violet); color: #fff; }
.masonry { columns: 4 220px; column-gap: .7rem; }
.masonry a { display: block; margin-bottom: .7rem; break-inside: avoid; }
.masonry a[hidden] { display: none; }
.masonry img { width: 100%; }
.masonry a:hover img { outline: 3px solid var(--violet); outline-offset: -3px; }

/* Timeline along the river */
.timeline { position: relative; padding-left: 64px; }
.timeline::before { content: ""; position: absolute; left: 14px; top: 0; bottom: 0; width: 28px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='120' viewBox='0 0 28 120'%3E%3Cpath d='M14 0 C 26 20, 26 40, 14 60 S 2 100, 14 120' fill='none' stroke='%2319B3AE' stroke-width='6' stroke-linecap='round'/%3E%3C/svg%3E") repeat-y; }
.year { position: relative; font-stretch: 125%; font-weight: 800; font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin: 2.5rem 0 1.25rem; }
.year:first-child { margin-top: 0; }
.year::before { content: ""; position: absolute; left: -58px; top: .2em; width: 30px; height: 30px; border-radius: 50%; background: var(--violet); border: 5px solid var(--paper); }
.events { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; }
.event { display: grid; grid-template-columns: 96px 1fr; gap: 1.1rem; align-items: start; background: var(--surface); padding: .9rem; border-left: 4px solid var(--river-bright); }
.event img { width: 96px; height: 96px; object-fit: cover; }
.event time { display: block; font-weight: 700; font-size: .95rem; color: var(--river); margin-bottom: .1rem; }
.event h3 { font-size: 1.15rem; font-stretch: 105%; margin-bottom: .3rem; }
.event p { font-size: 1rem; color: var(--muted); margin: 0; }
.event .more { font-weight: 700; font-size: .95rem; display: inline-block; margin-top: .4rem; }
@media (max-width: 560px) { .timeline { padding-left: 44px; } .timeline::before { left: 4px; } .year::before { left: -46px; width: 24px; height: 24px; } .event { grid-template-columns: 64px 1fr; } .event img { width: 64px; height: 64px; } }

/* Videos */
.videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1rem; }
.video { position: relative; aspect-ratio: 16 / 9; background: #1A1033; overflow: hidden; }
.video button { all: unset; cursor: pointer; position: absolute; inset: 0; }
.video button img { width: 100%; height: 100%; object-fit: cover; }
.video button span { position: absolute; left: .9rem; bottom: .9rem; background: var(--lime); color: #1A1033; font-weight: 750; padding: .35rem .8rem; }
.video button:hover span, .video button:focus-visible span { background: #fff; }
.video button:focus-visible { outline: 3px solid var(--lime); outline-offset: -3px; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* People */
.people { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.people img { width: 100%; }
.person + .person { margin-top: 1.75rem; }
.person .role { font-weight: 650; color: var(--river); margin: 0 0 .4rem; }
.person p { font-size: 1.02rem; }
@media (max-width: 820px) { .people { grid-template-columns: 1fr; } }

/* Partners */
.partners { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.partners li { border: 2px solid var(--line); padding: .45rem .9rem; font-weight: 600; font-size: 1rem; background: var(--surface); }

/* Join */
.join { background: var(--ink); color: var(--paper); }
@media (prefers-color-scheme: dark) { .join { background: #0E0820; color: #EFEAFB; } }
.join .wrap { display: grid; grid-template-columns: 1.3fr 1fr; gap: 2rem 3rem; align-items: center; }
.join h2 { color: inherit; }
.join .big-mark { width: min(300px, 60vw); aspect-ratio: 1; background: var(--lime); -webkit-mask: url(img/logo-mark.png) center / contain no-repeat; mask: url(img/logo-mark.png) center / contain no-repeat; justify-self: center; }
.join .btn.line { color: inherit; }
.join .btn.line:hover { background: var(--lime); color: #1A1033; border-color: var(--lime); }
@media (max-width: 760px) { .join .wrap { grid-template-columns: 1fr; } .join .big-mark { width: 160px; justify-self: start; } }

footer { background: var(--ink); color: var(--paper); border-top: 1px solid rgba(255,255,255,.12); padding: 1.5rem 0 2rem; font-size: .95rem; }
@media (prefers-color-scheme: dark) { footer { background: #0E0820; color: #B5ABD2; } }
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .75rem; }

/* Lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 94vw; max-height: 94vh; }
.lightbox::backdrop { background: rgba(26, 16, 51, .9); }
.lightbox img { max-width: 94vw; max-height: 86vh; width: auto; }
.lightbox button { position: fixed; top: 1rem; right: 1rem; font-family: var(--font); font-weight: 700; background: var(--lime); color: #1A1033; border: 0; padding: .5rem 1rem; cursor: pointer; }
.next-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .25rem; flex: 1 1 520px; }
.next-list li { font-weight: 500; font-size: 1.02rem; }
.next-list a { font-weight: 800; margin-right: .35rem; }
