@font-face {
  font-family: "Cormorant";
  src: url("../fonts/cormorant-regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Cormorant";
  src: url("../fonts/cormorant-semibold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-medium.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}

:root {
  --mist: #edf2f7;
  --mist-deep: #e3ebf2;
  --paper: #fbfcfd;
  --paper-solid: #ffffff;
  --ink: #142435;
  --ink-soft: #53687a;
  --ink-faint: #8293a1;
  --blue: #668ba8;
  --blue-deep: #345b79;
  --gold: #a98b4d;
  --gold-light: #d8c79d;
  --line: rgba(69, 101, 127, 0.17);
  --line-strong: rgba(69, 101, 127, 0.28);
  --shadow: 0 22px 60px rgba(32, 57, 78, 0.10);
  --shadow-hover: 0 28px 75px rgba(32, 57, 78, 0.15);
  --page: min(1180px, calc(100vw - 48px));
  --header-h: 80px;
  --serif: "Cormorant", Georgia, serif;
  --sans: "Inter", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-logo: cubic-bezier(0.075, 0.82, 0.165, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--mist);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::selection {
  color: var(--paper-solid);
  background: var(--blue-deep);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

p,
h1,
h2,
h3 {
  margin-top: 0;
}

.page {
  width: var(--page);
  margin-inline: auto;
}

.label,
.panel__kicker {
  margin: 0;
  color: var(--gold);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

.display,
.headline,
.panel__title,
.subhead {
  font-family: var(--serif);
  color: var(--ink);
}

.display {
  margin: 0;
  font-size: clamp(48px, 6vw, 78px);
  font-weight: 400;
  line-height: 0.96;
  letter-spacing: -0.035em;
}

.headline {
  margin-bottom: 25px;
  font-size: clamp(38px, 5vw, 62px);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.panel__title {
  margin: 7px 0 0;
  font-size: clamp(27px, 3vw, 36px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.025em;
}

.subhead {
  margin: 0 0 5px;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.13;
}

.lede {
  margin: 0;
  max-width: 34em;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: clamp(21px, 2.2vw, 27px);
  line-height: 1.36;
}

.body-text,
.panel__intro,
.contact__body {
  color: var(--ink-soft);
}

.meta {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.55;
}

/* Navigation */

.masthead {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  padding-top: 16px;
  pointer-events: none;
}

.masthead__inner {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: clamp(18px, 2.5vw, 36px);
  align-items: center;
  min-height: 56px;
  padding: 0 20px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.80);
  box-shadow: 0 10px 35px rgba(40, 63, 82, 0.08);
  backdrop-filter: blur(18px) saturate(1.25);
  pointer-events: auto;
  transition:
    min-height 0.35s var(--ease),
    background 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
}

.masthead.is-stuck .masthead__inner {
  min-height: 50px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 45px rgba(27, 50, 69, 0.13);
}

.masthead__end {
  display: flex;
  align-items: center;
}

.masthead__end {
  justify-content: flex-end;
  gap: 12px;
}

.brand {
  display: block;
  justify-self: start;
  width: 108px;
  line-height: 0;
  transform-origin: left center;
  transition: width 1s var(--ease-logo);
}

.masthead.is-stuck .brand {
  width: 88px;
}

.masthead__nav {
  min-width: 0;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 2vw, 27px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav a {
  position: relative;
  display: block;
  padding: 7px 0;
  color: #40586b;
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 0.25s ease;
}

.nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 1px;
  left: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

.nav a:hover,
.nav a.is-active {
  color: var(--ink);
}

.nav a:hover::after,
.nav a.is-active::after {
  transform: scaleX(1);
}

.lang {
  display: flex;
  align-items: center;
  margin-left: auto;
  padding-left: 12px;
  border-left: 1px solid var(--line);
}

.lang a {
  min-width: 31px;
  padding: 6px 7px;
  border-radius: 3px;
  color: var(--ink-faint);
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.12em;
  text-align: center;
  transition: color 0.2s ease, background 0.2s ease;
}

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

.lang a.active {
  color: var(--paper-solid);
  background: var(--blue-deep);
}

.burger {
  display: none;
  width: 31px;
  height: 31px;
  padding: 7px 5px;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.burger span {
  display: block;
  width: 100%;
  height: 1px;
  margin: 4px 0;
  background: currentColor;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* Hero */

.hero {
  position: relative;
  display: grid;
  min-height: 720px;
  overflow: hidden;
  isolation: isolate;
  place-items: center;
  padding: 118px 0 82px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 78% 50%, rgba(211, 225, 235, 0.34), transparent 28%),
    linear-gradient(145deg, #fbfcfd 0%, #f1f5f8 100%);
}

.polygon-field {
  position: absolute;
  z-index: -1;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(450px, 1.05fr);
  gap: clamp(16px, 2vw, 32px);
  align-items: center;
}

.hero__copy {
  position: relative;
  z-index: 2;
  text-align: left;
}

.hero .label {
  margin-bottom: 17px;
  font-size: 14px;
}

.hero__title {
  max-width: 10.2em;
  font-size: clamp(48px, 4.7vw, 66px);
  line-height: 0.98;
}

.hero__topic {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 17px;
  margin-top: 27px;
}

.hero__topic p {
  margin: 0;
  color: var(--blue-deep);
  font-family: var(--serif);
  font-size: clamp(21px, 2.3vw, 29px);
  line-height: 1.18;
}

.hero__topic-mark {
  height: 1px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
}

.hero__brief {
  display: grid;
  gap: 14px;
  max-width: 590px;
  margin-top: 25px;
  text-align: left;
}

.hero__lede {
  margin: 0;
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.35;
  color: var(--ink);
}

.hero__note {
  max-width: 50em;
  margin: 0;
  padding-top: 14px;
  border-top: 1px solid var(--line-strong);
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.7;
}

.hero__tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 7px 21px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.hero__tags li {
  color: var(--ink-faint);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.action {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin-top: 23px;
  padding: 10px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.55);
  color: var(--ink);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition:
    color 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease,
    transform 0.25s ease;
}

.action::after {
  content: "↘";
  color: var(--gold);
}

.action:hover {
  border-color: var(--gold);
  background: var(--paper-solid);
  transform: translateY(-2px);
}

.hero__identity {
  position: relative;
  z-index: 1;
  width: min(112%, 760px);
  margin: 0;
  transform: translateX(2%);
  filter: drop-shadow(0 32px 58px rgba(34, 67, 94, 0.18));
}

.hero__identity::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 12% 5%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(194, 220, 237, 0.5), rgba(239, 246, 250, 0.08) 58%, transparent 74%);
  filter: blur(10px);
}

.hero__identity img {
  position: relative;
  z-index: 2;
  width: 132%;
  max-width: none;
  margin-left: -16%;
  mix-blend-mode: multiply;
  filter: contrast(1.045) saturate(1.025);
}

.hero__identity figcaption {
  position: absolute;
  z-index: 3;
  right: 9%;
  bottom: 4%;
  left: 9%;
  color: var(--ink-faint);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-align: center;
  text-transform: uppercase;
}

.hero__orbit {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  aspect-ratio: 1;
  border: 1px solid rgba(81, 122, 153, 0.19);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.hero__orbit--outer {
  width: 103%;
  border-style: dashed;
  animation: orbit-spin 55s linear infinite;
}

.hero__orbit--inner {
  width: 80%;
  border-color: rgba(169, 139, 77, 0.22);
  animation: orbit-spin-reverse 42s linear infinite;
}

@keyframes orbit-spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes orbit-spin-reverse {
  to { transform: translate(-50%, -50%) rotate(-360deg); }
}

/* Main dashboard */

.site-field {
  position: relative;
  overflow: hidden;
  padding: 24px 0 96px;
  background:
    radial-gradient(circle at 3% 18%, rgba(125, 158, 182, 0.14), transparent 26%),
    radial-gradient(circle at 98% 72%, rgba(204, 186, 139, 0.13), transparent 24%),
    linear-gradient(180deg, #e9f0f5 0%, #f1f4f7 48%, #e9eff4 100%);
}

.site-field::before,
.site-field::after {
  content: "";
  position: absolute;
  width: 560px;
  aspect-ratio: 1;
  border: 1px solid rgba(95, 132, 158, 0.11);
  transform: rotate(45deg);
  pointer-events: none;
}

.site-field::before {
  top: 5%;
  left: -420px;
}

.site-field::after {
  right: -430px;
  bottom: 4%;
}

.constellation {
  position: absolute;
  width: 240px;
  height: 240px;
  opacity: 0.28;
  pointer-events: none;
  background:
    radial-gradient(circle at 10% 60%, var(--gold) 0 2px, transparent 3px),
    radial-gradient(circle at 38% 18%, var(--blue) 0 2px, transparent 3px),
    radial-gradient(circle at 75% 35%, var(--gold) 0 2px, transparent 3px),
    radial-gradient(circle at 92% 78%, var(--blue) 0 2px, transparent 3px);
}

.constellation::before,
.constellation::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--blue), transparent);
  transform-origin: center;
}

.constellation::before {
  top: 80px;
  transform: rotate(24deg);
}

.constellation::after {
  top: 130px;
  transform: rotate(-31deg);
}

.constellation--one {
  top: 4%;
  left: -40px;
}

.constellation--two {
  right: -55px;
  bottom: 13%;
  transform: rotate(145deg);
}

.dashboard {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
}

.dashboard__item {
  scroll-margin-top: 88px;
}

.dashboard__item--about {
  grid-column: 1 / -1;
}

.dashboard__item--experts {
  grid-column: span 8;
}

.dashboard__item--program {
  grid-column: span 4;
}

.dashboard__item--materials {
  grid-column: span 5;
}

.dashboard__item--gallery {
  grid-column: span 7;
}

.dashboard__item--partners {
  grid-column: 1 / -1;
}

.dashboard__item--contacts {
  grid-column: 1 / -1;
}

.panel {
  position: relative;
  height: 100%;
  overflow: hidden;
  padding: clamp(25px, 3vw, 38px);
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.87);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  transition:
    transform 0.5s var(--ease),
    box-shadow 0.5s var(--ease),
    border-color 0.5s var(--ease);
}

.panel::before {
  content: "";
  position: absolute;
  top: 0;
  right: 15%;
  left: 15%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(169, 139, 77, 0.65), transparent);
}

.panel:hover {
  border-color: rgba(255, 255, 255, 1);
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.panel__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 25px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.panel__sigil {
  flex: 0 0 auto;
  color: var(--gold);
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1;
}

.panel__intro {
  max-width: 42em;
  margin: -4px 0 26px;
  font-size: 14px;
  line-height: 1.65;
}

/* About */

.panel--about {
  padding: clamp(32px, 5vw, 62px);
  background:
    radial-gradient(circle at 88% 20%, rgba(116, 151, 177, 0.12), transparent 27%),
    rgba(255, 255, 255, 0.90);
}

.about-layout {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: clamp(40px, 7vw, 90px);
  align-items: end;
}

.about-layout__detail {
  padding-bottom: 9px;
}

.about-layout__detail .body-text {
  margin: 0;
  padding-left: 25px;
  border-left: 1px solid var(--gold-light);
  font-size: 14px;
  line-height: 1.75;
}

.figures {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 43px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.figure {
  position: relative;
  padding: 0 30px;
  border-left: 1px solid var(--line);
}

.figure:first-child {
  padding-left: 0;
  border-left: 0;
}

.figure__value {
  color: var(--blue-deep);
  font-family: var(--serif);
  font-size: 47px;
  line-height: 0.9;
}

.figure__caption {
  max-width: 20em;
  margin-top: 9px;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.45;
}

/* Experts */

.panel--experts::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -145px;
  bottom: -240px;
  width: 430px;
  aspect-ratio: 1;
  border: 1px solid rgba(169, 139, 77, 0.1);
  border-radius: 50%;
  box-shadow:
    0 0 0 48px rgba(169, 139, 77, 0.022),
    0 0 0 96px rgba(102, 139, 168, 0.018);
}

.people {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.person {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 16px;
  align-items: center;
  min-width: 0;
  padding: 17px 0;
  border-top: 1px solid var(--line);
}

.person:nth-child(-n + 2) {
  border-top: 0;
  padding-top: 0;
}

.person__frame {
  position: relative;
  display: grid;
  width: 76px;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid rgba(90, 126, 153, 0.18);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.65), transparent 42%),
    conic-gradient(from 30deg, #dbe6ed, #a9c0d0, #edf2f5, #b8cbd8, #dbe6ed);
  place-items: center;
}

.person__frame::after {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(255, 255, 255, 0.75);
}

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

.person__halo {
  position: absolute;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(169, 139, 77, 0.35);
  border-radius: 50%;
}

.person__initial {
  position: relative;
  z-index: 1;
  color: rgba(29, 61, 85, 0.58);
  font-family: var(--serif);
  font-size: 35px;
}

.person__copy {
  min-width: 0;
}

.person__name {
  margin: 0 0 5px;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.1;
}

.person__role {
  margin: 0;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.5;
}

/* Programme */

.panel--program {
  background:
    linear-gradient(150deg, rgba(221, 233, 241, 0.35), transparent 45%),
    rgba(255, 255, 255, 0.9);
}

.agenda {
  margin: 0;
  padding: 0;
  list-style: none;
}

.agenda__item {
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.agenda__item:first-child {
  padding-top: 0;
  border-top: 0;
}

.agenda__when {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 11px;
}

.agenda__seq {
  color: var(--gold);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

.agenda__date {
  color: var(--blue-deep);
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1;
  white-space: nowrap;
}

.agenda__copy .meta {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

/* Materials */

.docs {
  margin: 0;
  padding: 0;
  list-style: none;
}

.docs__row {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 15px;
  align-items: center;
  padding: 15px 0;
  border-top: 1px solid var(--line);
}

.docs__row:first-child {
  padding-top: 0;
  border-top: 0;
}

.docs__overlay {
  position: absolute;
  z-index: 2;
  inset: 0;
}

.docs__row--link .docs__name {
  transition: color 0.2s ease;
}

.docs__row--link:hover .docs__name,
.docs__row--link:focus-within .docs__name {
  color: var(--blue-deep);
}

.doc-icon {
  position: relative;
  display: grid;
  width: 38px;
  height: 48px;
  border: 1px solid var(--line-strong);
  color: var(--blue-deep);
  place-items: end center;
}

.doc-icon::before {
  content: "";
  position: absolute;
  top: -1px;
  right: -1px;
  width: 11px;
  height: 11px;
  border-bottom: 1px solid var(--line-strong);
  border-left: 1px solid var(--line-strong);
  background: var(--paper-solid);
}

.doc-icon span {
  margin-bottom: 6px;
  font-size: 7px;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.docs__copy {
  min-width: 0;
}

.docs__name,
.docs__desc {
  display: block;
}

.docs__name {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.15;
}

.docs__desc {
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 10px;
  line-height: 1.45;
}

.docs__state {
  color: var(--gold);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Gallery */

.plates {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  grid-template-rows: repeat(2, 105px);
  gap: 8px;
}

.plate {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.8);
  background: var(--mist-deep);
}

.plate::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(20, 36, 53, 0.16));
}

.plate img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.88) contrast(1.03);
  transition: transform 0.8s var(--ease), filter 0.8s var(--ease);
}

.plate:hover img {
  filter: saturate(1) contrast(1.04);
  transform: scale(1.035);
}

.plate span {
  position: absolute;
  z-index: 1;
  right: 11px;
  bottom: 8px;
  color: rgba(255, 255, 255, 0.9);
  font-family: var(--serif);
  font-size: 17px;
}

.plate--1 {
  grid-row: 1 / 3;
}

.plate--3 img {
  object-position: 50% 43%;
}

.gallery-note {
  margin: 18px 0 0;
  color: var(--ink-soft);
  font-size: 11px;
}

/* Partners */

.partner-marks {
  display: grid;
  grid-template-columns: 1.05fr 1.35fr 1fr 1.45fr 0.8fr;
  margin: 4px 0 28px;
  border: 1px solid var(--line);
  background: rgba(246, 249, 251, 0.72);
}

.partner-mark {
  display: grid;
  min-width: 0;
  height: 132px;
  padding: 18px 14px;
  border-left: 1px solid var(--line);
  place-items: center;
}

.partner-mark:first-child {
  border-left: 0;
}

.partner-mark img {
  width: auto;
  max-width: 100%;
  max-height: 86px;
  object-fit: contain;
}

.partner-mark--arya img {
  max-height: 58px;
}

.partner-mark--house img {
  max-height: 50px;
}

.partner-mark--ta img {
  max-height: 65px;
}

.orgs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: organisations;
}

.orgs li {
  position: relative;
  min-height: 76px;
  padding: 18px 18px 16px 32px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.4;
  counter-increment: organisations;
}

.orgs li:nth-child(-n + 3) {
  border-top: 0;
}

.orgs li:nth-child(3n + 1) {
  border-left: 0;
}

.orgs li::before {
  content: counter(organisations, decimal-leading-zero);
  position: absolute;
  top: 18px;
  left: 8px;
  color: var(--gold);
  font-family: var(--serif);
  font-size: 12px;
}

/* Contact */

.panel--contacts {
  display: grid;
  grid-template-columns: minmax(320px, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(35px, 7vw, 95px);
  align-items: end;
  color: #f4f7f9;
  border-color: rgba(255, 255, 255, 0.15);
  background:
    radial-gradient(circle at 100% 0, rgba(195, 172, 116, 0.28), transparent 37%),
    linear-gradient(145deg, #24445d, #152d41);
}

.panel--contacts::before {
  background: linear-gradient(90deg, transparent, rgba(216, 199, 157, 0.8), transparent);
}

.panel--contacts .panel__header {
  margin: 0;
  border-color: rgba(255, 255, 255, 0.18);
}

.panel--contacts .panel__title,
.panel--contacts .panel__kicker,
.panel--contacts .panel__sigil {
  color: #f5f7f8;
}

.contact__identity,
.contact__copy {
  min-width: 0;
}

.contact__logo {
  width: min(100%, 330px);
  margin-top: 28px;
  padding: 22px 24px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 50px rgba(8, 25, 39, 0.22);
}

.contact__copy {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.contact__body {
  margin: 0;
  color: rgba(239, 244, 247, 0.72);
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.45;
}

.contact__mail {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 26px;
  padding-top: 17px;
  border-top: 1px solid rgba(255, 255, 255, 0.23);
  color: #fff;
  font-size: 13px;
  transition: color 0.25s ease;
}

.contact__mail:hover {
  color: var(--gold-light);
}

/* Footer */

.colophon {
  padding: 24px 0;
  border-top: 1px solid var(--line);
  background: #eef3f7;
}

.colophon__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--ink-faint);
  font-size: 9px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.colophon__credit {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink-soft);
  transition: color 0.25s ease;
}

.colophon__credit:hover {
  color: #bb123b;
}

.colophon__credit img {
  width: auto;
  height: 31px;
  object-fit: contain;
}

/* Responsive */

@media (max-width: 1120px) {
  .nav {
    gap: 14px;
  }

  .nav a {
    font-size: 10px;
  }

  .dashboard__item--experts {
    grid-column: span 7;
  }

  .dashboard__item--program {
    grid-column: span 5;
  }
}

@media (max-width: 920px) {
  :root {
    --page: min(100% - 32px, 760px);
  }

  .masthead__inner {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .masthead__end {
    justify-content: flex-end;
  }

  .masthead__nav {
    display: none;
  }

  .burger {
    display: block;
  }

  .lang {
    margin-left: 0;
  }

  .masthead.is-open {
    height: 100vh;
    padding: 0;
    background: rgba(227, 235, 242, 0.9);
    backdrop-filter: blur(15px);
  }

  .masthead.is-open .masthead__inner {
    grid-template-columns: auto 1fr auto;
    grid-template-areas:
      "brand . controls"
      "menu menu menu";
    align-content: start;
    min-height: calc(100vh - 32px);
    margin-top: 16px;
    padding: 15px 24px 35px;
  }

  .masthead.is-open .brand {
    display: block;
    grid-area: brand;
    width: 100px;
  }

  .masthead.is-open .masthead__nav {
    display: block;
    grid-area: menu;
  }

  .masthead.is-open .masthead__end {
    grid-area: controls;
  }

  .masthead.is-open .nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .masthead.is-open .nav a {
    padding: 15px 0;
    border-bottom: 1px solid var(--line);
    font-family: var(--serif);
    font-size: 25px;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
  }

  .masthead.is-open .nav a::after {
    display: none;
  }

  .hero {
    padding-bottom: 55px;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .hero__copy {
    max-width: 680px;
    margin-inline: auto;
    text-align: center;
  }

  .hero__title {
    margin-inline: auto;
  }

  .hero__topic {
    justify-content: center;
    max-width: 620px;
    margin-right: auto;
    margin-left: auto;
  }

  .hero__brief {
    max-width: 620px;
    margin-right: auto;
    margin-left: auto;
    text-align: center;
  }

  .hero__tags {
    justify-content: center;
  }

  .hero__identity {
    width: min(100%, 610px);
    margin-inline: auto;
  }

  .dashboard__item--experts,
  .dashboard__item--program,
  .dashboard__item--materials,
  .dashboard__item--gallery,
  .dashboard__item--partners,
  .dashboard__item--contacts {
    grid-column: 1 / -1;
  }

  .about-layout {
    grid-template-columns: 1fr;
    gap: 27px;
  }

  .about-layout__detail .body-text {
    max-width: 50em;
  }

  .panel--contacts {
    grid-template-columns: 1fr;
    gap: 25px;
    min-height: 0;
  }

  .contact__mail {
    grid-column: auto;
    margin-top: 0;
  }
}

@media (max-width: 620px) {
  :root {
    --page: calc(100vw - 24px);
  }

  .masthead {
    padding-top: 12px;
  }

  .masthead__inner {
    min-height: 50px;
    padding: 0 12px;
  }

  .brand {
    width: 88px;
  }

  .hero {
    min-height: auto;
    padding: 100px 0 56px;
  }

  .hero .label {
    max-width: 28em;
    margin-right: auto;
    margin-left: auto;
  }

  .display {
    font-size: clamp(43px, 13vw, 60px);
  }

  .hero__title {
    max-width: 9em;
    font-size: clamp(41px, 11.4vw, 52px);
  }

  .hero__topic {
    grid-template-columns: 24px 1fr;
    margin-top: 25px;
  }

  .hero__topic p {
    margin: 0;
    font-size: 23px;
  }

  .hero__brief {
    grid-template-columns: 1fr;
    gap: 15px;
    margin-top: 20px;
    text-align: center;
  }

  .hero__lede {
    font-size: 19px;
  }

  .hero__note {
    padding: 15px 0 0;
    border-top: 1px solid var(--gold-light);
    border-left: 0;
  }

  .hero__identity {
    width: min(100%, 380px);
  }

  .hero__identity img {
    width: 130%;
    margin-left: -15%;
  }

  .hero__identity figcaption {
    font-size: 7px;
  }

  .hero__tags {
    gap: 5px 14px;
  }

  .site-field {
    padding: 12px 0 54px;
  }

  .dashboard {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .panel,
  .panel--about {
    padding: 25px 20px;
    border-radius: 5px;
  }

  .panel:hover {
    transform: none;
  }

  .headline {
    font-size: 38px;
  }

  .panel__header {
    margin-bottom: 20px;
    padding-bottom: 17px;
  }

  .figures {
    grid-template-columns: 1fr;
    margin-top: 30px;
    padding-top: 0;
    border-top: 0;
  }

  .figure,
  .figure:first-child {
    display: grid;
    grid-template-columns: 85px 1fr;
    gap: 15px;
    align-items: center;
    padding: 15px 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .figure__value {
    font-size: 40px;
  }

  .figure__caption {
    margin-top: 0;
  }

  .people {
    grid-template-columns: 1fr;
  }

  .person,
  .person:nth-child(-n + 2) {
    padding: 15px 0;
    border-top: 1px solid var(--line);
  }

  .person:first-child {
    padding-top: 0;
    border-top: 0;
  }

  .person__frame {
    width: 68px;
  }

  .docs__row {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .docs__state {
    grid-column: 2;
  }

  .plates {
    grid-template-rows: repeat(2, 86px);
  }

  .orgs {
    grid-template-columns: 1fr 1fr;
  }

  .partner-marks {
    grid-template-columns: 1fr 1fr;
  }

  .partner-mark {
    height: 112px;
    border-top: 1px solid var(--line);
  }

  .partner-mark:nth-child(-n + 2) {
    border-top: 0;
  }

  .partner-mark:nth-child(2n + 1) {
    border-left: 0;
  }

  .partner-mark--ta {
    grid-column: 1 / -1;
    border-left: 0;
  }

  .orgs li:nth-child(-n + 3),
  .orgs li:nth-child(3n + 1) {
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
  }

  .orgs li:nth-child(-n + 2) {
    border-top: 0;
  }

  .orgs li:nth-child(2n + 1) {
    border-left: 0;
  }

  .colophon__foot {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
