/* ==========================================================
   КПЛ, Variant C «Рух»: photo-led, civic energy. Light base, purple as accent
   Identity: crest, purple #3e107c, gold #d3a23b/#cfb05d, PT Sans Caption
   ========================================================== */
:root {
  --purple: #3e107c;
  --night: #1d0b3d;
  --night-2: #261050;
  --night-3: #170832;
  --gold: #d3a23b;
  --gold-bg: #d3a23b;   /* brand gold for fills, never changes */
  --gold-soft: #cfb05d;
  --gold-pale: #f1e4bf;  /* pale gold fill; never used as text on light */
  --hover: #f1e4bf;      /* hover text colour; dark by default, light sections override */
  --mist: #cdc2e2;
  --mist-2: #9d8fbb;
  --line: rgba(255,255,255,.14);

  --f-head: "PT Sans Caption", "PT Sans", system-ui, sans-serif;
  --f-body: "PT Sans", system-ui, sans-serif;
  --wrap: 1280px;
  --gut: clamp(1rem, 4vw, 3rem);
  --sec: clamp(4rem, 9vw, 8rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 4.5rem; }
body { margin: 0; background: var(--night); color: #fff; font: 400 1.0625rem/1.6 var(--f-body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--gold); text-underline-offset: .2em; }
a:hover { color: var(--hover); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--f-head); font-weight: 700; line-height: 1.1; margin: 0; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.gold { color: var(--gold); }
.skip { position: absolute; left: -999px; top: 0; z-index: 200; background: var(--gold-bg); color: var(--night); padding: .6rem 1rem; font-family: var(--f-head); }
.skip:focus { left: 1rem; }

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

/* ---------- duotone ---------- */
.duo { position: relative; display: block; overflow: hidden; background: var(--purple); }
.duo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.15); mix-blend-mode: screen; transition: filter .35s, mix-blend-mode .35s; }
.duo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(211,162,59,.0) 40%, rgba(211,162,59,.18)); mix-blend-mode: soft-light; pointer-events: none; }
.duo--dark { background: var(--night); }
.duo--dark img { mix-blend-mode: luminosity; opacity: .55; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; font: 700 1.05rem/1 var(--f-head); padding: 1.05rem 1.6rem; text-decoration: none; border: 2px solid transparent; transition: background-color .2s, color .2s, border-color .2s; }
.btn--gold { background: var(--gold-bg); color: var(--night); }
.btn--gold:hover { background: var(--gold-pale); color: var(--night); }
.btn--line { color: #fff; border-color: rgba(255,255,255,.5); }
.btn--line:hover { color: var(--night); background: #fff; border-color: #fff; }
.btn--dark { background: var(--night); color: #fff; }
.btn--dark:hover { background: var(--purple); color: #fff; }
.more { font: 700 .98rem/1 var(--f-head); color: var(--gold); text-decoration: none; padding-bottom: 4px; border-bottom: 2px solid currentColor; white-space: nowrap; }
.more:hover { color: var(--hover); }

/* ---------- top bar ---------- */
.bar { position: fixed; inset: 0 0 auto 0; z-index: 100; transition: background-color .25s, box-shadow .25s; }
.bar.is-solid { background: rgba(29,11,61,.96); box-shadow: 0 1px 0 var(--line); }
.bar__in { display: flex; align-items: center; gap: 1rem; padding: .75rem var(--gut); max-width: 1440px; margin-inline: auto; }
.brand { display: flex; align-items: center; gap: .6rem; color: #fff; text-decoration: none; margin-right: auto; font: 700 1.25rem/1 var(--f-head); letter-spacing: .04em; }
.brand img { width: 54px; height: auto; }
.nav { display: flex; align-items: center; gap: .15rem; }
.nav a { color: #fff; text-decoration: none; font: 400 .95rem/1 var(--f-head); padding: .7rem .7rem; }
.nav a:hover, .nav a.is-current { color: var(--gold); }
.nav .nav__cta { background: var(--gold-bg); color: var(--night); font-weight: 700; margin-left: .6rem; padding: .8rem 1rem; }
.nav .nav__cta:hover { background: var(--gold-pale); color: var(--night); }
.nav .nav__lang { color: var(--mist-2); font-size: .85rem; }
.burger { display: none; }
@media (max-width: 1080px) {
  .burger { display: inline-block; font: 700 1rem/1 var(--f-head); color: var(--night); background: var(--gold-bg); border: 0; padding: .75rem 1rem; cursor: pointer; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--night); padding: .5rem var(--gut) 1.5rem; border-bottom: 3px solid var(--gold); max-height: calc(100vh - 4.5rem); overflow: auto; }
  .nav.is-open { display: flex; }
  .nav a { font-size: 1.4rem; font-weight: 700; padding: .85rem 0; border-bottom: 1px solid var(--line); }
  .nav .nav__cta { margin: 1rem 0 0; text-align: center; border: 0; }
  .nav .nav__lang { font-size: 1rem; border: 0; }
  .bar.menu-open { background: var(--night); }
}

/* ---------- hero ---------- */
.hero { position: relative; min-height: max(640px, 100svh); display: flex; align-items: flex-end; overflow: hidden; background: var(--night); }
.hero::after { content: ""; position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(29,11,61,.92) 0%, rgba(29,11,61,.55) 55%, rgba(29,11,61,.15) 100%),
  linear-gradient(0deg, var(--night) 0%, rgba(29,11,61,0) 45%); pointer-events: none; }
.hero__in { position: relative; z-index: 1; width: 100%; max-width: 1440px; margin-inline: auto; padding: 7rem var(--gut) clamp(2.5rem, 6vw, 4.5rem); }
.hero__crest { width: clamp(110px, 12vw, 170px); height: auto; margin-bottom: 1.5rem; filter: drop-shadow(0 6px 20px rgba(0,0,0,.45)); }
.hero h1 { font-size: clamp(3.1rem, 11vw, 10.5rem); line-height: .88; letter-spacing: -.03em; margin-bottom: clamp(1.5rem, 4vw, 2.75rem); }
.hero h1 span { display: block; }
.hero h1 span:nth-child(2) { color: var(--gold); }
.hero__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.hero__lede { font-size: clamp(1.1rem, 1.6vw, 1.35rem); line-height: 1.5; color: var(--mist); max-width: 32em; margin: 0; }
.hero__actions { display: flex; gap: .75rem; flex-wrap: wrap; }
@media (max-width: 700px) {
  .hero__actions { width: 100%; }
  .hero__actions .btn { flex: 1 1 100%; }
  .hero::after { background: linear-gradient(0deg, var(--night) 10%, rgba(29,11,61,.55) 70%, rgba(29,11,61,.35)); }
}

/* ---------- slogan ---------- */
.slogan { background: var(--night); padding: clamp(3rem, 8vw, 6rem) var(--gut); border-top: 1px solid var(--line); }
.slogan blockquote { margin: 0 auto; max-width: 1280px; }
.slogan p { font: 700 clamp(2rem, 6vw, 5.2rem)/1.02 var(--f-head); letter-spacing: -.02em; color: var(--gold); margin-bottom: 1.25rem; text-wrap: balance; }
.slogan footer { color: var(--mist-2); font: 400 1rem/1.3 var(--f-head); }

/* ---------- sections ---------- */
.sec { padding-block: var(--sec); }
.h2 { font-size: clamp(2.4rem, 6vw, 4.75rem); letter-spacing: -.025em; line-height: .95; margin-bottom: 1.25rem; }
.sec__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem 2rem; flex-wrap: wrap; margin-bottom: 2.75rem; }
.sec__head .h2 { margin-bottom: .75rem; }
.sec__intro { color: var(--mist); font-size: 1.15rem; max-width: 40em; margin: 0; }
.sec__tools { display: flex; align-items: center; gap: 1.5rem; }

/* about */
.about { background: var(--night); }
.about__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 2.5rem 2rem; }
.about .h2 { grid-column: 1 / -1; }
.about__text { grid-column: 1 / 8; }
.about__big { font: 700 clamp(1.4rem, 2.4vw, 2rem)/1.3 var(--f-head); color: #fff; }
.about__text p:not(.about__big) { color: var(--mist); max-width: 36em; }
.about__facts { grid-column: 9 / -1; margin: 0; display: grid; gap: 0; align-content: start; }
.about__facts div { padding: 1.1rem 0; border-top: 1px solid var(--line); }
.about__facts dt { font: 400 .9rem/1.2 var(--f-head); color: var(--mist-2); }
.about__facts dd { margin: .25rem 0 0; font: 700 1.6rem/1.15 var(--f-head); color: var(--gold); }
.board { grid-column: 1 / -1; display: flex; align-items: center; gap: 1.5rem 3rem; flex-wrap: wrap; padding-top: 2rem; border-top: 1px solid var(--line); }
.board h3 { font-size: 1.1rem; color: var(--mist-2); font-weight: 400; }
.board ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.5rem 2.5rem; flex-wrap: wrap; }
.board li { display: grid; grid-template-columns: 56px auto; grid-template-rows: auto auto; column-gap: .9rem; align-items: center; }
.board .duo { grid-row: 1 / 3; width: 56px; height: 56px; border-radius: 50%; }
.board b { font: 700 1.05rem/1.2 var(--f-head); align-self: end; }
.board li > span:last-child { color: var(--mist-2); font-size: .92rem; align-self: start; }
.board p { margin: 0 0 0 auto; color: var(--mist-2); font-size: .9rem; }
@media (max-width: 860px) {
  .about__text, .about__facts { grid-column: 1 / -1; }
  .about__facts { grid-template-columns: repeat(3, 1fr); column-gap: 1rem; }
  .about__facts dd { font-size: 1.15rem; }
  .board p { margin: 0; }
}
@media (max-width: 520px) { .about__facts { grid-template-columns: 1fr; } }

/* ---------- horizontal strips ---------- */
.strip { list-style: none; margin: 0; display: flex; gap: 1.25rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gut); padding: 0 var(--gut) 1.5rem; scrollbar-width: thin; scrollbar-color: var(--gold) transparent; }
.strip:focus-visible { outline-offset: -3px; }
.strip > li { scroll-snap-align: start; flex: 0 0 auto; }
@media (min-width: 1440px) { .strip { padding-inline: calc((100vw - var(--wrap)) / 2 + var(--gut)); scroll-padding-inline: calc((100vw - var(--wrap)) / 2 + var(--gut)); } }
.scroll-ctl { display: flex; gap: .5rem; }
.scroll-ctl button { width: 3rem; height: 3rem; border-radius: 50%; border: 2px solid var(--gold); background: transparent; color: var(--gold); font-size: 1.5rem; line-height: 1; cursor: pointer; }
.scroll-ctl button:hover { background: var(--gold-bg); color: var(--night); }

/* history */
.history { background: var(--purple); }
.tl__item { width: min(78vw, 330px); }
.tl__img { aspect-ratio: 4 / 3; margin-bottom: 1.1rem; }
.tl__item time { display: block; font: 700 3.25rem/1 var(--f-head); color: var(--gold); letter-spacing: -.02em; margin-bottom: .6rem; padding-top: .9rem; border-top: 2px solid var(--gold); }
.tl__item h3 { font-size: 1.25rem; margin-bottom: .5rem; }
.tl__item p { color: var(--mist); font-size: .98rem; line-height: 1.55; margin: 0; }
.tl__item--crest .tl__img { background: var(--night); display: grid; place-items: center; padding: 1.5rem; }
.tl__item--crest .tl__img img { width: 78%; }
.tl__big { background: var(--gold-bg); color: var(--purple); display: grid; place-items: center; font: 700 9rem/1 var(--f-head); letter-spacing: -.04em; }

/* principles */
.principles { background: var(--night); }
.principles .sec__intro { margin-bottom: 3rem; }
.pr { list-style: none; counter-reset: p; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); column-gap: 3rem; }
.pr li { counter-increment: p; display: grid; grid-template-columns: 4.5rem 1fr; align-items: baseline; padding: 1.1rem 0; border-top: 1px solid var(--line); font: 400 1.2rem/1.4 var(--f-head); }
.pr li::before { content: counter(p, decimal-leading-zero); font: 700 2rem/1 var(--f-head); color: var(--gold); }
@media (max-width: 860px) { .pr { grid-template-columns: 1fr; } .pr li { grid-template-columns: 3.5rem 1fr; font-size: 1.08rem; } .pr li::before { font-size: 1.6rem; } }

