/* IV конференция АРВЭ 2026. Визуальная система взята с баннера 2026:
   изумруд + золото, доска го (сетка, камни, золотые трассы).
   Скругления: поверхности 0, интерактивные кнопки и чипы — pill, фото и камни — круг.
   Слои (z-index): шапка 50, мобильное меню 60, ссылка «к содержанию» 70. */

:root {
  --c-emerald-950: #0E2824;
  --c-emerald-900: #13302A;
  --c-emerald-850: #1A3932;
  --c-emerald-800: #21443A;
  --c-emerald-700: #2A4E44;

  --c-cream: #F8F3EA;
  --c-text: #E1E4DA;
  --c-muted: #AEBBB1;
  --c-gold: #F0D28C;
  --c-gold-strong: #FADF92;
  --c-gold-line: #D4BE8C;
  --c-gold-deep: #B89A5E;
  --c-line: rgba(236, 226, 205, 0.12);
  --c-line-strong: rgba(236, 226, 205, 0.26);

  --c-ivory: #F3F1EC;
  --c-ivory-card: #FAF9F6;
  --c-ivory-line: rgba(19, 48, 42, 0.1);
  --c-ink: #13302A;
  --c-ink-muted: #56675E;
  --c-teal: #055759;

  --font: "Raleway", "Segoe UI", system-ui, sans-serif;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);

  --container: 1280px;
  --gutter: clamp(16px, 4vw, 48px);
  --header-h: 72px;
  --module: 88px;
  --section-y: clamp(72px, 9vw, 136px);
  --title-gap: clamp(32px, 4vw, 56px);

  /* type scale */
  --fs-100: 14px;
  --fs-200: 15px;
  --fs-300: 17px;
  --fs-400: clamp(19px, 1.4vw, 21px);
  --fs-500: clamp(22px, 1.9vw, 28px);
  --fs-600: clamp(30px, 3.4vw, 52px);
}

/* ---------- base ---------- */

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

[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--c-emerald-850);
  color: var(--c-text);
  font-family: var(--font);
  font-size: var(--fs-300);
  line-height: 1.65;
  font-variant-numeric: lining-nums;
  font-feature-settings: "lnum" 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

body.modal-open {
  overflow: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

h1,
h2,
h3,
p,
ul,
ol,
figure,
blockquote {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

:focus-visible {
  outline: 2px solid var(--c-gold);
  outline-offset: 3px;
}

.program :focus-visible {
  outline-color: var(--c-teal);
}

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 70;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--c-gold);
  color: var(--c-emerald-950);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease-out);
}

.skip-link:focus-visible {
  transform: none;
}

.section {
  padding-block: var(--section-y);
}

.section + .section {
  border-top: 1px solid var(--c-line);
}

.section-title {
  color: var(--c-cream);
  font-size: var(--fs-600);
  font-weight: 600;
  line-height: 1.1;
  text-wrap: balance;
}

.text-link {
  color: var(--c-gold);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition:
    color 0.2s var(--ease-out),
    text-underline-offset 0.2s var(--ease-out);
}

.text-link:hover {
  color: var(--c-gold-strong);
  text-underline-offset: 6px;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 0.2s var(--ease-out),
    border-color 0.2s var(--ease-out),
    color 0.2s var(--ease-out),
    transform 0.2s var(--ease-out);
}

.btn .icon {
  width: 20px;
  height: 20px;
  transition: transform 0.25s var(--ease-out);
}

.btn:hover .icon {
  transform: translateX(3px);
}

.btn:hover .icon--diagonal {
  transform: translate(2px, -2px);
}

.btn .icon--turn,
.btn:hover .icon--turn {
  transform: none;
}

.btn:hover .icon--turn {
  transform: translateY(2px);
}

.btn[aria-expanded="true"] .icon--turn {
  transform: rotate(180deg);
}

.btn:active {
  transform: translateY(1px) scale(0.98);
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.48;
  transform: none;
}

.btn--primary {
  background: var(--c-gold);
  color: var(--c-emerald-950);
}

.btn--primary:hover {
  background: var(--c-gold-strong);
}

.btn--ghost {
  border-color: var(--c-line-strong);
  color: var(--c-cream);
}

.btn--ghost:hover {
  border-color: var(--c-gold);
  color: var(--c-gold-strong);
}

.btn--compact {
  min-height: 44px;
  padding: 0 18px 0 20px;
  font-size: 15px;
}

.btn--compact .icon {
  width: 18px;
  height: 18px;
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  isolation: isolate;
  height: var(--header-h);
  transition: box-shadow 0.3s var(--ease-out);
}

