/* Tolyq Adam 2026: editorial event layout. The original palette is preserved. */
:root {
  --stage: #291a25;
  --stage-soft: #43242e;
  --stage-card: #59313c;
  --cream: #fbfaf7;
  --accent: #ffd226;
}

html { scroll-padding-top: 24px; }
body { background: var(--stage); color: var(--cream); overflow-x: hidden; }
main { overflow: clip; }
h1, h2, h3, h4, p, .eyebrow, .hero .subtitle { font-family: Arial, Helvetica, sans-serif; }
h2 { font-size: clamp(44px, 6vw, 88px); line-height: .97; letter-spacing: -.055em; font-weight: 800; }
h3 { font-weight: 700; }
p { font-size: clamp(17px, 1.45vw, 21px); }
.page { width: min(100%, 1600px); padding: clamp(86px, 9vw, 140px) clamp(24px, 7vw, 112px); }
.page:first-child { padding: 0; }
.section-kicker, .group-label, .eyebrow { color: var(--accent); font-size: 13px; font-weight: 800; letter-spacing: .23em; text-transform: uppercase; }
.cta { margin: 0; padding: 18px 28px; border-radius: 6px; background: var(--accent); color: var(--stage); font-size: 16px; font-weight: 800; letter-spacing: .035em; transition: transform .25s ease, background .25s ease; }
.cta:hover { background: #ffe26b; transform: translateY(-3px); }
.cta-outline { border: 1.5px solid var(--accent); background: transparent; color: var(--cream); }
.cta-outline:hover { background: rgba(255,210,38,.13); color: var(--cream); }
a:focus-visible, button:focus-visible { outline-color: var(--accent); }

/* A <picture> must not become a layout box of its own, so the <img> stays the
   grid/flex item its parent expects. That promotes the sibling <source> to an
   item too, hence the second rule. */
picture { display: contents; }
picture source { display: none; }
/* The width/height attributes on <img> reserve space before the file loads, but
   they also act as presentational hints: without this, an image sized by CSS
   width alone would take its pixel height from the attribute. */
img { height: auto; }

/* Burger button: hidden on desktop, where the nav sits inline in the header. */
.nav-toggle { display: none; width: 42px; height: 42px; padding: 0; align-items: center; justify-content: center; border: 1px solid rgba(251,250,247,.3); border-radius: 8px; background: transparent; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { content: ""; display: block; width: 20px; height: 2px; background: var(--cream); transition: transform .22s ease, opacity .22s ease; }
.nav-toggle span::before { position: absolute; transform: translateY(-6px); }
.nav-toggle span::after { position: absolute; transform: translateY(6px); }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: rotate(-45deg); }

/* Full screen opening: a live event scene behind Abai's line portrait. */
#home { position: relative; width: 100%; min-height: min(900px, 100svh); isolation: isolate; background: var(--stage); }
#home::before { content: ""; position: absolute; inset: 0; z-index: -2; background: linear-gradient(90deg, rgba(41,26,37,.98) 0%, rgba(41,26,37,.87) 42%, rgba(41,26,37,.48) 100%), linear-gradient(0deg, var(--stage), transparent 35%), url("assets/events/almau-conference.jpg") center / cover; }
#home::before { background: linear-gradient(90deg, rgba(41,26,37,.98) 0%, rgba(41,26,37,.87) 42%, rgba(41,26,37,.48) 100%), linear-gradient(0deg, var(--stage), transparent 35%), image-set(url("assets/events/almau-conference.webp") type("image/webp"), url("assets/events/almau-conference.jpg") type("image/jpeg")) center / cover; }
#home::after { content: ""; position: absolute; inset: auto 0 0; height: 150px; z-index: -1; background: linear-gradient(transparent, var(--stage)); }
#home header { width: min(100%, 1600px); min-height: 88px; padding: 18px clamp(24px, 5vw, 80px); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 34px; border-bottom: 1px solid rgba(251,250,247,.17); }
.brand { flex: none; display: inline-flex; align-items: baseline; gap: .3em; font-size: clamp(19px, 2vw, 27px); font-weight: 900; letter-spacing: -.055em; white-space: nowrap; }
.brand strong { color: var(--accent); font-weight: 900; }
.brand span { padding-left: 10px; font-size: 11px; letter-spacing: .18em; font-weight: 700; color: #fff; }
.brand:hover { text-decoration: none; }
.header-logos { display: flex; align-items: center; gap: clamp(16px, 2vw, 28px); margin-left: auto; padding-right: clamp(18px, 3vw, 48px); border-right: 1px solid rgba(251,250,247,.3); }
.header-logos img { height: 44px; width: auto; filter: brightness(0) invert(1); opacity: .92; }
.header-controls { flex: none; flex-direction: row; justify-content: flex-end; align-items: center; gap: clamp(18px, 3vw, 48px); }
nav { gap: clamp(14px, 2vw, 30px); font-size: 13px; font-weight: 700; letter-spacing: .055em; text-transform: uppercase; }
nav a { color: var(--cream); }
.languages { border-left: 1px solid rgba(251,250,247,.3); padding-left: 20px; gap: 12px; }
.languages button { color: var(--cream); font-family: Arial, Helvetica, sans-serif; font-size: 13px; font-weight: 800; }
.languages button[aria-pressed="true"] { color: var(--accent); text-decoration: none; }
#home .hero { width: min(100%, 1600px); min-height: 710px; margin: 0 auto; padding: clamp(75px, 10vw, 145px) clamp(24px, 7vw, 112px) 120px; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(300px, .7fr); align-items: center; gap: 0; }
.hero-copy { position: relative; z-index: 2; }
.hero .eyebrow { margin: 0 0 25px; }
.hero h1 { margin: 0 0 34px; font-size: clamp(86px, 11.6vw, 180px); line-height: .77; letter-spacing: -.095em; font-weight: 900; color: #fff; }
.hero h1 span { margin-top: 14px; font-size: .65em; line-height: .88; letter-spacing: -.082em; }
.hero h1 i { color: var(--accent); font-style: normal; font-size: .43em; letter-spacing: -.04em; vertical-align: .16em; margin-left: .13em; }
.hero h3, html[lang="ru"] .hero h3 { max-width: 710px; margin: 0 0 17px; font-size: clamp(22px, 2.35vw, 35px); line-height: 1.12; letter-spacing: -.02em; color: var(--cream); }
.hero .subtitle { max-width: 720px; margin: 0 0 28px; color: #d7c993; font-size: clamp(18px, 1.65vw, 25px); font-weight: 400; font-style: italic; line-height: 1.25; }
.hero .date { margin: 0 0 26px; color: var(--accent); font-size: clamp(19px, 2.25vw, 31px); font-weight: 800; line-height: 1.2; letter-spacing: .09em; text-transform: uppercase; }
.hero-actions { margin: 0; gap: 14px; }
.hero-visual { position: relative; align-self: stretch; min-height: 530px; margin: 0; padding: 0; }
.hero .art { position: absolute; inset: 0 -6vw 0 -6vw; width: auto; height: auto; min-height: 0; overflow: visible; background: radial-gradient(circle at 55% 49%, rgba(124,44,48,.93) 0 30%, rgba(124,44,48,.38) 31% 47%, transparent 48%); border: 0; box-shadow: none; }
.hero .art::before, .hero .art::after { content: ""; position: absolute; width: 73%; aspect-ratio: 1; top: 11%; left: 17%; border: 1px solid rgba(255,210,38,.32); border-radius: 50%; animation: orbit 18s linear infinite; }
.hero .art::after { width: 90%; top: 3%; left: 9%; border-color: rgba(251,250,247,.13); animation-direction: reverse; }
.art .abai { position: absolute; width: 175%; height: 175%; max-width: none; left: -37%; top: -37%; object-fit: contain; mix-blend-mode: screen; filter: drop-shadow(0 15px 50px rgba(0,0,0,.25)); z-index: 2; }
.art .gold, .art .year, .art small { display: none; }
@keyframes orbit { to { transform: rotate(360deg); } }
.marquee { overflow: hidden; padding: 22px 0; background: var(--accent); color: var(--stage); font-size: clamp(18px, 2vw, 28px); font-weight: 900; letter-spacing: .16em; white-space: nowrap; }
.marquee-track { width: max-content; animation: marquee 26s linear infinite; }
.marquee i { margin: 0 28px; color: var(--wine); font-style: normal; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Editorial rhythm: strong headings, open space and large photographs. */
#about { background: var(--stage); }
#about h2 { max-width: 1000px; margin-bottom: 70px; }
#about .split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(35px, 6vw, 100px); align-items: stretch; }
#about .split > div:first-child { padding-top: 22px; border-top: 1px solid rgba(251,250,247,.25); }
#about h3 { font-size: clamp(25px, 3vw, 44px); line-height: 1.05; }
#about p { max-width: 650px; color: #c2d0d6; }
/* Download row for the invitation letter: label, then one chip per language. */
#about .infoletter { scroll-margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-top: 30px; }
#about .infoletter span { margin-right: 6px; color: var(--accent); font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
#about .infoletter a { padding: 9px 16px; border: 1.5px solid rgba(251,250,247,.4); border-radius: 6px; font-size: 14px; font-weight: 800; letter-spacing: .08em; color: var(--cream); transition: background .2s ease, border-color .2s ease, color .2s ease; }
#about .infoletter a:hover { background: var(--accent); border-color: var(--accent); color: var(--stage); text-decoration: none; }
#about .about-photo { margin: 0; min-height: 390px; border-radius: 12px; overflow: hidden; }
#about .about-photo img { width: 100%; height: 100%; object-fit: cover; }

#moments { background: var(--cream); color: var(--stage); }
#moments h2 { max-width: 920px; margin: 22px 0 54px; }
#moments .moments-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 32px; }
#moments .photo-frame { border-radius: 12px; }
#moments img { height: clamp(300px, 32vw, 500px); border-radius: 0; }
#moments figure:first-child img { height: clamp(340px, 38vw, 590px); }
#moments figure:nth-child(2) img { height: clamp(340px, 38vw, 590px); }
#moments figcaption { margin: 14px 2px 0; color: #496071; font-size: 14px; font-weight: 700; letter-spacing: .02em; }
/* The concept text takes the whole second row, its two paragraphs side by side. */
#moments .concept { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 18px clamp(32px, 5vw, 80px); margin-top: 26px; padding-top: 34px; border-top: 1px solid rgba(41,26,37,.18); }
#moments .concept .section-kicker { grid-column: 1 / -1; color: var(--wine); }
#moments .concept p { margin: 0; color: #35424a; font-size: clamp(16px, 1.25vw, 19px); line-height: 1.55; }

#award { background: var(--stage-soft); }
#award .award-row { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
#award .award-image { width: 100%; border-radius: 12px; box-shadow: 24px 24px 0 var(--wine); }
#award h2 { color: var(--accent); font-size: clamp(43px, 5vw, 76px); }
#award p { max-width: 600px; color: #d3dee2; }

#speakers { background: var(--stage); }
#speakers > h2 { max-width: 1150px; margin: 0 0 64px; }
#speakers .speaker-group + .speaker-group { margin-top: 76px; padding-top: 70px; border-top-color: rgba(251,250,247,.24); }
/* Flex rather than grid so a short last row (three cards, or one) sits centred. */
#speakers .speakers-grid, #speakers .speaker-group:last-child .speakers-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 44px 20px; }
#speakers .speaker { display: block; flex: 0 0 calc((100% - 60px) / 4); padding: 0; min-width: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
#speakers .speaker img { width: 100%; height: auto; aspect-ratio: .83; max-width: none; object-fit: cover; object-position: center 22%; margin: 0 0 18px; border: 0; border-radius: 30px; background: var(--stage-card); }
#speakers .speaker h4 { color: var(--cream); font-size: clamp(20px, 1.85vw, 28px); }
#speakers .speaker .role { color: #afc2c9; font-size: 14px; line-height: 1.45; }
#speakers .speaker:hover { box-shadow: none; border: 0; }

#venue { background: var(--cream); color: var(--stage); }
#venue h2 { max-width: 1100px; }
#venue .split { align-items: center; gap: clamp(40px, 6vw, 100px); }
#venue h3 { font-size: clamp(25px, 3vw, 42px); }
#venue .venue-photo { width: 100%; min-height: 420px; object-fit: cover; border-radius: 12px; }
#venue .cta { margin-top: 22px; }

#contacts { background: var(--stage); }
#contacts > h2 { max-width: 1100px; }
#contacts .split { gap: clamp(40px, 6vw, 100px); }
#contacts h3 { font-size: clamp(25px, 3vw, 40px); }
#contacts .contact { padding: 28px 32px 12px; border: 1px solid rgba(251,250,247,.22); border-radius: 12px; }
#contacts .contact h3 { margin: 0 0 10px; }
/* One row per channel: outlined icon disc, channel name, then the value. The
   whole row is the link; hovering fills the disc instead of underlining it all. */
#contacts .contact-row { display: grid; grid-template-columns: 46px minmax(0, 1fr); column-gap: 18px; align-items: center; margin: 0; padding: 16px 0; font-size: inherit; color: var(--cream); }
#contacts .contact-row + .contact-row { border-top: 1px solid rgba(251,250,247,.14); }
#contacts .contact-row:hover { text-decoration: none; }
#contacts .contact-row .icon { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(251,250,247,.3); color: var(--accent); transition: background .2s ease, border-color .2s ease, color .2s ease; }
#contacts .contact-row .icon svg { width: 22px; height: 22px; }
#contacts .contact-row:hover .icon { background: var(--accent); border-color: var(--accent); color: var(--stage); }
#contacts .contact-row small { display: block; margin-bottom: 3px; font-size: 11px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: rgba(251,250,247,.58); }
#contacts .contact-row strong { display: block; font-size: clamp(18px, 1.55vw, 22px); font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; }
#contacts .contact-row:hover strong { text-decoration: underline; text-underline-offset: 4px; }
#venue h3 .icon { display: inline-grid; place-items: center; width: 40px; height: 40px; margin-right: 4px; border-radius: 50%; background: var(--accent); color: var(--stage); }
#venue h3 .icon svg { width: 22px; height: 22px; }
footer { background: var(--stage); color: #c1d0d6; border-top: 1px solid rgba(251,250,247,.2); }

@media (max-width: 1050px) {
  #home header { flex-wrap: wrap; }
  .header-logos { padding-right: 0; border-right: 0; }
  .header-logos img { height: 38px; }
  .header-controls { width: 100%; justify-content: space-between; }
  #home .hero { grid-template-columns: 1fr .7fr; padding-top: 80px; }
  .hero h1 { font-size: clamp(80px, 10vw, 120px); }
  #speakers .speaker { flex-basis: calc((100% - 40px) / 3); }
}
@media (max-width: 700px) {
  .page { padding: 72px 22px; }
  h2 { font-size: clamp(32px, 8.6vw, 52px); }
  #home { min-height: 0; }
  #home header { position: relative; flex-direction: row; align-items: center; flex-wrap: wrap; padding: 16px 22px; gap: 12px 14px; }
  .brand { font-size: 20px; }
  .header-controls { width: auto; margin-left: auto; gap: 12px; }
  .header-logos { order: 3; flex: 1 0 100%; justify-content: center; gap: 24px; margin: 0; padding: 12px 0 2px; border-top: 1px solid rgba(251,250,247,.17); }
  .header-logos img { height: 32px; }
  .languages { padding-left: 12px; gap: 10px; }
  /* The four links move into a panel that drops below the header bar. */
  .nav-toggle { display: inline-flex; }
  nav { position: absolute; top: 100%; left: 0; right: 0; z-index: 9; flex-direction: column; align-items: stretch; gap: 0; padding: 0 22px; font-size: 14px; background: var(--stage); border-bottom: 1px solid rgba(251,250,247,.17); max-height: 0; overflow: hidden; visibility: hidden; transition: max-height .25s ease, visibility 0s linear .25s; }
  nav a { padding: 15px 0; border-bottom: 1px solid rgba(251,250,247,.12); }
  nav a:last-child { border-bottom: 0; }
  #home header.nav-open nav { max-height: 60vh; visibility: visible; padding-bottom: 8px; transition: max-height .25s ease, visibility 0s; }
  #home .hero { display: flex; flex-direction: column; min-height: 0; padding: 74px 22px 44px; align-items: stretch; }
  .hero-copy { width: 100%; min-width: 0; }
  .hero h1 { font-size: clamp(66px, 16vw, 96px); }
  .hero h1 span { font-size: .62em; }
  .hero h3, html[lang="ru"] .hero h3 { font-size: 24px; }
  .hero .date { font-size: 18px; letter-spacing: .045em; overflow-wrap: anywhere; }
  .hero-actions .cta { width: 100%; text-align: center; }
  .hero-visual { height: 390px; min-height: 390px; margin-top: 28px; }
  .hero .art { inset: 0 -14px; }
  .art .abai { width: 155%; height: 155%; left: -27%; top: -28%; }
  .marquee { padding: 15px 0; font-size: 16px; }
  #about .split, #award .award-row, #venue .split, #contacts .split { grid-template-columns: 1fr; }
  #about h2 { margin-bottom: 42px; }
  #about .about-photo { min-height: 0; aspect-ratio: 1.45; }
  #moments .moments-grid { grid-template-columns: 1fr; gap: 30px; }
  #moments figure img { height: auto; aspect-ratio: 1.45; }
  #moments .concept { grid-template-columns: 1fr; }
  #speakers .speakers-grid, #speakers .speaker-group:last-child .speakers-grid { gap: 34px 14px; }
  #speakers .speaker { flex-basis: calc((100% - 14px) / 2); }
  #speakers .speaker img { aspect-ratio: .8; }
  #speakers .speaker h4 { font-size: 18px; }
  #speakers .speaker .role { font-size: 12px; }
  #venue .venue-photo { min-height: 0; }
}
/* Below this the two speaker columns get too narrow to read; common phones
   (390-430px) stay on two columns so the section does not run 7000px long. */
@media (max-width: 359px) {
  .hero h1 { font-size: 66px; }
  #speakers .speaker { flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track, .hero .art::before, .hero .art::after { animation: none; }
}
