:root {
  --cyan: #0ba5d8;
  --cyan-deep: #0786b3;
  --navy: #12205a;
  --navy-2: #1b2d72;
  --gold: #f4b63f;
  --ink: #142033;
  --muted: #5b6678;
  --line: #e3e8ef;
  --bg: #ffffff;
  --tint: #f2f8fc;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(18, 32, 90, .10);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Plus Jakarta Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.01em; }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
p { margin: 0 0 1em; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.center { text-align: center; margin-top: 2rem; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: #fff; padding: .5rem 1rem; border-radius: 8px; }

.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700; color: var(--cyan-deep); margin-bottom: .8rem; }
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-tint { background: var(--tint); }
.section-dark { background: var(--navy); color: #fff; }
.section-dark .eyebrow { color: var(--gold); }
.section-lead { color: var(--muted); max-width: 640px; font-size: 1.08rem; margin-bottom: 2rem; }
.section-dark .section-lead { color: #c5cde8; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .85rem 1.4rem; border-radius: 999px; background: var(--cyan); color: #fff; font-weight: 700; text-decoration: none; border: 2px solid var(--cyan); cursor: pointer; font: inherit; font-weight: 700; transition: transform .15s, background .15s; }
.btn:hover { background: var(--cyan-deep); border-color: var(--cyan-deep); transform: translateY(-1px); }
.btn-small { padding: .5rem 1.05rem; font-size: .92rem; }
.btn-ghost { background: transparent; border-color: rgba(255,255,255,.7); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn-ghost-dark { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn-ghost-dark:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn-light { background: #fff; color: var(--navy); border-color: #fff; }
.btn-light:hover { background: var(--gold); border-color: var(--gold); color: var(--navy); }

/* nav */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; font-size: .98rem; }
.brand img { border-radius: 50%; border: 2px solid var(--line); }
.brand strong { color: var(--cyan-deep); }
.nav-links { display: flex; align-items: center; gap: 1.6rem; }
.nav-links a:not(.btn) { text-decoration: none; font-weight: 600; font-size: .95rem; color: var(--muted); }
.nav-links a:not(.btn):hover { color: var(--ink); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; transition: .2s; }

/* hero */
.hero { position: relative; min-height: min(88vh, 820px); display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: var(--navy); }
.hero-mosaic { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(2, 1fr); gap: 4px; }
.hero-mosaic img { width: 100%; height: 100%; object-fit: cover; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18,32,90,.35) 0%, rgba(18,32,90,.55) 45%, rgba(12,20,60,.94) 100%); }
.hero-content { position: relative; padding: 120px 0 72px; }
.hero .eyebrow { color: var(--gold); }
.hero h1 { font-size: clamp(2.6rem, 6.4vw, 5.2rem); max-width: 900px; }
.hero h1 em { color: var(--gold); font-style: italic; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 640px; color: #e4e9f7; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }

/* stats */
.stats { background: var(--cyan); color: #fff; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 34px 22px; border-left: 1px solid rgba(255,255,255,.25); }
.stat:first-child { border-left: 0; }
.stat b { display: block; font-family: var(--serif); font-size: clamp(2.2rem, 4vw, 3.2rem); line-height: 1; margin-bottom: .4rem; }
.stat span { font-size: .93rem; opacity: .95; }

/* about */
.about { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.about-text p { color: #33405a; font-size: 1.05rem; }
.pillars { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pillars li { padding: 14px 16px; background: var(--tint); border-radius: 12px; border-top: 3px solid var(--cyan); font-size: .93rem; color: var(--muted); }
.pillars b { display: block; color: var(--ink); }
.about-photo { margin: 0; }
.about-photo img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4/5; object-fit: cover; width: 100%; }
.about-photo figcaption { font-size: .88rem; color: var(--muted); margin-top: .7rem; }

/* achievements */
.ach { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; padding: clamp(28px, 4vw, 48px) 0; border-top: 1px solid var(--line); }
.ach:first-child { border-top: 0; padding-top: 8px; }
.ach-flip .ach-photos { order: 2; }
.ach-photos { display: grid; grid-template-columns: 2fr 1fr; gap: 8px; height: clamp(340px, 38vw, 500px); }
.ach-photos button { min-height: 0; border: 0; padding: 0; cursor: zoom-in; border-radius: 14px; overflow: hidden; background: #dfe9f2; position: relative; }
.ach-photos img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.ach-photos button:hover img { transform: scale(1.04); }
.ach-main { height: 100%; }
.ach-side { display: grid; grid-auto-rows: minmax(0, 1fr); gap: 8px; height: 100%; min-height: 0; }
.ach-side:empty { display: none; }
.ach-photos:has(.ach-side:empty) { grid-template-columns: 1fr; }
.more { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(18,32,90,.6); color: #fff; font-weight: 800; font-size: 1.3rem; }
.ach-text .kicker { color: var(--cyan-deep); font-weight: 800; text-transform: uppercase; letter-spacing: .1em; font-size: .78rem; margin-bottom: .4rem; }
.ach-text h3 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); margin-bottom: .3rem; }
.ach-text .when { color: var(--muted); font-weight: 600; font-size: .92rem; margin-bottom: 1rem; }
.ach-text p { color: #33405a; }
.facts { display: flex; flex-wrap: wrap; gap: 6px; margin: .4rem 0 1.1rem; padding: 0; list-style: none; }
.facts li { font-size: .8rem; background: #fff; color: var(--navy-2); padding: 5px 11px; border-radius: 999px; font-weight: 700; border: 1px solid var(--line); }
.next { background: #fff7e6; border-left: 3px solid var(--gold); padding: 10px 14px; border-radius: 8px; font-size: .92rem; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; font-weight: 700; color: var(--cyan-deep); cursor: pointer; }
.link-btn:hover { text-decoration: underline; }

/* service */
.service { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.svc { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.svc-img { position: relative; aspect-ratio: 4/3.4; border: 0; padding: 0; cursor: zoom-in; background: var(--tint); overflow: hidden; }
.svc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.svc-img:hover img { transform: scale(1.05); }
.badge { position: absolute; right: 10px; top: 10px; background: rgba(10,18,50,.75); color: #fff; font-size: .75rem; font-weight: 700; padding: 4px 9px; border-radius: 999px; }
.svc-body { padding: 16px 18px 20px; }
.svc .when { font-size: .78rem; color: var(--cyan-deep); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin-bottom: .3rem; }
.svc h3 { font-family: var(--sans); font-size: 1.05rem; font-weight: 700; margin-bottom: .4rem; line-height: 1.35; }
.svc p { font-size: .9rem; color: var(--muted); margin: 0; }

/* chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.chip { border: 1.5px solid var(--line); background: #fff; color: var(--ink); padding: .45rem .95rem; border-radius: 999px; font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.chip .n { opacity: .6; font-weight: 500; margin-left: 4px; }
.chips-dark .chip { background: transparent; color: #dfe5f7; border-color: rgba(255,255,255,.25); }
.chips-dark .chip[aria-pressed="true"] { background: var(--gold); color: var(--navy); border-color: var(--gold); }

/* gallery */
.masonry { columns: 4 240px; column-gap: 12px; }
.masonry button { display: block; width: 100%; margin: 0 0 12px; padding: 0; border: 0; background: #1b2b6a; border-radius: 12px; overflow: hidden; cursor: zoom-in; break-inside: avoid; }
.masonry img { width: 100%; height: auto; transition: transform .4s, opacity .3s; }
.masonry button:hover img { transform: scale(1.04); }

/* team */
.team { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 18px; }
.member { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); text-align: center; cursor: zoom-in; border: 0; padding: 0; font: inherit; color: inherit; }
.member img { width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: center 55%; }
.member div { padding: 12px 10px 16px; }
.member b { display: block; font-size: 1rem; }
.member span { font-size: .84rem; color: var(--muted); }
.member.lead-member { grid-column: span 1; }

/* join */
.join { background: linear-gradient(120deg, var(--navy) 0%, var(--navy-2) 55%, var(--cyan-deep) 130%); color: #fff; padding: clamp(64px, 8vw, 100px) 0; }
.join .eyebrow { color: var(--gold); }
.join-inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; }
.join p { color: #d6ddf2; font-size: 1.08rem; max-width: 560px; }
.join-cta { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }

/* footer */
.footer { background: #0b143c; color: #aab4d4; padding: 34px 0; font-size: .9rem; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.footer .brand { color: #fff; }
.footer .brand strong { color: var(--cyan); }
.footer p { margin: 0; }
.ig-link { color: #fff; font-weight: 700; }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(6, 10, 30, .95); display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; }
.lightbox[hidden] { display: none; }
.lb-stage { margin: 0; height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 24px 0; }
.lb-stage img { max-height: calc(100vh - 90px); max-width: 100%; object-fit: contain; border-radius: 6px; }
.lb-foot { color: #c9d0e8; font-size: .9rem; display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; text-align: center; }
.lb-foot b { color: #fff; }
.lb-close, .lb-prev, .lb-next { background: none; border: 0; color: #fff; font-size: 2.6rem; cursor: pointer; line-height: 1; padding: 10px; opacity: .8; }
.lb-close:hover, .lb-prev:hover, .lb-next:hover { opacity: 1; }
.lb-close { position: absolute; top: 8px; right: 14px; z-index: 2; font-size: 2.4rem; }

/* responsive */
@media (max-width: 1024px) {
  .service { grid-template-columns: repeat(2, 1fr); }
  .lightbox { grid-template-columns: 44px 1fr 44px; }
}
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav-links { position: absolute; top: 68px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 18px; border-bottom: 1px solid var(--line); display: none; }
  .nav-links.open { display: flex; }
  .nav-links a:not(.btn) { padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .nav-links .btn { margin-top: 12px; justify-content: center; }
  .brand span { font-size: .9rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat { border-top: 1px solid rgba(255,255,255,.25); }
  .about, .join-inner, .ach { grid-template-columns: 1fr; }
  .ach-flip .ach-photos { order: 0; }
  .about-photo { order: -1; }
  .about-photo img { aspect-ratio: 16/11; }
  .hero-mosaic { grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(3, 1fr); }
}
@media (max-width: 560px) {
  .service { grid-template-columns: 1fr; }
  .ach-photos { height: 300px; }
  .pillars { grid-template-columns: 1fr; }
  .masonry { columns: 2 140px; column-gap: 8px; }
  .masonry button { margin-bottom: 8px; }
  .team { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .brand span strong + * { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* next event */
.next-event { background: linear-gradient(180deg, var(--tint), #fff); padding-bottom: clamp(48px, 7vw, 80px); }
.ne { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 4vw, 52px); align-items: center; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.ne-img { height: 100%; min-height: 320px; background: var(--navy); }
.ne-img img { width: 100%; height: 100%; object-fit: cover; }
.ne-body { padding: clamp(22px, 3vw, 40px) clamp(22px, 3vw, 40px) clamp(22px, 3vw, 40px) 0; }
.ne-body h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); margin-bottom: .4rem; }
.ne-cat { color: var(--cyan-deep); font-weight: 800; text-transform: uppercase; letter-spacing: .1em; font-size: .78rem; margin-bottom: .4rem; }
.ne-when { font-weight: 700; color: var(--navy); margin-bottom: .2rem; }
.ne-where { color: var(--muted); margin-bottom: 1rem; }
.ne-desc { color: #33405a; white-space: pre-line; }
.countdown { display: flex; gap: 10px; margin: 18px 0; }
.countdown div { background: var(--navy); color: #fff; border-radius: 12px; padding: 10px 12px; min-width: 64px; text-align: center; }
.countdown b { display: block; font-family: var(--serif); font-size: 1.6rem; line-height: 1; }
.countdown span { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; opacity: .8; }
.ne-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.ne-seats { color: var(--muted); font-size: .92rem; font-weight: 600; }
.ne-status { display: inline-block; background: var(--gold); color: var(--navy); font-weight: 800; font-size: .78rem; padding: 4px 10px; border-radius: 999px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: .6rem; }
.ne-more { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin-top: 18px; }
.ne-more:empty { display: none; }
.ne-small { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; display: flex; gap: 14px; align-items: center; }
.ne-small .d { flex: 0 0 auto; width: 52px; height: 56px; border-radius: 10px; background: var(--tint); color: var(--navy); display: grid; place-items: center; align-content: center; line-height: 1.05; }
.ne-small .d b { font-family: var(--serif); font-size: 1.3rem; }
.ne-small .d span { font-size: .7rem; font-weight: 700; text-transform: uppercase; }
.ne-small h3 { font-family: var(--sans); font-size: .98rem; margin: 0 0 2px; }
.ne-small p { margin: 0; font-size: .85rem; color: var(--muted); }

/* registration dialog */
.reg-dialog { border: 0; border-radius: 18px; padding: 0; width: min(520px, calc(100% - 32px)); max-height: calc(100vh - 40px); box-shadow: 0 30px 80px rgba(0,0,0,.3); }
.reg-dialog::backdrop { background: rgba(10,18,50,.6); }
.reg-close-form { position: absolute; top: 6px; right: 10px; margin: 0; }
.reg-x { border: 0; background: none; font-size: 1.8rem; cursor: pointer; color: var(--muted); }
#reg-body { padding: 26px 24px 24px; }
#reg-body h2 { font-size: 1.6rem; padding-right: 30px; }
.reg-form { display: grid; gap: 14px; margin-top: 14px; }
.reg-form label { display: grid; gap: 6px; font-weight: 600; font-size: .92rem; }
.reg-form input, .reg-form select, .reg-form textarea { font: inherit; padding: .7rem .85rem; border: 1.5px solid var(--line); border-radius: 10px; width: 100%; }
.reg-form input:focus, .reg-form select:focus, .reg-form textarea:focus { outline: none; border-color: var(--cyan); }
.reg-form .req { color: var(--cyan-deep); }
.reg-form .hp { position: absolute; left: -9999px; }
.reg-msg { min-height: 1.3em; font-weight: 600; color: #c0392b; margin: 0; }
.reg-done { text-align: center; padding: 10px 0; }
.reg-done b { display: block; font-family: var(--serif); font-size: 1.6rem; margin-bottom: .4rem; color: var(--navy); }
@media (max-width: 820px) { .ne { grid-template-columns: 1fr; } .ne-img { min-height: 220px; } .ne-body { padding: 0 22px 24px; } }
.reg-row { display: grid; grid-template-columns: 1fr 2fr; gap: 12px; }
@media (max-width: 480px) { .reg-row { grid-template-columns: 1fr; } }