/* Background and blur live on a pseudo-element: backdrop-filter on the header itself
   would become the containing block of the fixed mobile menu. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(19, 48, 42, 0.94);
  opacity: 0;
  transition: opacity 0.3s var(--ease-out);
}

@supports (backdrop-filter: blur(1px)) {
  .site-header::before {
    background: rgba(19, 48, 42, 0.8);
    backdrop-filter: blur(14px);
  }
}

.site-header.is-solid,
body.menu-open .site-header {
  box-shadow: 0 1px 0 var(--c-line);
}

.site-header.is-solid::before,
body.menu-open .site-header::before {
  opacity: 1;
}

body.menu-open .site-header::before {
  background: var(--c-emerald-900);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 44px;
  margin-right: auto;
  text-decoration: none;
}

.brand__bulb {
  width: auto;
  height: 44px;
}

.brand__divider {
  width: 1px;
  height: 32px;
  background: var(--c-line-strong);
}

.brand__logo {
  width: auto;
  height: 44px;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  color: var(--c-text);
  font-size: var(--fs-200);
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s var(--ease-out);
}

.site-nav__link::after {
  content: "";
  position: absolute;
  right: 10px;
  bottom: 8px;
  left: 10px;
  height: 1px;
  background: var(--c-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease-out);
}

.site-nav__link:hover {
  color: var(--c-cream);
}

.site-nav__link:hover::after,
.site-nav__link[aria-current="location"]::after {
  transform: scaleX(1);
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-link,
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid rgba(212, 190, 140, 0.45);
  border-radius: 999px;
  background: var(--c-emerald-900);
  color: var(--c-cream);
  transition:
    border-color 0.2s var(--ease-out),
    color 0.2s var(--ease-out);
}

.lang-link {
  padding: 0 12px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  text-underline-offset: 3px;
}

.lang-link:hover {
  border-color: var(--c-gold);
  color: var(--c-gold-strong);
  text-decoration: underline;
}

.nav-toggle {
  display: none;
  width: 44px;
  padding: 0;
  cursor: pointer;
}

.nav-toggle .icon {
  width: 22px;
  height: 22px;
  transition: transform 0.2s var(--ease-out);
}

.nav-toggle:hover {
  border-color: var(--c-gold);
}

.nav-toggle:hover .icon {
  transform: scale(1.1);
}

.nav-toggle__close,
.nav-toggle[aria-expanded="true"] .nav-toggle__open {
  display: none;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__close {
  display: block;
}

@media (max-width: 1199px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-header__cta {
    display: none;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 0;
    z-index: 60;
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding: 24px var(--gutter) 40px;
    overflow-y: auto;
    background: var(--c-emerald-900);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition:
      opacity 0.25s var(--ease-out),
      transform 0.25s var(--ease-out),
      visibility 0s linear 0.25s;
  }

  .site-nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition:
      opacity 0.25s var(--ease-out),
      transform 0.25s var(--ease-out),
      visibility 0s;
  }

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .site-nav__link {
    width: 100%;
    min-height: 52px;
    padding: 0;
    border-bottom: 1px solid var(--c-line);
    font-size: 22px;
  }

  .site-nav__link::after {
    right: auto;
    bottom: 10px;
    left: 0;
    width: 40px;
  }

  .site-nav__cta {
    align-self: flex-start;
  }
}

@media (min-width: 1200px) {
  .site-nav__cta {
    display: none;
  }
}

@media (max-width: 480px) {
  .brand {
    gap: 10px;
  }

  .brand__bulb {
    height: 36px;
  }

  .brand__logo {
    height: 34px;
  }

  .brand__divider {
    height: 26px;
  }
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: 100dvh;
  padding-block: calc(var(--header-h) + 40px) 88px;
  overflow: hidden;
  background: var(--c-emerald-900);
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% 50%;
}

/* soft hand-off from the photo to the first section (colour transition, not a readability scrim) */
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 96px;
  background: linear-gradient(to bottom, rgba(26, 57, 50, 0), var(--c-emerald-850));
  pointer-events: none;
}

.hero__content {
  max-width: 820px;
}

.hero__eyebrow {
  color: var(--c-gold);
  font-size: clamp(14px, 1.1vw, 16px);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero__title {
  margin-top: 20px;
  color: var(--c-cream);
  font-size: clamp(26px, calc(2.4vw + 20px), 60px);
  font-weight: 600;
  line-height: 1.08;
  text-transform: uppercase;
}

.hero__title-line {
  display: block;
  max-width: var(--title-measure, 14.2em);
  text-wrap: balance;
}

.hero__title-sub {
  display: block;
  max-width: var(--title-sub-measure, 22em);
  margin-top: 0.4em;
  font-size: 0.66em;
  font-weight: 300;
  line-height: 1.2;
  text-wrap: balance;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 36px;
  margin-top: 36px;
  color: var(--c-gold);
  font-size: var(--fs-400);
  font-weight: 500;
}

.hero__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.hero__meta-item .icon {
  width: 22px;
  height: 22px;
  color: var(--c-gold-line);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 44px;
}

@media (max-width: 767px) {
  .hero {
    align-items: start;
    padding-top: calc(var(--header-h) + 48px);
  }

  .hero__media img {
    object-position: 50% 100%;
  }

  .hero__meta-item {
    align-items: flex-start;
  }

  .hero__meta-item .icon {
    margin-top: 3px;
  }

  .hero__actions .btn {
    flex: 1 1 100%;
  }
}

/* stagger steps for entrance and reveal (no inline styles) */
.d-1 { --i: 1; }
.d-2 { --i: 2; }
.d-3 { --i: 3; }

/* hero entrance: once, on load, CSS only */
@media (prefers-reduced-motion: no-preference) {
  .hero [data-enter] {
    animation: enter 0.9s var(--ease-out) both;
    animation-delay: calc(var(--i, 0) * 90ms + 120ms);
  }

  .hero__media img {
    animation: plate-in 0.9s var(--ease-out) both;
  }
}

@keyframes enter {
  from {
    opacity: 0;
    transform: translateY(28px);
    filter: blur(14px);
  }

  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

@keyframes plate-in {
  from {
    opacity: 0;
    transform: scale(1.04);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

/* scroll reveal: script.js adds .js to <html> and .is-visible to elements, once */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    filter: blur(14px);
    transition:
      opacity 0.8s var(--ease-out),
      transform 0.8s var(--ease-out),
      filter 0.8s var(--ease-out);
    transition-delay: calc(var(--i, 0) * 80ms);
  }

  .js [data-reveal].is-visible {
    opacity: 1;
    transform: none;
    filter: none;
  }

  /* Deep links must never land on a temporarily invisible section. */
  .js section:target [data-reveal] {
    opacity: 1;
    transform: none;
    filter: none;
  }

  /* cards revealed by the "show all" button respond within 250ms, no blur or stagger */
  .js .speaker.is-shown {
    opacity: 1;
    transform: none;
    filter: none;
    transition: opacity 0.25s var(--ease-out);
    transition-delay: 0s;
  }

  .js .speaker.is-shown.is-entering {
    opacity: 0;
  }
}

/* ---------- about ---------- */

.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 6vw, 104px);
}

.about__aside {
  position: sticky;
  top: calc(var(--header-h) + 40px);
  align-self: start;
}

.about__quote {
  margin-top: var(--title-gap);
  padding-left: 24px;
  border-left: 2px solid var(--c-gold-line);
  color: var(--c-gold);
  font-size: var(--fs-500);
  font-weight: 300;
  line-height: 1.35;
  text-wrap: pretty;
}

.about__text p {
  max-width: 62ch;
  color: var(--c-text);
  font-size: 18px;
  line-height: 1.7;
  text-wrap: pretty;
}

.about__text p + p {
  margin-top: 1.2em;
}

.about__lead {
  display: block;
  margin-bottom: 0.7em;
  color: var(--c-cream);
  font-size: var(--fs-500);
  line-height: 1.4;
}

