﻿/* ==========================================================
   Uzbekistan Chairmanship to the Non-Aligned Movement 2027–2030
   Design tokens — Samarkand lapis, turquoise tile, gold leaf, marble
   ========================================================== */
@import url('https://fonts.googleapis.com/css2?family=Onest:wght@400;500;600;700&family=Spectral:ital,wght@0,400;0,500;0,600;1,400&display=swap');

:root {
  --lapis: #0F2C5C;
  --lapis-deep: #091D3E;
  --lapis-soft: #E8EEF8;
  --turq: #12898B;
  --turq-soft: #E3F3F2;
  --gold: #B08A3E;
  --gold-soft: #F6EFDF;
  --marble: #F4F6F9;
  --paper: #FFFFFF;
  --ink: #18202E;
  --muted: #5B6577;
  --line: #DCE1EA;
  --flag-blue: #0099B5;
  --flag-green: #1EB53A;
  --flag-red: #CE1126;
  --ok: #1E7A46;
  --warn: #A86A00;
  --err: #B42318;

  --f-display: 'Spectral', Georgia, serif;
  --f-body: 'Onest', system-ui, sans-serif;

  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 72px; --s-9: 112px;
  --r-sm: 2px; --r-md: 6px; --r-lg: 10px;
  --wrap: 1240px;
  --ease: cubic-bezier(.2,.7,.2,1);
  --shadow: 0 1px 2px rgba(15,44,92,.06), 0 8px 24px -12px rgba(15,44,92,.18);
}

*,*::before,*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body { overflow-x: clip; }
body {
  margin: 0; font-family: var(--f-body); font-size: 16px; line-height: 1.6;
  color: var(--ink); background: var(--marble);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--lapis); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--turq); }
:focus-visible { outline: 2px solid var(--turq); outline-offset: 3px; border-radius: 2px; }
button { font: inherit; cursor: pointer; }
h1,h2,h3,h4 { font-family: var(--f-display); font-weight: 500; line-height: 1.15; margin: 0 0 var(--s-4); color: var(--lapis-deep); letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.9rem); }
h2 { font-size: clamp(1.75rem, 3vw, 2.6rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; }
p { margin: 0 0 var(--s-4); max-width: 72ch; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--s-5); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--paper); padding: 8px 14px; z-index: 999; }
.skip:focus { left: 8px; }
.muted { color: var(--muted); }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 62ch; }

