:root {
  --bg: #eef3f8;
  --ink: #141c2e;
  --muted: #4f596b;
  --plate: #f6f6f6;
  --navy: #101a2e;
  --glass-edge: rgba(255, 255, 255, .8);
  --serif: "Instrument Serif", Georgia, serif;
  --sans: Figtree, system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body { background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--sans); min-height: 100dvh; overflow-x: clip; }
a { color: inherit; text-decoration: none; touch-action: manipulation; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--t, var(--c, #0a8fd0)); outline-offset: 3px; border-radius: 12px; }
ul { list-style: none; padding: 0; }
svg { flex: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 max(16px, env(safe-area-inset-left)) 0 max(16px, env(safe-area-inset-right)); }

/* Colour field behind the glass. Fixed, so it never adds page width. */
.bg {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(45vmax 45vmax at 8% 6%, rgba(227, 52, 47, .20), transparent 70%),
    radial-gradient(40vmax 40vmax at 92% 12%, rgba(108, 191, 31, .22), transparent 70%),
    radial-gradient(50vmax 50vmax at 15% 80%, rgba(42, 163, 224, .26), transparent 70%),
    radial-gradient(45vmax 45vmax at 90% 88%, rgba(243, 154, 30, .22), transparent 70%),
    var(--bg);
}

/* Hero */
.hero { text-align: center; padding: 56px 0 44px; }
.hero-logo { width: 150px; height: auto; display: block; margin: 0 auto 26px; }
.eyebrow { font-size: .8125rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.pill, .hero-units {
  background: rgba(255, 255, 255, .5); border: 1px solid var(--glass-edge); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: blur(14px) saturate(1.6); backdrop-filter: blur(14px) saturate(1.6);
}
.pill { display: inline-flex; align-items: center; min-height: 36px; padding: 0 16px; border-radius: 999px; font-size: .8125rem; font-weight: 600; letter-spacing: .04em; color: var(--muted); }
.hero h1 { font: 400 clamp(2.6rem, 8vw, 4.75rem)/1.02 var(--serif); letter-spacing: -.02em; margin: 20px auto; max-width: 13ch; text-wrap: balance; }
.hero h1 em { font-style: italic; color: #0a7fbd; }
.lead { max-width: 600px; margin: 0 auto; font-size: 1.125rem; color: var(--muted); text-wrap: pretty; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }
.cta { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 22px; border-radius: 16px; font-weight: 600; transition: filter .2s, transform .25s var(--ease), background .2s; }
.cta:hover { transform: translateY(-2px); }
.cta.primary { color: #fff; background: linear-gradient(180deg, #2a98d6, #0a7fbd); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 12px 24px -14px #0a7fbd; }
.cta.primary:hover { filter: brightness(1.07); }
.cta.ghost { color: var(--ink); background: rgba(255, 255, 255, .55); border: 1px solid var(--glass-edge); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9); -webkit-backdrop-filter: blur(14px) saturate(1.6); backdrop-filter: blur(14px) saturate(1.6); }
.cta.ghost:hover { background: #fff; }
.hero-units { display: inline-flex; align-items: center; gap: 12px; margin-top: 34px; padding: 8px 20px 8px 10px; border-radius: 999px; font-size: .875rem; font-weight: 500; color: var(--muted); transition: background .2s; }
.hero-units:hover { background: rgba(255, 255, 255, .8); }
.chips { display: flex; }
.chip { display: grid; place-items: center; width: 40px; height: 40px; margin-left: -10px; border: 2px solid #fff; border-radius: 50%; background: var(--plate); box-shadow: 0 4px 10px -4px rgba(20, 28, 46, .3); }
.chip:first-child { margin-left: 0; }
@media (max-width: 480px) {
  .hero-units { gap: 10px; padding-right: 16px; white-space: nowrap; }
  .chip { width: 34px; height: 34px; margin-left: -9px; }
  .chip img { width: 20px; height: 20px; }
}
.chip img { width: 24px; height: 24px; object-fit: contain; }
.hero .container > * { animation: rise .7s var(--ease) both; }
.hero .container > :nth-child(2) { animation-delay: .06s; }
.hero .container > :nth-child(3) { animation-delay: .12s; }
.hero .container > :nth-child(4) { animation-delay: .18s; }
.hero .container > :nth-child(5) { animation-delay: .24s; }
.hero .container > :nth-child(6) { animation-delay: .3s; }
#business-units { scroll-margin-top: 70px; }
.spectrum { display: flex; width: 96px; height: 4px; margin: 30px auto 0; border-radius: 4px; overflow: hidden; }
.spectrum i { flex: 1; }

/* Glass bar with the slow-scrolling unit names */
.unitnav {
  position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 4px;
  padding: 8px max(10px, env(safe-area-inset-left)) 8px 0;
  background: rgba(255, 255, 255, .55);
  -webkit-backdrop-filter: blur(20px) saturate(1.8); backdrop-filter: blur(20px) saturate(1.8);
  border-block: 1px solid var(--glass-edge);
  box-shadow: 0 8px 30px -18px rgba(20, 28, 46, .3), inset 0 1px 0 rgba(255, 255, 255, .9);
}
.marquee { flex: 1; min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent); }
.track { display: flex; width: max-content; animation: slide 110s linear infinite; }
.lane { display: flex; flex: none; }
.lane li { padding-right: 10px; }
.lane a {
  display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 10px 0 8px; white-space: nowrap;
  border-radius: 999px; font-size: .9375rem; color: var(--ink);
  background: rgba(255, 255, 255, .5); border: 1px solid var(--glass-edge);
  transition: background .2s, border-color .2s;
}
.lane a:hover { background: color-mix(in srgb, var(--c) 10%, #fff); border-color: color-mix(in srgb, var(--c) 40%, #fff); }
.lg { display: grid; place-items: center; height: 36px; min-width: 36px; padding: 0 6px; border-radius: 11px; background: var(--plate); }
.lg img { display: block; height: 28px; width: auto; max-width: 64px; object-fit: contain; }
.lane b { font-weight: 600; }
.ac { font-size: .75rem; font-weight: 700; letter-spacing: .08em; color: var(--t, var(--c)); background: color-mix(in srgb, var(--c) 11%, transparent); padding: 4px 10px; border-radius: 999px; }
.unitnav:hover .track, .unitnav:focus-within .track, .unitnav.paused .track { animation-play-state: paused; }
#pause {
  flex: none; display: grid; place-items: center; width: 44px; height: 44px; cursor: pointer; color: var(--ink);
  border-radius: 50%; border: 1px solid var(--glass-edge); background: rgba(255, 255, 255, .6);
}
#pause:hover { background: #fff; }
#pause .play, #pause[aria-pressed="true"] .pause { display: none; }
#pause[aria-pressed="true"] .play { display: block; }

@keyframes slide { to { transform: translateX(-50%); } }

/* Section heading */
.section-head { text-align: center; padding: 56px 0 32px; }
.section-head h2 { font: 400 clamp(1.9rem, 4.5vw, 2.6rem)/1.15 var(--serif); }
.section-head p { color: var(--muted); margin-top: 6px; }

/* Unit card: frosted glass with a light plate for the logo */
.units { display: grid; grid-template-columns: 1fr; column-gap: 24px; padding-bottom: 60px; }
.glass, .card {
  position: relative; overflow: hidden;
  border-radius: 30px; border: 1px solid var(--glass-edge);
  background: linear-gradient(160deg, rgba(255, 255, 255, .66), rgba(255, 255, 255, .34));
  -webkit-backdrop-filter: blur(24px) saturate(1.8); backdrop-filter: blur(24px) saturate(1.8);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .95), inset 0 0 0 1px rgba(255, 255, 255, .25), 0 1px 2px rgba(20, 28, 46, .05), 0 24px 48px -24px rgba(20, 28, 46, .3);
}
.glass::after, .card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(120deg, rgba(255, 255, 255, .5), rgba(255, 255, 255, 0) 30%); }
.card {
  grid-row: span 8; display: grid; grid-template-rows: subgrid; row-gap: 0;
  min-width: 0; margin-block: 12px; padding: 10px;
  scroll-margin-top: 84px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
  animation: rise .6s var(--ease) both; animation-delay: calc(var(--i) * 70ms);
}
.card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .35s; background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--c) 16%, transparent), transparent 62%); }
@media (hover: hover) {
  .card:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--c) 38%, #fff); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .95), inset 0 0 0 1px rgba(255, 255, 255, .25), 0 2px 4px rgba(20, 28, 46, .05), 0 36px 60px -26px color-mix(in srgb, var(--c) 60%, transparent); }
  .card:hover::before { opacity: 1; }
  .card:hover .plate img { transform: scale(1.07); }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .card, .glass, .unitnav { background: rgba(255, 255, 255, .94); }
}