.about__text strong {
  color: var(--c-cream);
  font-weight: 700;
}

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

  .about__aside {
    position: static;
  }
}

/* ---------- stones ---------- */

.stone {
  display: grid;
  place-items: center;
  width: 56px;
  aspect-ratio: 1;
  border-radius: 50%;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
}

.stone--gold {
  background: radial-gradient(circle at 34% 28%, #F6E7C8 0%, #D8BD93 38%, #B8996E 72%, #8C7353 100%);
  color: var(--c-emerald-950);
  box-shadow: 0 8px 18px rgba(4, 20, 17, 0.45);
}

.stone--dark {
  border: 2px solid #A48A5A;
  background: radial-gradient(circle at 34% 28%, #2E5047 0%, #14302B 55%, #0A211E 100%);
  color: var(--c-gold);
  box-shadow: 0 8px 18px rgba(4, 20, 17, 0.5);
}

.stone--sage {
  background: radial-gradient(circle at 34% 28%, #9AA593 0%, #66725F 50%, #4A5647 100%);
  color: var(--c-cream);
  box-shadow: 0 8px 18px rgba(4, 20, 17, 0.45);
}

/* ---------- themes: a fragment of the Go board ---------- */

.themes {
  overflow: hidden;
}

.themes__title {
  max-width: 14ch;
}

.themes__list {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-top: calc(var(--title-gap) + 24px);
  border-top: 1px solid var(--c-line-strong);
  border-left: 1px solid var(--c-line-strong);
}

/* board lines continue past the list edges and fade out */
.themes__list::before {
  content: "";
  position: absolute;
  inset: -120px -1px -120px 0;
  z-index: -1;
  background-image: linear-gradient(90deg, var(--c-line-strong) 1px, transparent 1px);
  background-size: calc(100% / 6) 100%;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 120px, transparent 120px, transparent calc(100% - 120px), #000 calc(100% - 120px), transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 120px, transparent 120px, transparent calc(100% - 120px), #000 calc(100% - 120px), transparent 100%);
  pointer-events: none;
}

.theme {
  position: relative;
  grid-column: span 2;
  min-height: 300px;
  padding: 56px clamp(24px, 2.6vw, 44px) 44px;
  border-right: 1px solid var(--c-line-strong);
  border-bottom: 1px solid var(--c-line-strong);
  background: var(--c-emerald-850);
}

.theme:nth-child(-n + 2) {
  grid-column: span 3;
}

.theme .stone {
  position: absolute;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
}

.theme__title {
  color: var(--c-cream);
  font-size: var(--fs-500);
  font-weight: 600;
  line-height: 1.2;
  text-wrap: balance;
}

.theme__text {
  margin-top: 16px;
  max-width: 46ch;
  color: var(--c-muted);
  font-size: var(--fs-300);
  text-wrap: pretty;
}

@media (max-width: 1023px) {
  .theme,
  .theme:nth-child(-n + 2) {
    grid-column: span 3;
  }

  .theme:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 639px) {
  .themes__list {
    grid-template-columns: minmax(0, 1fr);
    margin-left: 28px;
  }

  .themes__list::before {
    display: none;
  }

  .theme,
  .theme:nth-child(-n + 2),
  .theme:last-child {
    grid-column: auto;
    min-height: 0;
    padding: 44px 20px 36px 40px;
  }

  .theme .stone {
    width: 48px;
    font-size: 18px;
  }
}

/* ---------- audience ---------- */

.audience__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: end;
  gap: clamp(40px, 6vw, 104px);
}

.audience__figure {
  margin-top: 24px;
  color: var(--c-gold);
  font-size: clamp(96px, 11vw, 168px);
  font-weight: 300;
  line-height: 0.85;
  letter-spacing: -0.04em;
}

.audience__text {
  max-width: 50ch;
  color: var(--c-text);
  font-size: var(--fs-400);
  line-height: 1.6;
  text-wrap: pretty;
}

@media (max-width: 767px) {
  .audience__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
}

/* ---------- program: the light Go board, the only theme switch on the page ---------- */

.program {
  --c-line: var(--c-ivory-line);
  --time-w: 112px;
  --rail-gap: 64px;
  --rail-x: calc(var(--time-w) + var(--rail-gap) / 2);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background-color: var(--c-ivory);
  color: var(--c-ink);
}

/* board grid anchored to the container so one vertical line runs under the gold rail */
.program .container {
  position: relative;
}

.program .container::before {
  content: "";
  position: absolute;
  top: calc(-1 * var(--section-y));
  bottom: calc(-1 * var(--section-y));
  left: -100vw;
  right: -100vw;
  z-index: -1;
  background-image:
    linear-gradient(var(--c-ivory-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--c-ivory-line) 1px, transparent 1px);
  background-size: var(--module) var(--module);
  background-position: calc(100vw + var(--gutter) + var(--rail-x) - 1px) 0;
  pointer-events: none;
}

.program .section-title {
  color: var(--c-ink);
}

.program__day {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  color: var(--c-teal);
  font-size: var(--fs-400);
  font-weight: 600;
}

.program__day .icon {
  width: 22px;
  height: 22px;
}

.timeline {
  position: relative;
  margin-top: var(--title-gap);
}

.timeline::before {
  content: "";
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: calc(var(--rail-x) - 1px);
  width: 2px;
  background: linear-gradient(180deg, var(--c-gold-line), var(--c-gold-deep));
}

.t-item {
  position: relative;
  display: grid;
  grid-template-columns: var(--time-w) minmax(0, 1fr);
  column-gap: var(--rail-gap);
  padding-block: 14px;
}

.t-item::before {
  content: "";
  position: absolute;
  top: 26px;
  left: var(--rail-x);
  width: 12px;
  height: 12px;
  border: 2px solid var(--c-gold-deep);
  border-radius: 50%;
  background: var(--c-ivory);
  transform: translate(-50%, -50%);
}

.t-item--major::before {
  top: 44px;
  width: 26px;
  height: 26px;
  border: 0;
  background: radial-gradient(circle at 34% 28%, #F6E7C8 0%, #D8BD93 38%, #B8996E 72%, #8C7353 100%);
  box-shadow: 0 4px 10px rgba(19, 48, 42, 0.25);
}

.t-item__time {
  padding-top: 12px;
  text-align: right;
  font-variant-numeric: lining-nums tabular-nums;
}

.t-item__start {
  display: block;
  color: var(--c-ink);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.1;
}

.t-item__end {
  display: block;
  margin-top: 4px;
  color: var(--c-ink-muted);
  font-size: var(--fs-200);
  font-weight: 500;
}

.t-item--major .t-item__time {
  padding-top: 30px;
}

.t-item--major .t-item__start {
  font-size: 28px;
}

.t-item__body {
  padding-top: 10px;
}

.t-item__title {
  color: var(--c-ink-muted);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.4;
  text-wrap: balance;
}

.t-item--major .t-item__body {
  padding: 28px clamp(20px, 3vw, 40px) 26px;
  border: 1px solid var(--c-ivory-line);
  background: var(--c-ivory-card);
}

.t-item--major .t-item__title {
  color: var(--c-ink);
  font-size: var(--fs-500);
  font-weight: 600;
  line-height: 1.25;
}

/* the ceremony keeps its stone on the rail but gives visual weight back to the sessions */
.t-item--ceremony .t-item__title {
  max-width: 62ch;
  font-size: var(--fs-400);
  font-weight: 500;
  line-height: 1.45;
  text-wrap: pretty;
}

.t-item__label {
  display: block;
  margin-bottom: 8px;
  color: var(--c-teal);
  font-size: var(--fs-100);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.t-item__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 28px;
  margin-top: 16px;
  color: var(--c-ink-muted);
  font-size: var(--fs-200);
}

.t-item__fact-label {
  color: var(--c-ink);
  font-weight: 600;
}

.t-item__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.session-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 24px 0 20px;
  border: 1.5px solid var(--c-teal);
  border-radius: 999px;
  background: transparent;
  color: var(--c-teal);
  font: inherit;
  font-size: var(--fs-200);
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color 0.2s var(--ease-out),
    border-color 0.2s var(--ease-out),
    color 0.2s var(--ease-out),
    transform 0.2s var(--ease-out);
}

.session-btn .icon {
  width: 20px;
  height: 20px;
}

.session-btn:hover {
  background: rgba(5, 87, 89, 0.08);
}

.session-btn--solid {
  background: var(--c-teal);
  color: var(--c-ivory-card);
}

.session-btn--solid:hover {
  border-color: #04474A;
  background: #04474A;
}

.session-btn:active {
  transform: translateY(1px) scale(0.98);
}

.topics__list {
  display: grid;
  gap: 12px;
  padding-top: 20px;
}

.topics__list li {
  position: relative;
  max-width: 72ch;
  padding-left: 30px;
  color: var(--c-ink);
  font-size: var(--fs-300);
  line-height: 1.55;
  text-wrap: pretty;
}

.topics__list li::before {
  content: "";
  position: absolute;
  top: 0.8em;
  left: 0;
  width: 16px;
  height: 2px;
  background: var(--c-gold-deep);
}

/* phones: time moves above the card, the gold rail runs along the left edge */
@media (max-width: 767px) {
  .program {
    --rail-x: 10px;
  }

  .timeline::before {
    left: 9px;
  }

  .t-item {
    grid-template-columns: minmax(0, 1fr);
    padding: 14px 0 14px 32px;
  }

  .t-item::before,
  .t-item--major::before {
    top: 27px;
    left: 10px;
  }

  .t-item--major::before {
    width: 20px;
    height: 20px;
  }

  .t-item__time,
  .t-item--major .t-item__time {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding-top: 0;
    text-align: left;
  }

  .t-item__start,
  .t-item--major .t-item__start {
    font-size: 20px;
  }

  .t-item__end {
    margin-top: 0;
  }

  .t-item__body {
    padding-top: 6px;
  }

  .t-item--major .t-item__body {
    margin-top: 12px;
    padding: 20px 18px;
  }

  .t-item--major .t-item__title {
    font-size: 21px;
  }

  .t-item--ceremony .t-item__title,
  .t-item__title {
    font-size: var(--fs-300);
  }
}

@media (max-width: 479px) {
  .session-btn {
    flex: 1 1 100%;
  }
}

/* ---------- speakers ---------- */

.speakers__note {
  max-width: 60ch;
  margin-top: 16px;
  color: var(--c-muted);
  font-size: var(--fs-300);
}

.speakers__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 56px 32px;
  margin-top: var(--title-gap);
}

.speaker__photo {
  height: auto;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  background: var(--c-emerald-800);
}

.speaker__photo {
  width: min(100%, 184px);
  box-shadow:
    0 0 0 6px var(--c-emerald-850),
    0 0 0 7px rgba(212, 190, 140, 0.55),
    0 18px 36px rgba(4, 20, 17, 0.45);
}

.speaker__name {
  margin-top: 24px;
  color: var(--c-cream);
  font-size: var(--fs-400);
  font-weight: 600;
  line-height: 1.3;
}

.speaker__role {
  margin-top: 8px;
  color: var(--c-muted);
  font-size: var(--fs-200);
  line-height: 1.5;
}

.speaker__org {
  display: block;
  margin-top: 4px;
  color: var(--c-text);
}

.speakers__more {
  margin-top: 56px;
}

.speaker--link {
  position: relative;
}

.speaker__photo {
  transition:
    box-shadow 0.3s var(--ease-out),
    transform 0.3s var(--ease-out);
}

.speaker__link {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  line-height: inherit;
  text-align: left;
  cursor: pointer;
  transition: color 0.2s var(--ease-out);
}

/* the name button stretches over the whole card */
.speaker__link::after {
  content: "";
  position: absolute;
  inset: -12px;
  z-index: 1;
}

.speaker__link:focus-visible {
  outline: none;
}

.speaker__link:focus-visible::after {
  outline: 2px solid var(--c-gold);
}

.speaker__bio-cue {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  color: var(--c-gold);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.speaker__bio-cue .icon {
  width: 16px;
  height: 16px;
  transition: transform 0.25s var(--ease-out);
}

@media (hover: hover) {
  .speaker--link:hover .speaker__photo {
    box-shadow:
      0 0 0 6px var(--c-emerald-850),
      0 0 0 7px var(--c-gold),
      0 24px 44px rgba(4, 20, 17, 0.55);
    transform: translateY(-4px);
  }

  .speaker--link:hover .speaker__name {
    color: var(--c-gold-strong);
  }

  .speaker--link:hover .speaker__bio-cue .icon {
    transform: translateX(3px);
  }
}

@media (max-width: 1023px) {
  .speakers__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .speakers__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px 20px;
  }
}

/* small phones: speakers become a compact list like the contacts */
@media (max-width: 559px) {
  .speakers__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .speaker {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    align-items: start;
    column-gap: 20px;
  }

  .speaker__photo,
  .speaker--link:hover .speaker__photo {
    width: 88px;
    box-shadow:
      0 0 0 3px var(--c-emerald-850),
      0 0 0 4px rgba(212, 190, 140, 0.55);
    transform: none;
  }

  .speaker__bio-cue {
    margin-top: 10px;
  }

  .speaker__name {
    margin-top: 2px;
    font-size: 18px;
    text-wrap: balance;
  }

  .speaker__role {
    font-size: var(--fs-200);
  }

  .speakers__more {
    width: 100%;
  }
}

/* ---------- participation conditions ---------- */

.conditions {
  background:
    radial-gradient(circle at 90% 10%, rgba(240, 210, 140, 0.08), transparent 32%),
    var(--c-emerald-900);
}

.conditions__heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.75fr);
  align-items: end;
  gap: 32px 64px;
}