/* ---------- Flag stripe: structural divider borrowed from the national flag ---------- */
.flag-stripe { height: 9px; display: grid; grid-template-rows: 3fr 1fr 3fr 1fr 3fr; }
.flag-stripe i:nth-child(1) { background: var(--flag-blue); }
.flag-stripe i:nth-child(2), .flag-stripe i:nth-child(4) { background: var(--flag-red); }
.flag-stripe i:nth-child(3) { background: #fff; }
.flag-stripe i:nth-child(5) { background: var(--flag-green); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 22px; border: 1px solid transparent; border-radius: var(--r-sm);
  font-weight: 600; font-size: .95rem; text-decoration: none; line-height: 1.2;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .2s var(--ease);
  position: relative; overflow: hidden;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--lapis); color: #fff; }
.btn-primary:hover { background: var(--lapis-deep); color: #fff; }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: #95732F; color: #fff; }
.btn-ghost { background: transparent; color: var(--lapis); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--lapis); color: var(--lapis); }
.btn-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.btn-light:hover { background: rgba(255,255,255,.1); color: #fff; border-color: #fff; }
.btn-danger { background: var(--err); color: #fff; }
.btn-sm { padding: 8px 14px; font-size: .85rem; }
.btn svg { width: 18px; height: 18px; }
.btn::after { /* sheen on hover */
  content: ""; position: absolute; inset: 0; transform: translateX(-120%);
  background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.22) 50%, transparent 70%);
  transition: transform .7s var(--ease);
}
.btn:hover::after { transform: translateX(120%); }

/* ---------- Utility bar + header ---------- */
.utility { background: var(--lapis-deep); color: #C9D4EA; font-size: .82rem; }
.utility .wrap { display: flex; justify-content: space-between; align-items: center; gap: var(--s-4); min-height: 38px; }
.utility a { color: #C9D4EA; text-decoration: none; }
.utility a:hover { color: #fff; }
.utility-links { display: flex; gap: var(--s-5); align-items: center; }
.lang { display: flex; gap: 2px; }
.lang button { background: none; border: 0; color: #9FB0D0; padding: 4px 8px; border-radius: var(--r-sm); font-size: .8rem; font-weight: 600; }
.lang button[aria-pressed="true"] { background: rgba(255,255,255,.12); color: #fff; }
.utility .portal-link { display: inline-flex; align-items: center; gap: 6px; color: #fff; font-weight: 600; }
.utility .portal-link svg { width: 15px; height: 15px; }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); transition: box-shadow .3s var(--ease); }
.site-header.scrolled { box-shadow: 0 8px 30px -18px rgba(9,29,62,.35); }
.site-header .wrap { display: flex; align-items: center; gap: var(--s-5); min-height: 84px; transition: min-height .3s var(--ease); }
.site-header.scrolled .wrap { min-height: 66px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--lapis-deep); flex-shrink: 0; }
.brand svg { width: 50px; height: 50px; transition: transform .6s var(--ease); }
.brand:hover svg { transform: rotate(45deg); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text b { font-family: var(--f-display); font-weight: 600; font-size: 1.05rem; }
.brand-text span { font-size: .78rem; color: var(--muted); }

.nav { margin-left: auto; }
.nav > ul { list-style: none; display: flex; gap: 2px; margin: 0; padding: 0; }
.nav > ul > li { position: relative; }
.nav > ul > li > a, .nav > ul > li > button {
  display: flex; align-items: center; gap: 4px; padding: 10px 12px; border: 0; background: none;
  color: var(--ink); font-weight: 500; font-size: .92rem; text-decoration: none; border-radius: var(--r-sm);
}
.nav > ul > li > a::after, .nav > ul > li > button::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; background: var(--gold);
  transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.nav > ul > li:hover > a::after, .nav > ul > li:hover > button::after,
.nav > ul > li > a[aria-current="page"]::after, .nav > ul > li.current > button::after { transform: scaleX(1); }
.nav .caret { width: 10px; height: 10px; transition: transform .3s var(--ease); }
.nav li:hover .caret, .nav li.open .caret { transform: rotate(180deg); }
.dropdown {
  position: absolute; top: 100%; left: 0; min-width: 260px; background: var(--paper);
  border: 1px solid var(--line); border-top: 2px solid var(--gold); box-shadow: var(--shadow);
  padding: 8px; list-style: none; margin: 0;
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: all .25s var(--ease);
}
.nav li:hover > .dropdown, .nav li:focus-within > .dropdown, .nav li.open > .dropdown { opacity: 1; visibility: visible; transform: none; }
.dropdown a { display: block; padding: 9px 12px; color: var(--ink); text-decoration: none; font-size: .9rem; border-radius: var(--r-sm); transition: background .2s, padding .2s; }
.dropdown a:hover { background: var(--lapis-soft); color: var(--lapis); padding-left: 16px; }
.header-actions { display: flex; gap: var(--s-2); align-items: center; }
.icon-btn { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line); background: var(--paper); border-radius: var(--r-sm); color: var(--lapis); transition: border-color .2s; }
.icon-btn:hover { border-color: var(--lapis); }
.icon-btn svg { width: 19px; height: 19px; }
.menu-toggle { display: none; }

/* Search overlay */
.search-overlay { position: fixed; inset: 0; z-index: 200; background: rgba(9,29,62,.72); backdrop-filter: blur(6px); display: none; align-items: flex-start; justify-content: center; padding: 12vh 16px 0; }
.search-overlay.open { display: flex; animation: fade .25s var(--ease); }
.search-box { width: min(720px, 100%); background: var(--paper); border-radius: var(--r-md); overflow: hidden; animation: rise .35s var(--ease); }
.search-box input { width: 100%; border: 0; padding: 22px 24px; font: 500 1.2rem var(--f-body); outline: none; border-bottom: 1px solid var(--line); }
.search-results { max-height: 50vh; overflow: auto; }
.search-results a { display: block; padding: 14px 24px; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--line); }
.search-results a:hover { background: var(--marble); }
.search-results small { display: block; color: var(--muted); }
.search-results .empty { padding: 20px 24px; color: var(--muted); }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--lapis-deep); color: #fff; overflow: hidden; isolation: isolate; }
:root { --tile: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%23fff' stroke-width='1'%3E%3Crect x='20' y='20' width='40' height='40'/%3E%3Crect x='20' y='20' width='40' height='40' transform='rotate(45 40 40)'/%3E%3Cpath d='M0 0L20 20M80 0L60 20M0 80L20 60M80 80L60 60'/%3E%3C/g%3E%3C/svg%3E");
  }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; opacity: .07; background-image: var(--tile); background-size: 80px 80px; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse 60% 70% at 78% 40%, rgba(18,137,139,.35), transparent 70%), linear-gradient(180deg, transparent 60%, rgba(9,29,62,.9)); }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: var(--s-7); align-items: center; padding-top: var(--s-8); padding-bottom: var(--s-8); min-height: min(78vh, 760px); }