/* activity bands */
.activity { background: var(--night); padding-bottom: 0; }
.band { display: grid; grid-template-columns: 1.15fr 1fr; min-height: 460px; }
.band__img { min-height: 320px; }
.band__text { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: clamp(2rem, 5vw, 5rem); background: var(--night-2); }
.band--flip .band__img { order: 2; }
.band--flip .band__text { background: var(--night-3); }
.band h3 { font-size: clamp(1.8rem, 3.2vw, 2.8rem); letter-spacing: -.015em; margin-bottom: 1rem; max-width: 14em; }
.band p { color: var(--mist); font-size: 1.12rem; max-width: 32em; margin-bottom: 1.75rem; }
.band:hover .duo img { filter: grayscale(.2) contrast(1.05); mix-blend-mode: normal; }
@media (max-width: 860px) { .band { grid-template-columns: 1fr; min-height: 0; } .band--flip .band__img { order: 0; } .band__img { aspect-ratio: 16 / 10; min-height: 0; } }

/* members wall */
.members { background: var(--purple); }
.wall { list-style: none; margin: 0 auto; padding: 0 var(--gut); max-width: 1440px; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 3px; }
.wall__btn { all: unset; box-sizing: border-box; position: relative; display: block; width: 100%; aspect-ratio: 4 / 5; cursor: pointer; overflow: hidden; }
.wall__btn .duo { position: absolute; inset: 0; }
.wall__btn img { object-position: 50% 22%; height: 100%; }
.wall__btn:hover img, .wall__btn:focus-visible img { filter: none; mix-blend-mode: normal; }
.wall__btn:focus-visible { outline: 3px solid var(--gold); outline-offset: -3px; z-index: 1; }
.wall__name { position: absolute; inset: auto 0 0 0; padding: 2.5rem .8rem .75rem; background: linear-gradient(transparent, rgba(29,11,61,.92)); font: 400 .92rem/1.2 var(--f-head); color: #fff; }
.wall__name b { display: block; font-size: 1.05rem; }
.wall__name small { display: block; color: var(--gold-soft); font-size: .78rem; margin-top: .2rem; }
.wall__star { color: var(--gold); margin-right: .3rem; }

.bio { border: 0; padding: 2.5rem; max-width: 38rem; width: calc(100% - 2rem); background: var(--night); color: #fff; border-top: 6px solid var(--gold); }
.bio::backdrop { background: rgba(23,8,50,.8); }
.bio img { width: 120px; height: 120px; object-fit: cover; margin-bottom: 1.25rem; }
.bio h3 { font-size: 2rem; }
.bio__role { color: var(--gold-soft); margin: .4rem 0 1.25rem; font-family: var(--f-head); }
.bio p:last-child { color: var(--mist); }
.x { position: absolute; top: .9rem; right: .9rem; width: 2.75rem; height: 2.75rem; border: 2px solid var(--gold); background: transparent; color: var(--gold); border-radius: 50%; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.x:hover { background: var(--gold-bg); color: var(--night); }

/* charter */
.charter { background: var(--night); }
.codex { border-top: 2px solid var(--gold); }
.codex__row { display: grid; grid-template-columns: 16rem 1fr; gap: 2rem; padding: 2rem 0; border-bottom: 1px solid var(--line); }
.codex h3 { font-size: 1.15rem; color: var(--gold); padding-top: .4rem; }
.codex p { margin: 0; font: 700 clamp(1.2rem, 2.1vw, 1.75rem)/1.4 var(--f-head); }
.codex i { font-style: normal; color: var(--gold); font-weight: 400; padding-inline: .15em; }
.codex__no { color: var(--mist-2); text-decoration: line-through; text-decoration-color: rgba(211,162,59,.55); text-decoration-thickness: 2px; }
.codex__no i { text-decoration: none; display: inline-block; }
.codex__virt { color: var(--gold-pale); font-weight: 400 !important; }
.codex__foot { margin: 1.5rem 0 0; color: var(--mist); }
@media (max-width: 760px) { .codex__row { grid-template-columns: 1fr; gap: .75rem; } }

/* news */
.news { background: var(--night-2); }
.news__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.feed { list-style: none; margin: 0; padding: 0; }
.feed li { display: grid; grid-template-columns: 6.5rem 1fr; gap: 1.5rem; padding: 1.5rem 0; border-top: 1px solid var(--line); }
.feed li:last-child { border-bottom: 1px solid var(--line); }
.feed time { font: 400 .9rem/1.2 var(--f-head); color: var(--mist-2); }
.feed time b { display: block; font-size: 2.6rem; line-height: 1; color: var(--gold); letter-spacing: -.02em; }
.tag { font: 700 .82rem/1 var(--f-head); color: var(--gold-soft); margin: 0 0 .5rem; }
.feed h3 { font-size: clamp(1.15rem, 1.8vw, 1.45rem); line-height: 1.25; }
.feed h3 a { color: #fff; text-decoration: none; }
.feed h3 a:hover { color: var(--gold); }
.news__side { display: grid; gap: 1.5rem; }
.video { position: relative; display: block; color: #fff; text-decoration: none; }
.video__img { aspect-ratio: 16 / 9; }
.video:hover .duo img { filter: none; mix-blend-mode: normal; }
.play { position: absolute; left: 1.25rem; top: 1.25rem; width: 3.5rem; height: 3.5rem; border-radius: 50%; background: var(--gold-bg); }
.play::after { content: ""; position: absolute; left: 1.35rem; top: 1.05rem; border-style: solid; border-width: .72rem 0 .72rem 1.15rem; border-color: transparent transparent transparent var(--night); }
.video__txt { display: block; padding: 1rem 1.25rem; background: var(--purple); }
.video__txt small, .ivs small { display: block; font: 400 .85rem/1.3 var(--f-head); color: var(--gold-soft); margin-bottom: .3rem; }
.video__txt b { font: 700 1.15rem/1.3 var(--f-head); }
.ivs { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--line); }
.ivs a { display: block; padding: 1rem 1.25rem; background: var(--night-2); color: #fff; text-decoration: none; font: 700 1.02rem/1.35 var(--f-head); }
.ivs a:hover { background: var(--night); color: var(--gold-pale); }
.ivs__quote a { font: italic 400 1.1rem/1.45 var(--f-body); color: var(--gold-pale); }

.cal { border: 1px solid var(--line); padding: 1.25rem 1.4rem; }
.cal h3 { font-size: 1.1rem; margin-bottom: .8rem; }
.cal__bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: .4rem; }
.cal__month { margin: 0; font: 700 1rem/1 var(--f-head); color: var(--gold); }
.cal__nav { width: 2.25rem; height: 2.25rem; border-radius: 50%; border: 1px solid var(--line); background: none; color: #fff; font-size: 1.2rem; cursor: pointer; }
.cal__nav:hover { border-color: var(--gold); color: var(--gold); }
.cal__grid { width: 100%; border-collapse: collapse; text-align: center; font: 400 .9rem/1 var(--f-head); }
.cal__grid th { color: var(--mist-2); font-weight: 400; font-size: .78rem; padding: .45rem 0; }
.cal__grid td { padding: .45rem 0; color: var(--mist); }
.cal__grid tr > :nth-child(n+6) { color: var(--gold-soft); }
.cal__grid td.today { background: radial-gradient(circle closest-side, var(--gold-bg) calc(100% - 1px), transparent 100%); color: var(--night); font-weight: 700; }
.cal__empty { margin: .9rem 0 0; padding-top: .9rem; border-top: 1px solid var(--line); color: var(--mist-2); font-size: .88rem; }
@media (max-width: 960px) { .news__grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .feed li { grid-template-columns: 4.5rem 1fr; gap: 1rem; } .feed time b { font-size: 2rem; } }

/* media filmstrip */
.media { background: var(--night); padding-bottom: clamp(2.5rem, 5vw, 4rem); }
.film > li { width: clamp(240px, 30vw, 420px); }
.film > li:nth-child(3n+1) { width: clamp(280px, 42vw, 600px); }
.film a { position: relative; display: block; height: clamp(300px, 34vw, 440px); overflow: hidden; background: var(--purple); color: #fff; text-decoration: none; }
.film img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.film a:hover img, .film a:focus-visible img { transform: scale(1.04); }
.film a:focus-visible { outline-offset: -3px; }
.film span { position: absolute; inset: auto 0 0 0; padding: 3rem 1.1rem 1rem; background: linear-gradient(transparent, rgba(29,11,61,.95)); }
.film time { display: block; font: 700 1.6rem/1 var(--f-head); color: var(--gold); margin-bottom: .35rem; }
.film b { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; font: 700 1rem/1.3 var(--f-head); }

.lightbox { border: 0; padding: 0; background: transparent; width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh; }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox::backdrop { background: rgba(23,8,50,.96); }
.lightbox figure { margin: 0; max-width: min(1100px, 84vw); }
.lightbox img { max-height: 78vh; width: auto; margin-inline: auto; }
.lightbox figcaption { margin-top: 1rem; text-align: center; font: 400 1rem/1.4 var(--f-head); color: #fff; }
.lightbox figcaption a { margin-left: .5rem; }
.x--lb { top: 1.25rem; right: 1.25rem; }
.lb__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 3.25rem; height: 3.25rem; border-radius: 50%; border: 2px solid var(--gold); background: transparent; color: var(--gold); font-size: 1.8rem; line-height: 1; cursor: pointer; }
.lb__nav:hover { background: var(--gold-bg); color: var(--night); }
.lb__prev { left: 1.25rem; } .lb__next { right: 1.25rem; }
@media (max-width: 600px) { .lb__nav { top: auto; bottom: 1.25rem; transform: none; } }

/* closing + footer */
.closing { background: var(--night); padding-block: 2.5rem; border-bottom: 1px solid var(--line); }
.closing__in { display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; }
.memory { display: flex; align-items: center; gap: 1.1rem; color: #fff; text-decoration: none; }
.memory img { width: 90px; height: 74px; object-fit: cover; filter: grayscale(1); }
.memory b { display: block; font: 700 1.1rem/1.2 var(--f-head); color: var(--gold); }
.memory span { color: var(--mist-2); font-size: .92rem; }
.partner { display: flex; align-items: center; gap: 1rem; }
.partner p { margin: 0; color: var(--mist-2); font: 400 .85rem/1 var(--f-head); }
.partner img { width: 170px; height: auto; background: #fff; padding: .4rem .6rem; }
.foot { background: var(--night-3); padding-block: 3rem; color: var(--mist-2); font-size: .9rem; }
.foot__in { display: grid; grid-template-columns: auto 1fr auto; gap: 1.5rem 2rem; align-items: center; }
.foot__crest { width: 76px; height: auto; }
.foot__name { font: 700 1.1rem/1.2 var(--f-head); color: #fff; margin-bottom: .3rem; }
.foot p { margin: 0; }
.foot__nav { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; justify-content: flex-end; }
.foot__nav a { color: #fff; text-decoration: none; font-family: var(--f-head); }
.foot__nav a:hover { color: var(--gold); }
@media (max-width: 860px) { .foot__in { grid-template-columns: auto 1fr; } .foot__nav { grid-column: 1 / -1; justify-content: flex-start; } }
@media (max-width: 600px) {
  .wall { grid-template-columns: repeat(3, 1fr); padding-inline: 0; }
  .wall__name { padding: 1.75rem .45rem .5rem; font-size: .74rem; }
  .wall__name b { font-size: .82rem; }
  .wall__name small { display: none; }
}

/* ==========================================================
   LIGHT BASE: purple used as an accent, not as the page colour.
   Dark contexts (hero, slogan band, footer, lightbox) redefine the
   tokens locally so the rules above keep working there.
   ========================================================== */
:root {
  --ink: #1c1726;
  --paper: #ffffff;
  --tint: #f4f2f7;       /* light lavender-grey for alternating sections */
  --tint-2: #ebe7f1;
  --gold: #7a570b;       /* gold as TEXT on light (AA contrast); fills use --gold-bg */
  --gold-soft: #7a570b;
  --hover: #3e107c;
  --mist: #4a4258;       /* body copy on light */
  --mist-2: #6c647c;     /* secondary text on light */
  --line: rgba(28,23,38,.13);
}
.hero, .slogan, .foot, .lightbox, .tl__item--crest, .video__txt, .wall__name, .film span {
  --gold: #d3a23b; --gold-soft: #cfb05d; --gold-pale: #f1e4bf; --hover: #f1e4bf;
  --mist: #e6e0f0; --mist-2: #c3b9d6; --line: rgba(255,255,255,.18);
}
body { background: var(--paper); color: var(--ink); }

/* photos in natural colour (no more purple duotone) */
.duo { background: var(--tint-2); }
.duo img, .duo--dark img { filter: none; mix-blend-mode: normal; opacity: 1; }
.duo::after { display: none; }

/* top bar: white text over the hero, white bar once scrolled */
.bar.is-solid, .bar.menu-open { background: rgba(255,255,255,.97); box-shadow: 0 1px 0 var(--line); }
.bar.is-solid .brand, .bar.menu-open .brand,
.bar.is-solid .nav a:not(.nav__cta), .bar.menu-open .nav a:not(.nav__cta) { color: var(--ink); }
.bar.is-solid .nav a:not(.nav__cta):hover, .bar.is-solid .nav a.is-current { color: var(--purple); }
.bar .nav .nav__cta { color: var(--ink); }
@media (max-width: 1080px) {
  .nav { background: #fff; }
  .nav a:not(.nav__cta) { color: var(--ink); }
}

/* hero: real colour photo, overlay only where the text sits */
.hero { background: #2a2233; }
.hero::after { background:
  linear-gradient(90deg, rgba(38,12,78,.82) 0%, rgba(38,12,78,.5) 45%, rgba(38,12,78,0) 78%),
  linear-gradient(0deg, rgba(20,10,35,.55) 0%, rgba(20,10,35,0) 40%); }
@media (max-width: 700px) {
  .hero::after { background: linear-gradient(0deg, rgba(38,12,78,.9) 15%, rgba(38,12,78,.55) 60%, rgba(38,12,78,.25)); }
}

/* the one strong purple band */
.slogan { background: var(--purple); border-top: 0; color: #fff; }

/* section backgrounds */
.about, .principles, .charter, .media, .closing { background: var(--paper); }
.history, .members, .news { background: var(--tint); }
.activity { background: var(--paper); }
.band__text { background: var(--tint); }
.band--flip .band__text { background: var(--tint-2); }
.tl__item--crest .tl__img { background: var(--purple); }
.tl__item--crest { color: var(--ink); }
.tl__item--crest time { color: #8f6610; }
.tl__item--crest p { color: #4a4258; }

/* text that was hard-coded white */
.about__big, .feed h3 a, .memory, .cal__nav { color: var(--ink); }
.feed h3 a:hover { color: var(--purple); }
.codex__virt { color: var(--purple); }
.btn--line { color: var(--ink); border-color: var(--ink); }
.btn--line:hover { color: #fff; background: var(--ink); border-color: var(--ink); }
.hero .btn--line { color: #fff; border-color: rgba(255,255,255,.6); }
.hero .btn--line:hover { color: var(--ink); background: #fff; border-color: #fff; }
.scroll-ctl button:hover, .x:hover, .lb__nav:hover { color: var(--ink); }

/* members: black-and-white portraits, colour on hover/focus */
.wall__btn .duo img { filter: grayscale(1) contrast(1.05); }
.wall__btn:hover .duo img, .wall__btn:focus-visible .duo img { filter: none; }
.wall__name { background: linear-gradient(transparent, rgba(18,12,28,.85)); }

/* interviews list */
.ivs { background: var(--line); }
.ivs a { background: #fff; color: var(--ink); }
.ivs a:hover { background: #fbfaff; color: var(--purple); }
.ivs__quote a { color: var(--purple); }

/* calendar */
.cal { background: #fff; }
.cal__grid td { color: var(--ink); }
.cal__grid td.today { color: var(--ink); }

/* media */
.film a { background: var(--tint-2); }
.film span { background: linear-gradient(transparent, rgba(18,12,28,.88)); }
.lightbox::backdrop { background: rgba(16,10,24,.94); }

/* bio dialog */
.bio { background: #fff; color: var(--ink); }
.bio::backdrop { background: rgba(16,10,24,.6); }
.bio p:last-child { color: var(--mist); }

/* footer: brand purple instead of near-black */
.foot { background: var(--purple); color: var(--mist); }
.closing { border-bottom: 0; border-top: 1px solid var(--line); }

/* hero + transparent top bar are dark contexts */
.hero { color: #fff; }
.bar:not(.is-solid):not(.menu-open) {
  --gold: #d3a23b; --gold-soft: #cfb05d; --gold-pale: #f1e4bf; --hover: #f1e4bf;
  --mist: #e6e0f0; --mist-2: #c3b9d6; --line: rgba(255,255,255,.18);
}
.bar:not(.is-solid):not(.menu-open) { background: linear-gradient(rgba(20,10,35,.45), rgba(20,10,35,0)); }

/* ==========================================================
   BALANCE: light base for reading, purple back as strong bands.
   Rhythm: hero (dark) / slogan (purple) / about (white) /
   history (purple) / principles (white) / activity (white+tint) /
   members (deep purple) / charter (white) / news (tint) /
   media (white) / join (gold) / footer (purple)
   ========================================================== */
.history, .members {
  --gold: #d3a23b; --gold-soft: #cfb05d; --gold-pale: #f1e4bf; --hover: #f1e4bf;
  --mist: #e6e0f0; --mist-2: #c3b9d6; --line: rgba(255,255,255,.18);
  color: #fff;
}
.history { background: var(--purple); }
.members { background: #2a0b57; }
.tl__item--crest { color: #fff; }
.tl__item--crest .tl__img { background: #2a0b57; }
.tl__item--crest time { color: var(--gold); }
.tl__item--crest p { color: var(--mist); }
.history .scroll-ctl button:hover, .members .more:hover { color: #1c1726; }

/* hero: deeper purple overlay, photo still in natural colour */
.hero::after { background:
  linear-gradient(90deg, rgba(38,12,78,.9) 0%, rgba(38,12,78,.66) 48%, rgba(38,12,78,.18) 85%),
  linear-gradient(0deg, rgba(28,10,58,.7) 0%, rgba(28,10,58,0) 45%); }
@media (max-width: 700px) {
  .hero::after { background: linear-gradient(0deg, rgba(38,12,78,.94) 15%, rgba(38,12,78,.68) 60%, rgba(38,12,78,.4)); }
}
/* slogan sits right under the hero: a touch deeper so the two read as separate */
.slogan { background: #4a1693; }

/* contacts (primary) + membership (secondary aside) */
.contacts { background: var(--tint); }
.contacts__in { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.contacts__list { margin: 2.5rem 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 2.5rem; }
.contacts__list div { padding: 1.1rem 0; border-top: 1px solid var(--line); }
.contacts__list dt { font: 400 .9rem/1.2 var(--f-head); color: var(--mist-2); margin-bottom: .35rem; }
.contacts__list dd { margin: 0; font: 700 clamp(1.2rem, 2vw, 1.55rem)/1.25 var(--f-head); color: var(--ink); }
.contacts__list a { color: var(--ink); text-decoration: none; border-bottom: 2px solid var(--gold-bg); }
.contacts__list a:hover { color: var(--purple); }
.membership { background: #fff; border-top: 4px solid var(--gold-bg); padding: 1.75rem; margin-top: .5rem; }
.membership h3 { font-size: 1.3rem; color: var(--purple); margin-bottom: .75rem; }
.membership p { color: var(--mist); margin-bottom: 1.25rem; }
.membership p a { color: var(--purple); }
.membership__cab { display: block; margin-top: 1.25rem; font: 400 .92rem/1.2 var(--f-head); color: var(--mist-2); }
.membership__cab:hover { color: var(--purple); }
@media (max-width: 860px) { .contacts__in { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .contacts__list { grid-template-columns: 1fr; } }

/* ==========================================================
   HISTORY: horizontal strip driven by vertical scroll.
   JS adds .is-pinned and sets the section height; the inner .hpin
   sticks to the viewport while the strip is translated sideways.
   Without JS (or with reduced motion) it stays a native swipe strip.
   ========================================================== */
.history .strip { scrollbar-width: none; }
.history .strip::-webkit-scrollbar { display: none; }
.history.is-pinned { padding-block: 0; }
.history.is-pinned .hpin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; padding-top: 4.5rem; }
.history.is-pinned .sec__head { margin-bottom: clamp(1.25rem, 3vh, 2.5rem); }
.history.is-pinned .strip { overflow: visible; scroll-snap-type: none; padding-bottom: 0; will-change: transform; }
.history.is-pinned .tl__item { width: min(78vw, 330px); }
.history.is-pinned .tl__img { aspect-ratio: 4 / 3; max-height: 34vh; width: 100%; }
.history.is-pinned .hpin > .wrap { width: 100%; }

/* ==========================================================
   MEMBERS: readable people block (replaces the portrait wall)
   Founders: large cards. Members: list by joining year.
   Text never sits on top of photos.
   ========================================================== */
.people { list-style: none; margin: 0; padding: 0; }
.people__h { font-size: 1.25rem; color: var(--gold); margin: 3rem 0 1.25rem; padding-bottom: .75rem; border-bottom: 1px solid var(--line); }
.people__h:first-of-type { margin-top: 0; }
.p__btn { all: unset; box-sizing: border-box; display: flex; gap: 1rem; width: 100%; height: 100%; color: #fff; }
button.p__btn { cursor: pointer; }
button.p__btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }

.ava { flex: 0 0 auto; width: 64px; height: 64px; border-radius: 50%; overflow: hidden; background: #3b1a70; display: grid; place-items: center; }
.ava img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }
.ava__ini { font: 700 1.3rem/1 var(--f-head); color: var(--gold); letter-spacing: .02em; }

.who { display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.who__name { font: 400 1.05rem/1.25 var(--f-head); color: #fff; }
.who__name b { font-weight: 700; }
.who__role { font: 700 .88rem/1.3 var(--f-head); color: var(--gold); }
.who__does { font-size: .98rem; line-height: 1.45; color: var(--mist); }
.who__more { font: 700 .88rem/1 var(--f-head); color: #fff; margin-top: .45rem; text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: .25em; text-decoration-thickness: 2px; }
button.p__btn:hover .who__name b, button.p__btn:focus-visible .who__name b { color: var(--hover); }
button.p__btn:hover .who__more { color: var(--gold); }

/* founders: big cards, photo on top, text below on solid colour */
.people--founders { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.5rem; }
.p--big .p__btn { flex-direction: column; gap: 1rem; }
.ava--big { width: 100%; height: auto; aspect-ratio: 4 / 5; border-radius: 0; }
.ava--big img { transition: transform .4s ease; }
button.p__btn:hover .ava--big img { transform: scale(1.04); }
.p--big .who__name { font-size: 1.15rem; }
.p--big .who__name b { display: block; font-size: 1.35rem; }

/* members: list grid by joining year */
.people--list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 2.5rem; }
.people--list .p { border-top: 1px solid var(--line); padding: 1.25rem 0; }
.people--list .p__btn { align-items: flex-start; }

@media (max-width: 1100px) {
  .people--founders { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .people--list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .people--founders { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 1rem; }
  .p--big .who__name b { font-size: 1.15rem; }
  .p--big .who__does { font-size: .9rem; }
  .people--list { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .ava--big img { transition: none; } }

/* bio dialog: always a light surface with its own tokens,
   wherever it sits in the DOM (it lives inside the dark members band) */
.bio {
  --gold: #7a570b; --gold-soft: #7a570b; --mist: #3d3549; --mist-2: #6c647c; --line: rgba(28,23,38,.13);
  background: #fff; color: var(--ink); max-width: 40rem;
}
.bio__ava { display: grid; place-items: center; width: 112px; height: 112px; border-radius: 50%; overflow: hidden; background: #2a0b57; margin-bottom: 1.25rem; border: 3px solid var(--gold-bg); }
.bio__ava img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; margin: 0; }
.bio__ava .ava__ini { color: var(--gold-bg); font-size: 2rem; }
.bio h3 { color: var(--ink); font-size: clamp(1.6rem, 4vw, 2.1rem); padding-right: 3rem; }
.bio .bio__role { color: var(--gold); font-weight: 700; }
.bio .bio__text, .bio p:last-child { color: var(--mist); font-size: 1.08rem; line-height: 1.65; }
.bio .x { border-color: var(--gold-bg); color: var(--gold); }
.bio .x:hover { background: var(--gold-bg); color: var(--ink); }
.bio__ava [hidden] { display: none !important; }   /* global img{display:block} would otherwise beat [hidden] */
/* first row of the members list sits right under the heading rule: no second line */
.people--list .p:nth-child(-n+3) { border-top: 0; }
@media (max-width: 1100px) { .people--list .p:nth-child(3) { border-top: 1px solid var(--line); } }
@media (max-width: 640px) { .people--list .p:nth-child(2) { border-top: 1px solid var(--line); } }

/* members as cards (photo on top), a step smaller than the founders.
   Most member photos only exist at 120px, so cards stay around 180px wide. */
.people--cards { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 2.25rem 1.25rem; }
.p--card .p__btn { flex-direction: column; gap: .85rem; }
.ava--card { width: 100%; height: auto; aspect-ratio: 1; border-radius: 0; }
.ava--card .ava__ini, .ava--big .ava__ini { font-size: clamp(2rem, 4vw, 2.8rem); }
.p--card .who__name { font-size: 1rem; }
.p--card .who__name b { display: block; font-size: 1.15rem; }
.p--card .who__does { font-size: .92rem; }
.ava--card img { transition: transform .4s ease; }
button.p__btn:hover .ava--card img { transform: scale(1.04); }
@media (max-width: 1100px) { .people--cards { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 640px) { .people--cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem 1rem; } .p--card .who__does { font-size: .88rem; } }
@media (prefers-reduced-motion: reduce) { .ava--card img { transition: none; } }

/* video card: a link on a light section with a purple caption, so set its colours explicitly
   instead of inheriting the light-section hover colour (which made the title purple on purple) */
.video, .video:hover { color: #fff; }
.video:hover .video__txt b, .video:focus-visible .video__txt b { color: #f1e4bf; }

/* ==========================================================
   HERO: mosaic of event photos behind a solid purple text panel.
   Tiles are small, so the low-res originals don't show their age.
   ========================================================== */
.hero { background: #2a0b57; }
.hero__wall { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 1fr; gap: 4px; }
.hero__wall li { overflow: hidden; background: #3b1a70; }
.hero__wall img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85); }
.hero::after { background: linear-gradient(90deg, #2a0b57 0%, #2a0b57 34%, rgba(42,11,87,.82) 52%, rgba(42,11,87,.35) 78%, rgba(42,11,87,.2) 100%); }
.hero__lede { max-width: 30em; }
.hero__foot { flex-direction: column; align-items: flex-start; gap: 1.75rem; }
@media (max-width: 900px) {
  .hero__wall { grid-template-columns: repeat(3, 1fr); }
  .hero::after { background: linear-gradient(0deg, #2a0b57 0%, #2a0b57 45%, rgba(42,11,87,.7) 75%, rgba(42,11,87,.45) 100%); }
}
/* title a step smaller so crest + title + lede + buttons fit one desktop screen */
.hero h1 { font-size: clamp(3.1rem, 8.6vw, 8.2rem); }