.conditions__intro {
  max-width: 48ch;
  color: var(--c-muted);
}

.conditions__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: var(--title-gap);
}

.condition-card {
  --card-accent: var(--c-gold-deep);
  display: flex;
  min-height: 480px;
  flex-direction: column;
  padding: 26px 24px 24px;
  border-top: 4px solid var(--card-accent);
  background: var(--c-ivory-card);
  color: var(--c-ink);
  box-shadow: 0 18px 44px rgba(3, 17, 14, 0.2);
}

.condition-card--sponsor {
  --card-accent: #C59C4A;
}

.condition-card--delegate {
  --card-accent: var(--c-teal);
  background: #EEF5F1;
}

.condition-card--member {
  --card-accent: #9B7B3B;
  background: #F4EFE3;
}

.condition-card--media {
  --card-accent: #587A6D;
}

.condition-card__number {
  color: var(--card-accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.condition-card__title {
  margin-top: 24px;
  font-size: clamp(21px, 1.7vw, 26px);
  font-weight: 600;
  line-height: 1.2;
  text-wrap: balance;
}

.condition-card__description {
  margin-top: 16px;
  color: var(--c-ink-muted);
  font-size: var(--fs-200);
  line-height: 1.55;
}

.condition-card__prices {
  display: grid;
  gap: 16px;
  margin-top: auto;
  padding-top: 32px;
}

.condition-card__secondary {
  padding-top: 16px;
  border-top: 1px solid var(--c-ivory-line);
}

.condition-card__price {
  color: var(--c-ink);
  font-size: clamp(27px, 2.2vw, 34px);
  font-weight: 600;
  line-height: 1;
}

.condition-card__price--secondary {
  font-size: clamp(23px, 1.8vw, 28px);
}

.condition-card__price-note {
  margin-top: 8px;
  color: var(--c-ink-muted);
  font-size: 13px;
  line-height: 1.45;
}

.condition-card__button {
  width: 100%;
  margin-top: 28px;
  border-color: rgba(19, 48, 42, 0.24);
  color: var(--c-ink);
  white-space: normal;
}

.condition-card__button:hover {
  border-color: var(--card-accent);
  background: var(--c-ink);
  color: var(--c-cream);
}

@media (max-width: 1199px) {
  .conditions__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .condition-card {
    min-height: 430px;
  }
}

@media (max-width: 767px) {
  .conditions__heading {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
}

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

  .condition-card {
    min-height: 0;
  }
}

/* ---------- dialogs and forms ---------- */

.site-dialog {
  width: min(720px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 1px solid rgba(212, 190, 140, 0.45);
  background: var(--c-ivory-card);
  color: var(--c-ink);
  box-shadow: 0 28px 90px rgba(1, 12, 10, 0.6);
  overflow: auto;
}

.site-dialog--compact {
  width: min(600px, calc(100% - 32px));
}

.site-dialog--wide {
  width: min(980px, calc(100% - 32px));
}

.site-dialog::backdrop {
  background: rgba(5, 20, 17, 0.78);
  backdrop-filter: blur(6px);
}

.site-dialog__panel {
  position: relative;
  padding: clamp(28px, 5vw, 56px);
}

.site-dialog__close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: inline-grid;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(19, 48, 42, 0.18);
  border-radius: 50%;
  background: transparent;
  color: var(--c-ink);
  cursor: pointer;
}

.site-dialog__close:hover {
  border-color: var(--c-teal);
  background: rgba(5, 87, 89, 0.06);
}

.site-dialog__close .icon {
  width: 20px;
  height: 20px;
}

.site-dialog__eyebrow {
  padding-right: 48px;
  color: var(--c-teal);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-dialog__title {
  margin-top: 12px;
  padding-right: 36px;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 600;
  line-height: 1.1;
  text-wrap: balance;
}

.site-dialog__lead {
  max-width: 52ch;
  margin-top: 16px;
  color: var(--c-ink-muted);
}

.site-dialog__action {
  margin-top: 28px;
}

.site-dialog__status-note {
  max-width: 50ch;
  margin-top: 14px;
  color: var(--c-ink-muted);
  font-size: var(--fs-200);
}

.delegate-prices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 30px;
  background: rgba(19, 48, 42, 0.12);
  border: 1px solid rgba(19, 48, 42, 0.12);
}

.delegate-price {
  display: flex;
  min-height: 150px;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  padding: 22px;
  background: var(--c-ivory-card);
}

.delegate-price span {
  color: var(--c-ink-muted);
  font-size: var(--fs-200);
}

.delegate-price strong {
  color: var(--c-teal);
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 600;
  line-height: 1;
}

.participation-form__category {
  display: inline-block;
  margin-top: 20px;
  padding: 7px 12px;
  border: 1px solid rgba(5, 87, 89, 0.22);
  border-radius: 999px;
  color: var(--c-teal);
  font-size: var(--fs-200);
  font-weight: 600;
}

.participation-form__hint {
  margin-top: 12px;
  color: var(--c-ink-muted);
  font-size: 13px;
}

.participation-form,
.materials-access-form {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}

.field {
  display: grid;
  gap: 7px;
  color: var(--c-ink-muted);
  font-size: 13px;
  font-weight: 600;
}

.field input {
  width: 100%;
  min-height: 50px;
  padding: 11px 14px;
  border: 1px solid rgba(19, 48, 42, 0.23);
  border-radius: 0;
  background: #FFFFFF;
  color: var(--c-ink);
  font: inherit;
}

.field input::placeholder {
  color: #89968F;
}

.field input:focus {
  border-color: var(--c-teal);
  outline: 2px solid rgba(5, 87, 89, 0.12);
  outline-offset: 0;
}

.consent-field {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: start;
  gap: 11px;
  color: var(--c-ink-muted);
  font-size: 13px;
  line-height: 1.5;
}

.consent-field input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--c-teal);
}