.hero h1 { color: #fff; font-weight: 400; }
.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .line span { display: block; transform: translateY(105%); animation: lineUp 1s var(--ease) forwards; }
.hero h1 .line:nth-child(2) span { animation-delay: .12s; }
.hero h1 .line:nth-child(3) span { animation-delay: .24s; }
.hero .kicker { display: inline-flex; align-items: center; gap: 10px; font-size: .92rem; color: #D7C08A; margin-bottom: var(--s-5); opacity: 0; animation: fadeUp .8s .1s var(--ease) forwards; }
.hero .kicker::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.hero p.lede { color: #C9D4EA; opacity: 0; animation: fadeUp .8s .5s var(--ease) forwards; }
.hero-cta { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-6); opacity: 0; animation: fadeUp .8s .65s var(--ease) forwards; }
.hero-art { position: relative; aspect-ratio: 1; width: 100%; max-width: 560px; justify-self: end; }
.hero-art svg { width: 100%; height: 100%; }
.hero-art .rosette { transform-origin: 50% 50%; animation: spin 240s linear infinite; }
.hero-art .draw { stroke-dasharray: var(--len, 1200); stroke-dashoffset: var(--len, 1200); animation: draw 2.6s var(--ease) forwards; }
.hero-art .center-badge { opacity: 0; animation: fade 1s 1.8s forwards; }

.countdown { display: flex; gap: var(--s-2); margin-top: var(--s-6); opacity: 0; animation: fadeUp .8s .8s var(--ease) forwards; flex-wrap: wrap; align-items: stretch; }
.countdown .cd-label { display: flex; flex-direction: column; justify-content: center; padding-right: var(--s-4); font-size: .85rem; color: #C9D4EA; border-right: 1px solid rgba(255,255,255,.2); margin-right: var(--s-2); }
.countdown .cd-label b { color: #fff; font-weight: 600; font-size: .95rem; }
.cd-unit { min-width: 70px; text-align: center; padding: 10px 8px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.04); }
.cd-unit b { display: block; font-family: var(--f-display); font-size: 1.9rem; font-weight: 500; line-height: 1; font-variant-numeric: tabular-nums; }
.cd-unit small { color: #9FB0D0; font-size: .74rem; }

.skyline { position: absolute; left: 0; right: 0; bottom: 9px; height: 90px; z-index: -1; opacity: .16; color: #fff; }
.hero .flag-stripe { position: absolute; left: 0; right: 0; bottom: 0; transform-origin: left; animation: stripe 1.4s .3s var(--ease) both; }

/* Page hero (inner pages) */
.page-hero { position: relative; background: var(--lapis-deep); color: #fff; overflow: hidden; isolation: isolate; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .07; background-image: var(--tile); background-size: 80px 80px; }
.page-hero .wrap { padding-top: var(--s-8); padding-bottom: var(--s-7); position: relative; }
.page-hero h1 { color: #fff; font-weight: 400; max-width: 22ch; animation: fadeUp .8s var(--ease) both; }
.page-hero p { color: #C9D4EA; max-width: 64ch; animation: fadeUp .8s .12s var(--ease) both; }
.page-hero .pattern { position: absolute; right: -80px; top: 50%; width: 460px; height: 460px; transform: translateY(-50%); opacity: .22; z-index: -1; }
.page-hero .pattern g { transform-origin: 50% 50%; animation: spin 200s linear infinite; }
.crumbs { display: flex; gap: 8px; font-size: .84rem; color: #9FB0D0; margin-bottom: var(--s-4); flex-wrap: wrap; }
.crumbs a { color: #C9D4EA; text-decoration: none; }
.crumbs a:hover { color: #fff; }
.crumbs span[aria-hidden] { opacity: .5; }

/* ---------- Sections ---------- */
.section { padding: var(--s-9) 0; }
.section.tight { padding: var(--s-8) 0; }
.section.paper { background: var(--paper); }
.section.lapis { background: var(--lapis); color: #fff; }
.section.lapis h2, .section.lapis h3 { color: #fff; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: var(--s-5); margin-bottom: var(--s-7); flex-wrap: wrap; }
.section-head h2 { margin: 0; max-width: 26ch; }
.section-head p { margin: var(--s-3) 0 0; color: var(--muted); }
.ornament { width: 44px; height: 14px; color: var(--gold); margin-bottom: var(--s-4); }

/* Key figures */
.figures { background: var(--paper); border-bottom: 1px solid var(--line); }
.figures .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.figure { padding: var(--s-6) var(--s-5); border-left: 1px solid var(--line); }
.figure:first-child { border-left: 0; padding-left: 0; }
.figure b { display: block; font-family: var(--f-display); font-size: 2.6rem; font-weight: 500; color: var(--lapis); line-height: 1; font-variant-numeric: tabular-nums; }
.figure span { color: var(--muted); font-size: .92rem; }

/* Welcome address */
.address { display: grid; grid-template-columns: 340px 1fr; gap: var(--s-8); align-items: start; }
.portrait { position: relative; aspect-ratio: 4/5; background: linear-gradient(160deg, var(--lapis) 0%, var(--lapis-deep) 100%); border-radius: var(--r-sm); overflow: hidden; display: grid; place-items: center; color: rgba(255,255,255,.55); text-align: center; font-size: .85rem; }
.portrait svg { width: 60%; opacity: .5; }
.portrait figcaption { position: absolute; bottom: 0; left: 0; right: 0; padding: 14px 16px; background: rgba(9,29,62,.85); color: #fff; text-align: left; }
.portrait figcaption b { display: block; font-family: var(--f-display); font-weight: 500; font-size: 1.05rem; }
.address blockquote { margin: 0; font-family: var(--f-display); font-size: clamp(1.3rem, 2.2vw, 1.75rem); line-height: 1.45; color: var(--lapis-deep); font-weight: 400; }
.address blockquote::before { content: "“"; display: block; font-size: 5rem; line-height: .6; color: var(--gold); height: 40px; }
.draft-note { display: inline-block; font-size: .78rem; color: var(--warn); background: #FFF6E5; padding: 3px 8px; border-radius: var(--r-sm); margin-bottom: var(--s-4); }

/* Quick access: delegate services */
.quick { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.quick a { position: relative; display: flex; flex-direction: column; gap: var(--s-3); padding: var(--s-6) var(--s-5); text-decoration: none; color: var(--ink); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper); overflow: hidden; transition: color .3s var(--ease); min-height: 190px; }
.quick a::before { content: ""; position: absolute; inset: 0; background: var(--lapis); transform: translateY(101%); transition: transform .45s var(--ease); z-index: 0; }
.quick a > * { position: relative; z-index: 1; }
.quick a:hover::before, .quick a:focus-visible::before { transform: none; }
.quick a:hover, .quick a:focus-visible { color: #fff; }
.quick a:hover h3, .quick a:focus-visible h3 { color: #fff; }
.quick a:hover .qi, .quick a:focus-visible .qi { color: #D7C08A; transform: rotate(-8deg) scale(1.08); }
.quick .qi { width: 34px; height: 34px; color: var(--turq); transition: transform .45s var(--ease), color .3s; }
.quick h3 { font-size: 1.12rem; margin: auto 0 0; transition: color .3s; }
.quick p { font-size: .87rem; margin: 0; opacity: .8; }
.quick a.primary { background: var(--gold-soft); }

/* News */
.news-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--s-6); }
.news-feature { display: block; text-decoration: none; color: inherit; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; }
.news-feature .cover { aspect-ratio: 16/9; }
.news-feature .body { padding: var(--s-5) var(--s-6) var(--s-6); }
.news-feature h3 { font-size: 1.6rem; transition: color .25s; }
.news-feature:hover h3, .news-item:hover h4, .card-link:hover h3 { color: var(--turq); }
.cover { position: relative; overflow: hidden; background: var(--lapis); }
.cover img, .cover svg { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.news-feature:hover .cover img, .news-feature:hover .cover svg, .card-link:hover .cover img, .card-link:hover .cover svg { transform: scale(1.05); }
.news-list { display: flex; flex-direction: column; }
.news-item { display: grid; grid-template-columns: 120px 1fr; gap: var(--s-4); padding: var(--s-4) 0; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; }
.news-item:first-child { padding-top: 0; }
.news-item .cover { aspect-ratio: 4/3; border-radius: var(--r-sm); }
.news-item h4 { font-size: 1.05rem; margin: 4px 0 0; transition: color .25s; }
.meta { display: flex; gap: var(--s-3); align-items: center; font-size: .8rem; color: var(--muted); flex-wrap: wrap; }
.tag { display: inline-block; padding: 2px 8px; border-radius: var(--r-sm); font-size: .75rem; font-weight: 600; background: var(--lapis-soft); color: var(--lapis); }
.tag.press { background: var(--gold-soft); color: #7A5D22; }
.tag.statement { background: var(--turq-soft); color: #0B6062; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5); }
.card-link { display: flex; flex-direction: column; text-decoration: none; color: inherit; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; }
.card-link .cover { aspect-ratio: 16/10; }
.card-link .body { padding: var(--s-5); display: flex; flex-direction: column; gap: var(--s-2); flex: 1; }
.card-link h3 { font-size: 1.2rem; margin: 0; transition: color .25s; }
.card-link p { font-size: .92rem; color: var(--muted); margin: 0; }

/* Programme timeline (real sequence → numbered days) */
.timeline { position: relative; display: grid; gap: 0; }
.tl-day { display: grid; grid-template-columns: 200px 1fr; gap: var(--s-6); padding: var(--s-6) 0; border-top: 1px solid var(--line); }
.tl-day:last-child { border-bottom: 1px solid var(--line); }
.tl-date b { display: block; font-family: var(--f-display); font-size: 2.4rem; font-weight: 500; color: var(--lapis); line-height: 1; }
.tl-date span { color: var(--muted); font-size: .88rem; }
.tl-events { display: grid; gap: var(--s-3); }
.tl-event { display: grid; grid-template-columns: 110px 1fr auto; gap: var(--s-4); align-items: baseline; padding: var(--s-3) var(--s-4); background: var(--paper); border-left: 2px solid var(--line); transition: border-color .25s, transform .25s var(--ease); }
.tl-event:hover { border-color: var(--gold); transform: translateX(4px); }
.tl-event time { font-weight: 600; font-variant-numeric: tabular-nums; color: var(--lapis); }
.tl-event h4 { margin: 0; font-family: var(--f-body); font-size: 1rem; font-weight: 600; color: var(--ink); }
.tl-event p { margin: 2px 0 0; font-size: .87rem; color: var(--muted); }
.level { font-size: .74rem; padding: 2px 8px; border-radius: var(--r-sm); white-space: nowrap; background: var(--marble); color: var(--muted); border: 1px solid var(--line); }
.level.summit { background: var(--lapis); color: #fff; border-color: var(--lapis); }
.level.ministerial { background: var(--turq-soft); color: #0B6062; border-color: transparent; }
.level.som { background: var(--gold-soft); color: #7A5D22; border-color: transparent; }

/* Discover Uzbekistan */
.discover { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-4); }
.city { position: relative; aspect-ratio: 3/4; border-radius: var(--r-sm); overflow: hidden; color: #fff; text-decoration: none; display: flex; align-items: flex-end; isolation: isolate; }
.city svg.bg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; transition: transform 1.2s var(--ease); }
.city:hover svg.bg { transform: scale(1.06); }
.city::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(9,29,62,.85)); z-index: -1; }
.city div { padding: var(--s-5); }
.city h3 { color: #fff; margin: 0 0 4px; }
.city p { margin: 0; font-size: .88rem; color: #D6DEEE; }

/* Members marquee */
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: var(--s-6); width: max-content; animation: marquee 90s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.member { display: flex; align-items: center; gap: 10px; white-space: nowrap; font-size: .92rem; color: var(--ink); }
.member img { width: 32px; height: 22px; object-fit: cover; border: 1px solid var(--line); border-radius: 2px; }

/* Content pages */
.layout-side { display: grid; grid-template-columns: 240px 1fr; gap: var(--s-8); align-items: start; }
.side-nav { position: sticky; top: 110px; display: flex; flex-direction: column; border-left: 1px solid var(--line); }
.side-nav a { padding: 8px 0 8px 18px; color: var(--muted); text-decoration: none; font-size: .92rem; border-left: 2px solid transparent; margin-left: -1px; transition: color .2s, border-color .2s; }
.side-nav a:hover { color: var(--lapis); }
.side-nav a.active { color: var(--lapis); border-color: var(--gold); font-weight: 600; }
.prose h2 { margin-top: var(--s-8); padding-top: var(--s-2); scroll-margin-top: 110px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: var(--s-6); }
.prose ul, .prose ol { padding-left: 1.2em; max-width: 72ch; }
.prose li { margin-bottom: 6px; }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border: 1px solid var(--line); background: var(--paper); margin: var(--s-5) 0; }
.facts div { padding: var(--s-4) var(--s-5); border-bottom: 1px solid var(--line); }
.facts div:nth-child(odd) { border-right: 1px solid var(--line); }
.facts dt { font-size: .8rem; color: var(--muted); }
.facts dd { margin: 2px 0 0; font-weight: 600; }
.principles { counter-reset: p; list-style: none; padding: 0 !important; display: grid; gap: 0; }
.principles li { counter-increment: p; display: grid; grid-template-columns: 48px 1fr; padding: var(--s-4) 0; border-bottom: 1px solid var(--line); margin: 0; }
.principles li::before { content: counter(p); font-family: var(--f-display); font-size: 1.5rem; color: var(--gold); line-height: 1.1; }
.note-box { padding: var(--s-5); background: var(--lapis-soft); border-left: 3px solid var(--lapis); margin: var(--s-5) 0; }
.note-box p:last-child { margin: 0; }
.priority-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-4); margin: var(--s-5) 0; }
.priority { padding: var(--s-5); background: var(--paper); border: 1px solid var(--line); border-top: 3px solid var(--turq); }
.priority h4 { margin-bottom: 6px; }
.priority p { font-size: .92rem; color: var(--muted); margin: 0; }

.member-filter { display: flex; gap: var(--s-2); flex-wrap: wrap; margin-bottom: var(--s-4); }
.chip { padding: 7px 14px; border: 1px solid var(--line); background: var(--paper); border-radius: 999px; font-size: .85rem; color: var(--ink); transition: all .2s; }
.chip[aria-pressed="true"] { background: var(--lapis); border-color: var(--lapis); color: #fff; }
.member-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.member-grid .member { background: var(--paper); padding: 12px 14px; animation: fade .4s var(--ease) both; }

/* Guide (delegate services) */
.guide-tabs { display: flex; gap: 0; border-bottom: 1px solid var(--line); overflow-x: auto; margin-bottom: var(--s-7); scrollbar-width: none; }
.guide-tabs button { flex-shrink: 0; padding: 14px 18px; border: 0; background: none; color: var(--muted); font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color .2s, border-color .25s; }
.guide-tabs button[aria-selected="true"] { color: var(--lapis); border-color: var(--gold); }
.guide-panel { display: none; }
.guide-panel.active { display: block; animation: fadeUp .45s var(--ease); }
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); }
.info-card { background: var(--paper); border: 1px solid var(--line); padding: var(--s-5); border-radius: var(--r-sm); }
.info-card h4 { margin-bottom: 8px; }
.info-card p, .info-card li { font-size: .92rem; color: var(--muted); }
.info-card ul { padding-left: 1.1em; margin: 0; }
.info-card .row { display: flex; justify-content: space-between; gap: 8px; font-size: .9rem; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.info-card .row:last-child { border: 0; }
.stars { color: var(--gold); letter-spacing: 2px; }
table.data { width: 100%; border-collapse: collapse; background: var(--paper); font-size: .92rem; }
table.data th, table.data td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data th { font-weight: 600; color: var(--muted); font-size: .82rem; background: var(--marble); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-sm); }
.hospitality { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); margin: var(--s-5) 0; }
.hosp { padding: var(--s-5); background: var(--paper); border: 1px solid var(--line); }
.hosp b { font-family: var(--f-display); font-size: 2.4rem; font-weight: 500; color: var(--lapis); display: block; line-height: 1; margin-bottom: 8px; }
.venue-map { background: var(--paper); border: 1px solid var(--line); padding: var(--s-4); }
.venue-map svg text { font-family: var(--f-body); }
.venue-map .room { cursor: pointer; transition: fill .2s; }
.venue-map .room:hover, .venue-map .room.active { fill: var(--gold-soft); }

/* Media */
.media-tabs { display: flex; gap: var(--s-2); margin-bottom: var(--s-6); flex-wrap: wrap; }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-3); }
.gallery button { padding: 0; border: 0; background: var(--lapis); aspect-ratio: 1; overflow: hidden; border-radius: var(--r-sm); position: relative; }
.gallery button img, .gallery button svg { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), opacity .3s; }
.gallery button:hover img, .gallery button:hover svg { transform: scale(1.07); }
.gallery button span { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 12px; color: #fff; font-size: .8rem; text-align: left; background: linear-gradient(transparent, rgba(9,29,62,.85)); transform: translateY(100%); transition: transform .35s var(--ease); }
.gallery button:hover span, .gallery button:focus-visible span { transform: none; }
.album { margin-bottom: var(--s-8); }
.album-head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-4); margin-bottom: var(--s-4); flex-wrap: wrap; }
.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5); }
.video { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; }
.video .frame { aspect-ratio: 16/9; background: var(--lapis-deep); position: relative; display: grid; place-items: center; }
.video .frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.play { width: 64px; height: 64px; border-radius: 50%; border: 1px solid rgba(255,255,255,.5); background: rgba(255,255,255,.08); color: #fff; display: grid; place-items: center; transition: transform .3s var(--ease), background .3s; }
.play:hover { transform: scale(1.1); background: var(--gold); border-color: var(--gold); }
.video .body { padding: var(--s-4); }
.video h4 { margin: 0 0 4px; font-family: var(--f-body); font-weight: 600; font-size: 1rem; }
.downloads { display: grid; gap: 0; border-top: 1px solid var(--line); }
.dl { display: grid; grid-template-columns: 44px 1fr auto; gap: var(--s-4); align-items: center; padding: var(--s-4) 0; border-bottom: 1px solid var(--line); }
.dl .ext { width: 44px; height: 52px; display: grid; place-items: center; background: var(--lapis-soft); color: var(--lapis); font-size: .7rem; font-weight: 700; border-radius: var(--r-sm); }

.lightbox { position: fixed; inset: 0; background: rgba(5,15,33,.94); z-index: 300; display: none; align-items: center; justify-content: center; padding: 24px; }
.lightbox.open { display: flex; animation: fade .3s; }
.lightbox figure { margin: 0; max-width: 1100px; width: 100%; animation: zoomIn .4s var(--ease); }
.lightbox img, .lightbox svg { max-height: 78vh; width: 100%; object-fit: contain; }
.lightbox figcaption { color: #C9D4EA; margin-top: 12px; font-size: .9rem; }
.lightbox .lb-close, .lightbox .lb-nav { position: absolute; background: rgba(255,255,255,.1); border: 0; color: #fff; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; }
.lightbox .lb-close { top: 20px; right: 20px; }
.lightbox .lb-prev { left: 20px; top: 50%; }
.lightbox .lb-next { right: 20px; top: 50%; }

/* Article */
.article { max-width: 760px; }
.article .cover { aspect-ratio: 16/9; border-radius: var(--r-sm); margin-bottom: var(--s-6); }
.article .content { font-size: 1.08rem; }
.article .content p { max-width: none; }
.share { display: flex; gap: var(--s-2); margin-top: var(--s-6); padding-top: var(--s-5); border-top: 1px solid var(--line); align-items: center; flex-wrap: wrap; }
.pager { display: flex; gap: var(--s-2); justify-content: center; margin-top: var(--s-7); }
.toolbar { display: flex; gap: var(--s-3); flex-wrap: wrap; align-items: center; margin-bottom: var(--s-6); }
.toolbar input[type=search] { flex: 1; min-width: 220px; }

/* Contacts */
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-5); }
.contact-card { background: var(--paper); border: 1px solid var(--line); padding: var(--s-6); }
.contact-card dl { display: grid; grid-template-columns: 120px 1fr; gap: 8px var(--s-4); margin: 0; font-size: .95rem; }
.contact-card dt { color: var(--muted); }
.contact-card dd { margin: 0; }

/* ---------- Forms (shared) ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .field .label { font-size: .86rem; font-weight: 600; color: var(--ink); }
.req { color: var(--err); margin-left: 2px; }
.hint { font-size: .78rem; color: var(--muted); }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=date], input[type=time], input[type=url], input[type=search], input[type=number], select, textarea {
  width: 100%; padding: 11px 13px; border: 1px solid #C8CFDB; border-radius: var(--r-sm); background: var(--paper);
  font: 400 .95rem var(--f-body); color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
textarea { resize: vertical; min-height: 110px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--lapis); box-shadow: 0 0 0 3px rgba(15,44,92,.12); }
.field.invalid input, .field.invalid select, .field.invalid textarea, .field.invalid .dropzone { border-color: var(--err); box-shadow: 0 0 0 3px rgba(180,35,24,.1); }
.field .error { display: none; font-size: .78rem; color: var(--err); }
.field.invalid .error { display: block; animation: shake .35s; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-4) var(--s-5); }
.form-grid .full { grid-column: 1 / -1; }
.form-grid.three { grid-template-columns: repeat(3, 1fr); }
.choice-group { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; }
.choice span { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border: 1px solid #C8CFDB; border-radius: var(--r-sm); background: var(--paper); font-size: .9rem; cursor: pointer; transition: all .2s; }
.choice input:checked + span { border-color: var(--lapis); background: var(--lapis-soft); color: var(--lapis); font-weight: 600; box-shadow: inset 0 0 0 1px var(--lapis); }
.choice input:focus-visible + span { outline: 2px solid var(--turq); outline-offset: 2px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--lapis); flex-shrink: 0; }

.dropzone { position: relative; border: 1.5px dashed #B9C2D1; border-radius: var(--r-md); padding: var(--s-5); text-align: center; background: var(--marble); transition: border-color .2s, background .2s; cursor: pointer; }
.dropzone:hover, .dropzone.drag { border-color: var(--lapis); background: var(--lapis-soft); }
.dropzone.drag { animation: pulse 1s infinite; }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone svg { width: 28px; height: 28px; margin: 0 auto 6px; color: var(--turq); }
.dropzone b { font-size: .9rem; }
.dropzone small { display: block; color: var(--muted); font-size: .78rem; }
.file-chip { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); background: var(--paper); border-radius: var(--r-md); text-align: left; animation: fadeUp .35s var(--ease); }
.file-chip img { width: 44px; height: 54px; object-fit: cover; border-radius: 2px; }
.file-chip .fi { width: 44px; height: 54px; display: grid; place-items: center; background: var(--lapis-soft); color: var(--lapis); font-size: .7rem; font-weight: 700; border-radius: 2px; }
.file-chip div { flex: 1; min-width: 0; }
.file-chip b { display: block; font-size: .86rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-chip small { color: var(--muted); font-size: .76rem; }
.file-chip button { border: 0; background: none; color: var(--err); font-size: .82rem; font-weight: 600; }
.file-chip .progress { height: 3px; background: var(--line); margin-top: 6px; border-radius: 2px; overflow: hidden; }
.file-chip .progress i { display: block; height: 100%; background: var(--ok); width: 0; animation: grow .8s var(--ease) forwards; }

/* Toast + modal */
.toasts { position: fixed; right: 20px; top: 20px; display: flex; flex-direction: column; gap: 10px; z-index: 500; }
.toast { min-width: 280px; max-width: 380px; padding: 14px 16px; background: var(--lapis-deep); color: #fff; border-left: 3px solid var(--turq); border-radius: var(--r-sm); box-shadow: var(--shadow); font-size: .9rem; animation: toastIn .4s var(--ease); }
.toast.err { border-color: var(--err); }
.toast.out { animation: toastOut .3s var(--ease) forwards; }
.modal { position: fixed; inset: 0; z-index: 400; background: rgba(9,29,62,.6); backdrop-filter: blur(3px); display: none; align-items: flex-start; justify-content: center; padding: 5vh 16px; overflow-y: auto; }
.modal.open { display: flex; animation: fade .25s; }
.modal-box { background: var(--paper); width: min(860px, 100%); border-radius: var(--r-md); box-shadow: 0 30px 80px -20px rgba(0,0,0,.4); animation: rise .4s var(--ease); }
.modal-box.sm { width: min(520px, 100%); }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: var(--s-5) var(--s-6); border-bottom: 1px solid var(--line); }
.modal-head h3 { margin: 0; }
.modal-body { padding: var(--s-6); }
.modal-foot { display: flex; justify-content: space-between; gap: var(--s-3); padding: var(--s-4) var(--s-6); border-top: 1px solid var(--line); background: var(--marble); border-radius: 0 0 var(--r-md) var(--r-md); flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer { background: var(--lapis-deep); color: #B6C3DC; font-size: .9rem; }
.site-footer .wrap { padding-top: var(--s-8); padding-bottom: var(--s-6); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--s-6); padding-bottom: var(--s-7); border-bottom: 1px solid rgba(255,255,255,.12); }
.site-footer h4 { color: #fff; font-family: var(--f-body); font-weight: 600; font-size: .95rem; margin-bottom: var(--s-4); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: #B6C3DC; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-brand { display: flex; gap: 14px; align-items: center; margin-bottom: var(--s-4); color: #fff; }
.footer-brand svg { width: 48px; height: 48px; }
.footer-bottom { display: flex; justify-content: space-between; gap: var(--s-4); padding-top: var(--s-5); font-size: .82rem; flex-wrap: wrap; }
.socials { display: flex; gap: 8px; }
.socials a { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; transition: background .2s, border-color .2s; }
.socials a:hover { background: var(--gold); border-color: var(--gold); }
.socials svg { width: 16px; height: 16px; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
.to-top { position: fixed; right: 20px; bottom: 20px; width: 46px; height: 46px; border-radius: 50%; background: var(--lapis); color: #fff; border: 0; display: grid; place-items: center; opacity: 0; transform: translateY(20px); transition: all .3s var(--ease); z-index: 40; }
.to-top.show { opacity: 1; transform: none; }
.progress-bar { position: fixed; top: 0; left: 0; height: 3px; background: var(--gold); z-index: 100; width: 0; }

/* ---------- Keyframes ---------- */
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(24px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes zoomIn { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }
@keyframes lineUp { to { transform: none; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes stripe { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(15,44,92,.08); } }
@keyframes grow { to { width: 100%; } }
@keyframes toastIn { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateX(30px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .hero h1 .line span { transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  /* backdrop-filter would make the header the containing block of the fixed drawer */
  .site-header { backdrop-filter: none; background: var(--paper); }
  .header-actions { margin-left: auto; }
  .nav { position: fixed; inset: 0 0 0 auto; width: min(380px, 88vw); background: var(--paper); transform: translateX(100%); visibility: hidden; transition: transform .4s var(--ease), visibility .4s; z-index: 120; overflow-y: auto; padding: 80px 16px 24px; box-shadow: -20px 0 60px -20px rgba(0,0,0,.3); }
  .nav.open { transform: none; visibility: visible; }
  .nav > ul { flex-direction: column; }
  .nav > ul > li > a, .nav > ul > li > button { width: 100%; justify-content: space-between; padding: 14px 8px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav > ul > li > a::after, .nav > ul > li > button::after { display: none; }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 8px 8px; display: none; min-width: 0; }
  .nav li.open > .dropdown { display: block; }
  .nav li:hover > .dropdown { display: none; }
  .nav li.open:hover > .dropdown { display: block; }
  .menu-toggle { display: grid; }
  .nav-close { position: absolute; top: 18px; right: 16px; }
  .scrim { position: fixed; inset: 0; background: rgba(9,29,62,.5); z-index: 49; opacity: 0; visibility: hidden; transition: opacity .3s; }
  .scrim.open { opacity: 1; visibility: visible; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1101px) { .nav-close, .scrim { display: none; } }
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; min-height: 0; padding-top: var(--s-7); }
  .hero-art { max-width: 340px; justify-self: center; order: -1; margin-bottom: -20px; }
  .figures .wrap { grid-template-columns: repeat(2, 1fr); }
  .figure { border-left: 0; padding-left: 0; border-bottom: 1px solid var(--line); }
  .address { grid-template-columns: 1fr; gap: var(--s-6); }
  .portrait { max-width: 300px; }
  .quick { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: 1fr; }
  .cards, .video-grid, .info-grid { grid-template-columns: repeat(2, 1fr); }
  .discover { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .layout-side { grid-template-columns: 1fr; gap: var(--s-5); }
  .side-nav { position: static; flex-direction: row; overflow-x: auto; border-left: 0; border-bottom: 1px solid var(--line); }
  .side-nav a { border-left: 0; border-bottom: 2px solid transparent; padding: 8px 12px; white-space: nowrap; margin: 0 0 -1px; }
  .side-nav a.active { border-color: var(--gold); }
  .tl-day { grid-template-columns: 1fr; gap: var(--s-4); }
  .contact-grid, .hospitality { grid-template-columns: 1fr; }
  .section { padding: var(--s-8) 0; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .brand-text span { display: none; }
  .brand-text b { font-size: .92rem; }
  .brand svg { width: 42px; height: 42px; }
  .utility-links .hide-sm { display: none; }
  .quick, .cards, .video-grid, .info-grid, .form-grid, .form-grid.three, .priority-grid, .facts { grid-template-columns: 1fr; }
  .facts div:nth-child(odd) { border-right: 0; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .discover { grid-template-columns: 1fr 1fr; gap: var(--s-2); }
  .footer-grid { grid-template-columns: 1fr; }
  .tl-event { grid-template-columns: 1fr; gap: 4px; }
  .news-item { grid-template-columns: 90px 1fr; }
  .cd-unit { min-width: 0; flex: 1; }
  .countdown .cd-label { width: 100%; border: 0; padding: 0 0 6px; }
  .contact-card dl { grid-template-columns: 1fr; gap: 2px; }
  .contact-card dd { margin-bottom: 8px; }
  .modal-body, .modal-head { padding: var(--s-4); }
}