.plate { display: grid; place-items: center; height: 168px; border-radius: 22px; background: var(--plate); box-shadow: inset 0 0 0 1px rgba(20, 28, 46, .05); }
.plate img { width: auto; max-width: 78%; object-fit: contain; transition: transform .5s var(--ease); }

/* Card parts sit directly in the card's 8 shared rows, so every card in a row lines up. */
.body, .card .contacts, .card .contacts li { display: contents; }
.plate { grid-row: 1; }
.meta { grid-row: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 20px 14px 0; }
.kind { font-size: .8125rem; font-weight: 600; color: color-mix(in srgb, var(--t, var(--c)) 86%, #000); background: color-mix(in srgb, var(--c) 10%, rgba(255, 255, 255, .6)); padding: 5px 12px; border-radius: 999px; }
.abbr { font-size: .8125rem; font-weight: 700; letter-spacing: .12em; color: var(--muted); }
.card h3 { grid-row: 3; font: 400 1.75rem/1.15 var(--serif); margin: 16px 14px 10px; }
.desc { grid-row: 4; color: var(--muted); text-wrap: pretty; margin: 0 14px 22px; }

.btn {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; border: 0; font: inherit; text-align: left; cursor: pointer;
  min-height: 56px; padding: 0 10px 0 20px; border-radius: 18px; color: #fff; font-weight: 600;
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 84%, #fff), var(--c));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 10px 20px -12px var(--c);
  transition: filter .2s, transform .15s;
}
.btn span { overflow-wrap: anywhere; line-height: 1.3; }
.btn small { display: block; font-size: .75rem; font-weight: 500; opacity: .8; letter-spacing: .02em; }
.btn .go { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 13px; background: rgba(255, 255, 255, .18); transition: transform .25s var(--ease); }
.btn:hover { filter: brightness(1.08); }
.btn:hover .go { transform: translate(2px, -2px); }
.btn:active { transform: scale(.985); }
.btn.soon { background: rgba(255, 255, 255, .7); color: var(--ink); box-shadow: inset 0 1px 0 #fff; }
.btn.soon .go { background: #fff; color: var(--c); }
.card .btn {
  grid-row: 5; width: auto; margin: 0 14px;
  color: color-mix(in srgb, var(--t, var(--c)) 88%, #000);
  background: linear-gradient(180deg, rgba(255, 255, 255, .7), color-mix(in srgb, var(--c) 12%, rgba(255, 255, 255, .4)));
  border: 1px solid color-mix(in srgb, var(--c) 26%, rgba(255, 255, 255, .8));
  -webkit-backdrop-filter: blur(14px) saturate(1.6); backdrop-filter: blur(14px) saturate(1.6);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .95);
  transition: background .25s, box-shadow .25s, transform .15s;
}
.card .btn:hover { filter: none; background: linear-gradient(180deg, rgba(255, 255, 255, .85), color-mix(in srgb, var(--c) 20%, rgba(255, 255, 255, .5))); box-shadow: inset 0 1px 0 #fff; }
.card .btn .go { background: var(--c); color: var(--on, #fff); }

.contacts { margin: 14px 0; display: grid; gap: 4px; }
.contact { display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 6px 8px; border-radius: 16px; transition: background .2s; }
.contact:hover { background: rgba(255, 255, 255, .6); }
.contact .ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 13px; color: var(--t, var(--c)); background: rgba(255, 255, 255, .7); box-shadow: inset 0 1px 0 #fff; }
.contact span { min-width: 0; overflow-wrap: anywhere; font-size: .9375rem; font-weight: 500; line-height: 1.35; }
.contact small { display: block; font-size: .75rem; font-weight: 500; color: var(--muted); }
.card .contact { margin: 0 14px; }
.card .contact[data-t="mail"] { grid-row: 6; margin-top: 14px; }
.card .contact[data-t="phone"] { grid-row: 7; }

.social { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(20, 28, 46, .08); }
.card .social { grid-row: 8; margin: 14px 14px 10px; }
.social a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; color: #6b7585; transition: color .2s, background .2s; }
.social a:hover { color: var(--t, var(--c)); background: rgba(255, 255, 255, .7); }

/* Organizer profile: shown only when the page is opened from a member's QR */
.profile { padding-block: 28px 44px; }
.profile[hidden] { display: none; }
.profile.loading { min-height: 360px; }
.pcard { max-width: 780px; margin: 0 auto; padding: 10px; display: grid; gap: 10px; text-align: left; animation: rise .6s var(--ease) both; }
.pid {
  display: grid; justify-items: center; align-content: center; gap: 4px; padding: 32px 24px; border-radius: 22px; text-align: center; color: #fff;
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(42, 163, 224, .38), transparent 60%),
    radial-gradient(100% 80% at 100% 100%, rgba(243, 154, 30, .28), transparent 60%),
    linear-gradient(160deg, #16233f, var(--navy));
}
.avatar { display: grid; place-items: center; width: 104px; height: 104px; margin-bottom: 14px; border-radius: 50%; font: 400 2.4rem/1 var(--serif); color: var(--navy); background: #fbfaf8; box-shadow: 0 0 0 5px rgba(255, 255, 255, .18), 0 16px 28px -14px rgba(0, 0, 0, .6); }
.pcard h2 { font: 400 clamp(2rem, 6vw, 2.6rem)/1.08 var(--serif); margin: 6px 0 2px; color: #fff; }
.role { max-width: 28ch; color: #c9d2e3; text-wrap: balance; }
.pid .spectrum { margin: 20px auto 0; }
.pdetail { display: flex; flex-direction: column; padding: 18px 14px 12px; }
.pdetail .eyebrow { margin-bottom: 10px; }
.pdetail .contacts { margin: 0 0 14px; }
.pdetail .btn { margin-top: auto; }

.top.with-profile .hero { padding: 24px 0 0; }
.top.with-profile .hero-logo { width: 120px; margin-bottom: 12px; }
.top.with-profile .pill, .top.with-profile .hero-actions, .top.with-profile .hero-units { display: none; }
.top.with-profile .hero h1 { margin: 0 auto 10px; font-size: clamp(2rem, 8vw, 2.6rem); }
.top.with-profile .lead { font-size: .9375rem; }
.top.with-profile .profile { padding-block: 20px 44px; }
@media (min-width: 1024px) {
  .top.with-profile { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; column-gap: 48px; max-width: 1240px; margin: 0 auto; padding-inline: 24px; }
  .top.with-profile .container { max-width: none; margin: 0; padding: 0; }
  .top.with-profile .hero { padding-block: 72px; text-align: left; }
  .top.with-profile .hero-logo { width: 200px; margin: 0 0 24px; }
  .top.with-profile .pill, .top.with-profile .hero-units { display: inline-flex; }
  .top.with-profile .hero-actions { display: flex; justify-content: flex-start; }
  .top.with-profile .hero h1 { margin: 14px 0 18px; font-size: clamp(2.6rem, 4.4vw, 3.8rem); }
  .top.with-profile .lead { margin: 0; font-size: 1.0625rem; }
  .top.with-profile .profile { padding-block: 72px; }
  .top.with-profile .pcard { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
}

/* Footer */
footer { background: var(--navy); color: #c9d0dc; padding: 56px 0 calc(40px + env(safe-area-inset-bottom)); text-align: center; }
footer h2 { font: 400 clamp(1.8rem, 4vw, 2.3rem)/1.15 var(--serif); color: #fff; margin-bottom: 8px; }
footer .tag { max-width: 480px; margin: 0 auto 28px; }
.home { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: 16px; background: #fff; color: var(--navy); font-weight: 600; transition: transform .2s var(--ease), box-shadow .2s; }
.home:hover { transform: translateY(-2px); box-shadow: 0 12px 28px -12px rgba(0, 0, 0, .5); }
.addr { display: flex; align-items: flex-start; justify-content: center; gap: 10px; max-width: 440px; margin: 28px auto 0; font-size: .9375rem; }
.addr:hover { color: #fff; }
.addr svg { margin-top: 3px; }
.legal { margin-top: 32px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .8125rem; color: #8d97a8; }

@keyframes rise { from { opacity: 0; transform: translateY(16px); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, .pcard, .hero .container > * { animation: none; }
  .card:hover, .card:hover .plate img, .btn:active, .home:hover, .btn:hover .go, .cta:hover { transform: none; }
  .marquee { overflow-x: auto; scrollbar-width: none; }
  .track { animation: none; }
  .lane[inert] { display: none; }
  #pause { display: none; }
}
@media (min-width: 720px) {
  .hero { padding: 72px 0 52px; }
  .hero-logo { width: 170px; }
  .units { grid-template-columns: repeat(4, 1fr); }
  .card { grid-column: span 2; }
  .card:nth-child(5) { grid-column: 2 / span 2; }
  .pcard { grid-template-columns: 5fr 6fr; }
  .pid { padding: 40px 28px; }
  .pdetail { padding: 26px 22px 16px; }
}
@media (min-width: 1100px) {
  .units { grid-template-columns: repeat(6, 1fr); }
  .card:nth-child(4) { grid-column: 2 / span 2; }
  .card:nth-child(5) { grid-column: 4 / span 2; }
}
@supports not (grid-template-rows: subgrid) {
  .card { grid-row: auto; grid-template-rows: none; }
}