.consent-field a {
  color: var(--c-teal);
  text-underline-offset: 3px;
}

.participation-form__submit,
.materials-access-form .btn {
  justify-self: start;
  margin-top: 4px;
}

.form-result {
  margin-top: 30px;
  padding: 28px;
  border-left: 4px solid var(--c-teal);
  background: #EEF5F1;
}

.form-result.is-error {
  border-left-color: #A34B3E;
  background: #F7EEEB;
}

.form-result__icon {
  display: block;
  width: 14px;
  height: 14px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--c-teal);
  box-shadow: 0 0 0 7px rgba(5, 87, 89, 0.1);
}

.form-result.is-error .form-result__icon {
  background: #A34B3E;
  box-shadow: 0 0 0 7px rgba(163, 75, 62, 0.1);
}

.form-result__title {
  font-size: var(--fs-500);
  line-height: 1.2;
}

.form-result p {
  margin-top: 10px;
  color: var(--c-ink-muted);
}

.form-result__email {
  display: inline-block;
  margin-top: 12px;
  color: var(--c-teal);
}

.form-result .btn {
  margin-top: 24px;
  border-color: rgba(19, 48, 42, 0.23);
  color: var(--c-ink);
}

.materials-access-form__status {
  padding: 12px 14px;
  border-left: 3px solid #A34B3E;
  background: #F7EEEB;
  color: #79352B;
  font-size: var(--fs-200);
}

/* programme dialogs: speakers and topics of a session */
.session-dialog__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding-right: 56px;
}

.session-dialog__time {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 18px;
  border: 2px solid var(--c-gold-deep);
  border-radius: 999px;
  color: var(--c-ink);
  font-size: 16px;
  font-weight: 700;
  font-variant-numeric: lining-nums tabular-nums;
}

.session-dialog__label {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--c-gold);
  color: var(--c-emerald-950);
  font-size: var(--fs-100);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.session-dialog__title {
  max-width: 34ch;
  margin-top: 24px;
  color: var(--c-ink);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 600;
  line-height: 1.2;
  text-wrap: balance;
}

.session-dialog__heading {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--c-ivory-line);
  color: var(--c-teal);
  font-size: var(--fs-400);
  font-weight: 700;
  line-height: 1.3;
}

.session-dialog__heading + .person {
  margin-top: 20px;
}

.session-dialog__people {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 40px;
  margin-top: 20px;
}

.session-dialog__tba {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 32px;
  padding: 20px 24px;
  border: 1px dashed rgba(5, 87, 89, 0.35);
  color: var(--c-ink-muted);
  font-size: var(--fs-300);
}

.session-dialog__tba .icon {
  width: 28px;
  height: 28px;
  color: var(--c-teal);
}

.person {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  align-items: center;
  column-gap: 20px;
}

.person--link {
  position: relative;
}

.person__photo {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--c-ivory);
  box-shadow:
    0 0 0 3px var(--c-ivory-card),
    0 0 0 4px rgba(184, 154, 94, 0.55);
  transition: box-shadow 0.25s var(--ease-out);
}

.person__name {
  color: var(--c-ink);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
}

.person__link {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  line-height: inherit;
  text-align: left;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: rgba(5, 87, 89, 0.3);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition:
    color 0.2s var(--ease-out),
    text-decoration-color 0.2s var(--ease-out);
}

.person__link::after {
  content: "";
  position: absolute;
  inset: -8px;
}

.person__link:focus-visible {
  outline: none;
}

.person__link:focus-visible::after {
  outline: 2px solid var(--c-teal);
}

.person--link:hover .person__link {
  color: var(--c-teal);
  text-decoration-color: currentColor;
}

.person--link:hover .person__photo {
  box-shadow:
    0 0 0 3px var(--c-ivory-card),
    0 0 0 4px var(--c-teal);
}

.person__role {
  margin-top: 6px;
  color: var(--c-ink-muted);
  font-size: var(--fs-100);
  line-height: 1.45;
}

.person__org {
  display: block;
  color: var(--c-ink);
}

/* speaker biography */
.speaker-dialog__head {
  display: grid;
  grid-template-columns: 184px minmax(0, 1fr);
  align-items: center;
  gap: 40px;
  padding-right: 40px;
}

.speaker-dialog__photo {
  width: 184px;
  height: 184px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--c-ivory);
  box-shadow:
    0 0 0 6px var(--c-ivory-card),
    0 0 0 7px rgba(184, 154, 94, 0.6),
    0 18px 36px rgba(19, 48, 42, 0.18);
}

.speaker-dialog__name {
  color: var(--c-ink);
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 600;
  line-height: 1.1;
  text-wrap: balance;
}

.speaker-dialog__role {
  max-width: 56ch;
  margin-top: 14px;
  color: var(--c-ink-muted);
  font-size: var(--fs-300);
  line-height: 1.5;
}

.speaker-dialog__org {
  display: block;
  margin-top: 2px;
  color: var(--c-ink);
  font-weight: 600;
}

.speaker-dialog__bio {
  margin-top: 40px;
  border-top: 1px solid var(--c-ivory-line);
}

.bio-block {
  padding-top: 28px;
}

.bio-block__heading {
  margin-bottom: 12px;
  color: var(--c-teal);
  font-size: var(--fs-500);
  font-weight: 600;
  line-height: 1.2;
}

.bio-block p {
  max-width: 76ch;
  color: var(--c-ink);
  font-size: var(--fs-300);
  line-height: 1.6;
  text-wrap: pretty;
}

.bio-block p + p {
  margin-top: 8px;
}

@media (max-width: 767px) {
  .session-dialog__people {
    grid-template-columns: minmax(0, 1fr);
  }

  .speaker-dialog__head {
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 24px;
  }

  .speaker-dialog__photo {
    width: 120px;
    height: 120px;
    box-shadow:
      0 0 0 4px var(--c-ivory-card),
      0 0 0 5px rgba(184, 154, 94, 0.6);
  }
}

@media (max-width: 479px) {
  .session-dialog__head {
    gap: 8px;
    padding-right: 44px;
  }

  .session-dialog__label {
    letter-spacing: 0.04em;
  }

  .session-dialog__time,
  .session-dialog__label {
    min-height: 38px;
    padding: 0 14px;
  }

  .session-dialog__time {
    font-size: 15px;
  }

  .speaker-dialog__head {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    padding-right: 0;
  }

  .person {
    grid-template-columns: 72px minmax(0, 1fr);
    column-gap: 16px;
  }

  .person__photo {
    width: 72px;
    height: 72px;
  }
}

@media (max-width: 559px) {
  .site-dialog {
    width: calc(100% - 16px);
    max-height: calc(100dvh - 16px);
  }

  .site-dialog__panel {
    padding: 28px 20px;
  }

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

  .delegate-price {
    min-height: 124px;
  }

  .site-dialog__action,
  .participation-form__submit,
  .materials-access-form .btn,
  .form-result .btn {
    width: 100%;
  }
}

/* ---------- place ---------- */

.place__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 24px 48px;
  margin-top: var(--title-gap);
  padding-bottom: 32px;
  border-bottom: 1px solid var(--c-line-strong);
}

.place__venue {
  color: var(--c-gold);
  font-size: clamp(28px, 2.6vw, 40px);
  font-weight: 300;
  line-height: 1.15;
}

.place__address {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  color: var(--c-text);
  font-size: var(--fs-400);
}

.place__address .icon {
  width: 22px;
  height: 22px;
  color: var(--c-gold-line);
}

.place__map {
  height: clamp(320px, 34vw, 480px);
  margin-top: 32px;
  border: 1px solid var(--c-line-strong);
  background: var(--c-emerald-800);
}

.place__map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(0.85) sepia(0.12) brightness(0.94) contrast(0.96);
}

@media (max-width: 767px) {
  .place__map {
    height: 400px;
  }
}

/* ---------- conference materials ---------- */

.materials {
  background: var(--c-emerald-950);
}

.materials__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 32px 64px;
  padding-block: clamp(40px, 5vw, 64px);
  border-top: 1px solid var(--c-gold-line);
  border-bottom: 1px solid var(--c-gold-line);
}

.materials__intro {
  max-width: 62ch;
  margin-top: 16px;
  color: var(--c-muted);
}

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

  .materials__inner .btn {
    justify-self: start;
  }
}

/* Standalone materials preview. Real access control must be implemented server-side. */
.materials-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 88% 8%, rgba(240, 210, 140, 0.09), transparent 32%),
    var(--c-emerald-850);
}

.materials-header {
  border-bottom: 1px solid var(--c-line);
  background: var(--c-emerald-900);
}

.materials-header__inner {
  display: flex;
  min-height: 88px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.materials-header .brand__bulb,
.materials-header .brand__logo {
  height: 42px;
}

.materials-page__main {
  padding-block: clamp(56px, 8vw, 112px);
}

.materials-page__back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--c-gold);
  font-size: var(--fs-200);
  text-decoration: none;
}

.materials-page__back .icon {
  transform: rotate(180deg);
}

.materials-page__title {
  max-width: 16ch;
  margin-top: 40px;
  color: var(--c-cream);
  font-size: clamp(40px, 7vw, 86px);
  font-weight: 500;
  line-height: 0.98;
  text-wrap: balance;
}

.materials-page__description {
  max-width: 62ch;
  margin-top: 24px;
  color: var(--c-muted);
  font-size: var(--fs-400);
}

.materials-page__notice {
  margin-top: 40px;
  padding: 18px 22px;
  border-left: 3px solid var(--c-gold);
  background: rgba(14, 40, 36, 0.7);
  color: var(--c-gold-strong);
}

.materials-page__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
  margin-top: clamp(48px, 7vw, 88px);
}

.materials-module {
  grid-column: span 6;
  min-height: 300px;
  padding: clamp(28px, 4vw, 44px);
  border: 1px solid var(--c-line-strong);
  background: var(--c-emerald-900);
}

.materials-module--video {
  grid-column: 1 / -1;
  min-height: 420px;
}

.materials-module__label {
  color: var(--c-gold);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.materials-module__title {
  margin-top: 18px;
  color: var(--c-cream);
  font-size: var(--fs-500);
  font-weight: 500;
  line-height: 1.2;
}

.materials-module__empty {
  display: grid;
  min-height: 180px;
  margin-top: 32px;
  place-items: center;
  border: 1px dashed rgba(212, 190, 140, 0.35);
  color: var(--c-muted);
  text-align: center;
}

.materials-module--video .materials-module__empty {
  min-height: 260px;
}

@media (max-width: 767px) {
  .materials-header__inner {
    min-height: 76px;
  }

  .materials-header__inner > .materials-page__back {
    font-size: 0;
  }

  .materials-header__inner > .materials-page__back .icon {
    width: 24px;
    height: 24px;
  }

  .materials-module,
  .materials-module--video {
    grid-column: 1 / -1;
    min-height: 260px;
  }
}

/* ---------- history: how it was in 2025 ---------- */

.history__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: start;
  gap: clamp(32px, 4vw, 64px);
  margin-top: var(--title-gap);
}

.history__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--c-line-strong);
  background: var(--c-emerald-950);
}

.history__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.history__caption {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 16px;
  color: var(--c-cream);
  font-size: var(--fs-400);
  font-weight: 500;
}

.history__caption .text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: var(--fs-200);
  font-weight: 600;
}

.history__photos-title {
  color: var(--c-cream);
  font-size: var(--fs-400);
  font-weight: 500;
  line-height: 1.35;
  text-wrap: balance;
}

.history__mosaic {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 20px;
}

.history__mosaic img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  background: var(--c-emerald-800);
}

.history__album {
  margin-top: 24px;
}

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

@media (max-width: 559px) {
  .history__album {
    width: 100%;
  }
}

/* ---------- partners: logo slider ---------- */

.partners__head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.partners__nav {
  display: flex;
  gap: 12px;
}

.slider-btn {
  display: inline-grid;
  width: 52px;
  height: 52px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--c-line-strong);
  border-radius: 50%;
  background: transparent;
  color: var(--c-cream);
  cursor: pointer;
  transition:
    border-color 0.2s var(--ease-out),
    color 0.2s var(--ease-out),
    opacity 0.2s var(--ease-out),
    transform 0.2s var(--ease-out);
}

.slider-btn .icon {
  width: 22px;
  height: 22px;
}

.slider-btn:hover:not(:disabled) {
  border-color: var(--c-gold);
  color: var(--c-gold-strong);
}

.slider-btn:active:not(:disabled) {
  transform: scale(0.96);
}

.slider-btn:disabled {
  opacity: 0.32;
  cursor: default;
}

.partners__viewport {
  margin-top: var(--title-gap);
}

.partners__track {
  --per: 4;
  --gap: 20px;
  display: flex;
  gap: var(--gap);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.partners__track::-webkit-scrollbar {
  display: none;
}

.partner {
  flex: 0 0 calc((100% - (var(--per) - 1) * var(--gap)) / var(--per));
  scroll-snap-align: start;
}

.partner__tile {
  display: grid;
  aspect-ratio: 2 / 1;
  padding: 12% 14%;
  place-items: center;
  border: 1px solid transparent;
  background: var(--c-ivory-card);
  transition:
    border-color 0.2s var(--ease-out),
    background-color 0.2s var(--ease-out);
}

.partner__tile img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

a.partner__tile:hover {
  border-color: var(--c-gold);
  background: #FFFFFF;
}

a.partner__tile:focus-visible {
  outline-offset: -4px;
  outline-color: var(--c-teal);
}

@media (max-width: 1023px) {
  .partners__track {
    --per: 3;
  }
}

/* phones: a peek of the next logo tells that the row scrolls */
@media (max-width: 767px) {
  .partners__track {
    --per: 2.3;
    --gap: 12px;
  }

  .slider-btn {
    width: 46px;
    height: 46px;
  }
}

@media (max-width: 479px) {
  .partners__track {
    --per: 1.6;
  }
}

/* ---------- contacts ---------- */

.contacts__people {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: var(--title-gap);
}

.contact-card {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  align-items: start;
  gap: 20px;
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--c-line-strong);
  background: rgba(7, 42, 34, 0.48);
}

.contact-card__photo {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--c-emerald-800);
  box-shadow:
    0 0 0 3px var(--c-emerald-850),
    0 0 0 4px rgba(212, 190, 140, 0.55);
}

.contact-card__name {
  color: var(--c-cream);
  font-size: var(--fs-300);
  font-weight: 600;
  line-height: 1.3;
}

.contact-card__role {
  margin-top: 6px;
  color: var(--c-muted);
  font-size: var(--fs-200);
  line-height: 1.45;
}

.contact-card__email {
  display: inline-block;
  max-width: 100%;
  margin-top: 12px;
  color: var(--c-gold);
  font-size: var(--fs-200);
  overflow-wrap: anywhere;
  text-underline-offset: 4px;
}

.contact-lines {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(32px, 5vw, 80px);
  margin-top: var(--title-gap);
  border-top: 1px solid var(--c-line-strong);
}

.contact-lines__row {
  display: grid;
  gap: 8px;
  padding-block: 28px;
  border-bottom: 1px solid var(--c-line);
}

.contact-lines__label {
  color: var(--c-muted);
  font-size: var(--fs-200);
}

.contact-lines__link {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 14px;
  min-height: 44px;
  color: var(--c-gold);
  font-size: clamp(22px, 2.2vw, 32px);
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  transition: color 0.2s var(--ease-out);
}

.contact-lines__link .icon {
  width: 28px;
  height: 28px;
  flex: none;
  transition: transform 0.25s var(--ease-out);
}

.contact-lines__link span {
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size 0.3s var(--ease-out);
}

.contact-lines__link:hover {
  color: var(--c-gold-strong);
}

.contact-lines__link:hover span {
  background-size: 100% 1px;
}

.contact-lines__link:hover .icon {
  transform: translateX(3px);
}

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

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

@media (min-width: 768px) and (max-width: 1199px) {
  .contacts__people {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 479px) {
  .contact-card {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 16px;
    padding: 20px;
  }

  .contact-card__photo {
    width: 72px;
    height: 72px;
  }
}

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

.site-footer {
  padding-block: 72px 32px;
  background: var(--c-emerald-950);
  color: var(--c-muted);
  font-size: var(--fs-200);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
}

.site-footer__brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.site-footer__brand img {
  width: auto;
  height: 64px;
}

.site-footer__name {
  margin-top: 20px;
  color: var(--c-cream);
  font-weight: 600;
}

.site-footer__org {
  margin-top: 8px;
  max-width: 36ch;
}

.site-footer__heading {
  margin-bottom: 12px;
  color: var(--c-cream);
  font-weight: 600;
}

.site-footer__links {
  display: grid;
  gap: 8px;
}

.site-footer__links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 44px;
  min-height: 44px;
  color: var(--c-text);
  text-decoration: none;
  text-underline-offset: 4px;
  transition: color 0.2s var(--ease-out);
}

.site-footer__links a:hover {
  color: var(--c-gold);
  text-decoration: underline;
}

.site-footer__links .icon {
  width: 16px;
  height: 16px;
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 32px;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--c-line);
  font-size: var(--fs-100);
}

@media (max-width: 899px) {
  .site-footer__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .site-footer__about {
    grid-column: 1 / -1;
  }
}

@media (max-width: 559px) {
  .site-footer__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- very small screens ---------- */

@media (max-width: 359px) {
  :root {
    --fs-600: 27px;
    --fs-500: 20px;
  }
}

/* ---------- print ---------- */

@media print {
  .site-header,
  .skip-link,
  .t-item__actions,
  .speaker__bio-cue,
  .partners__nav,
  .speakers__more,
  .place__map,
  .hero__media,
  .hero__actions {
    display: none !important;
  }

  [data-reveal],
  [data-enter] {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }

  .speaker[hidden] {
    display: block !important;
  }

  .hero {
    min-height: 0;
    padding-block: 24px;
  }
}