:root {
  --navy: #031f34;
  --navy-deep: #001827;
  --blue: #00B3B9;
  --blue-light: #E7F8F8;
  --red: #ef1830;
  --yellow: #ffd400;
  --ink: #142638;
  --muted: #4c5c6b;
  --white: #ffffff;
  --max: 1320px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 82px; }
body { margin: 0; color: var(--ink); background: var(--white); font-family: "Nunito Sans", sans-serif; font-size: 17px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
body.is-locked { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
svg { flex: 0 0 auto; }
.skip-link { position: fixed; z-index: 1000; left: 1rem; top: -5rem; background: var(--white); color: var(--navy); padding: .75rem 1rem; box-shadow: 0 4px 20px #0003; }
.skip-link:focus { top: 1rem; }
.section-pad { padding-top: 80px; padding-bottom: 80px; }
.eyebrow { margin: 0 0 8px; color: var(--blue); font-size: .92rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
h1, h2, h3, .button, .primary-nav, .deadline p, .resource-strip strong, .resource-strip b { font-family: "Bebas Neue", sans-serif; font-weight: 400; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h2 { margin-bottom: 20px; color: var(--navy); font-size: clamp(2.2rem, 4vw, 4.1rem); line-height: .94; letter-spacing: -.015em; }
h2 span { color: var(--blue); }
p { font-size: 1rem; }

.site-header { position: sticky; z-index: 50; top: 0; background: rgba(255,255,255,.97); border-bottom: 1px solid rgba(3,31,52,.08); }
.header-inner { width: min(var(--max), calc(100% - 48px)); min-height: 82px; margin: 0 auto; display: flex; align-items: center; gap: 32px; }
.brand { width: 188px; height: 72px; display: grid; place-items: center; }
.brand img { width: 176px; height: 68px; object-fit: contain; }
.primary-nav { display: flex; align-items: center; justify-content: center; gap: clamp(18px, 2.1vw, 34px); margin-left: auto; font-size: 1.05rem; color: var(--navy); }
.primary-nav a { position: relative; padding: 30px 0 27px; }
.primary-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 20px; height: 3px; background: var(--blue); transition: right .2s ease; }
.primary-nav a:hover::after, .primary-nav a:focus-visible::after { right: 0; }
.menu-toggle { display: none; border: 0; background: none; color: var(--navy); width: 44px; height: 44px; place-items: center; cursor: pointer; }
.menu-toggle svg { width: 28px; height: 28px; }

.button { min-height: 50px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 2px solid transparent; border-radius: 0; padding: 12px 24px; font-size: 1.16rem; letter-spacing: .015em; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease; }
.button svg { width: 18px; height: 18px; stroke-width: 2.5; }
.button:hover { transform: translateY(-2px); }
.button:focus-visible, a:focus-visible, button:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.button-primary { color: var(--white); background: #01929E; box-shadow: 0 8px 22px rgba(1,146,158,.18); }
.button-primary:hover { background: #00B3B9; box-shadow: 0 12px 24px rgba(0,179,185,.25); }
.button-outline { color: var(--navy); background: var(--white); border-color: var(--blue); }
.button-outline:hover { color: var(--white); background: var(--blue); }
.header-cta { min-height: 46px; padding-inline: 20px; white-space: nowrap; }

.hero { min-height: 780px; display: grid; grid-template-columns: minmax(0, 1.03fr) minmax(0, .97fr); overflow: hidden; }
.hero-copy { padding-left: max(32px, calc((100vw - var(--max)) / 2)); padding-right: clamp(38px, 6vw, 90px); display: flex; flex-direction: column; justify-content: center; }
.hero h1 { margin: 0 0 26px; color: var(--navy); font-size: clamp(4.6rem, 7.9vw, 8.25rem); line-height: .78; letter-spacing: -.025em; }
.hero-title-line { display: flex; align-items: baseline; gap: clamp(10px, 1vw, 18px); color: var(--blue); font-size: .86em; line-height: .78; white-space: nowrap; }
.hero-title-line > span { color: var(--blue); }
.hero h1 em { display: inline-block; color: var(--navy); font-family: "Bebas Neue", sans-serif; font-size: 1em; font-style: italic; line-height: .78; transform: skewX(-8deg); transform-origin: center bottom; }
.event-meta { display: flex; flex-wrap: wrap; gap: 14px 28px; margin-bottom: 24px; font-family: "Bebas Neue", sans-serif; color: var(--navy); font-size: 1.5rem; text-transform: uppercase; }
.event-meta span { display: inline-flex; align-items: center; gap: 9px; }
.event-meta svg { width: 22px; color: var(--blue); }
.hero-intro { max-width: 660px; margin-bottom: 28px; color: #304052; font-size: 1.08rem; }
.button-row { display: flex; flex-wrap: wrap; gap: 16px; }
.hero-media { position: relative; min-width: 0; background: var(--white); }
.hero-media::before { content: ""; position: absolute; z-index: 2; inset: 0 auto 0 -1px; width: clamp(92px, 7.5vw, 132px); pointer-events: none; background: linear-gradient(90deg, var(--white) 0 58%, rgba(255,255,255,.98) 68%, rgba(255,255,255,.78) 82%, rgba(255,255,255,0) 100%); }
.hero-media::after { content: ""; position: absolute; z-index: 3; top: 0; bottom: 0; left: clamp(54px, 4.6vw, 78px); width: clamp(46px, 4.5vw, 72px); pointer-events: none; background: var(--blue); -webkit-mask: url("upload/brush-transition.png") 100% center / auto 100% no-repeat; mask: url("upload/brush-transition.png") 100% center / auto 100% no-repeat; opacity: .9; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 54% center; }

.quick-facts { background: var(--blue-light); }
.facts-grid { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); }
.fact { min-height: 92px; display: flex; align-items: center; justify-content: center; gap: 18px; padding: 0 30px; border-right: 1px solid rgba(0,179,185,.38); }
.fact:last-child { border-right: 0; }
.fact svg { width: 44px; height: 44px; color: var(--blue); stroke-width: 2.1; }
.fact h2 { margin: 0; font-size: 1.6rem; line-height: 1.02; }

.split-section { display: grid; min-height: 650px; grid-template-columns: 1fr 1fr; overflow: hidden; }
.split-copy { padding-left: max(32px, calc((100vw - var(--max)) / 2)); padding-right: clamp(44px, 7vw, 100px); display: flex; flex-direction: column; justify-content: center; }
.split-copy > p:not(.eyebrow) { max-width: 610px; color: var(--muted); line-height: 1.65; }
.split-copy .button { align-self: flex-start; margin-top: 18px; }
.split-media { position: relative; min-width: 0; min-height: 520px; background: var(--white); }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.story .split-copy { padding-left: clamp(44px, 7vw, 100px); padding-right: max(32px, calc((100vw - var(--max)) / 2)); }
.story .split-media::before { content: ""; position: absolute; z-index: 2; inset: 0 -1px 0 auto; width: clamp(150px, 14vw, 235px); pointer-events: none; background: linear-gradient(270deg, var(--white) 0 22%, rgba(255,255,255,.98) 42%, rgba(255,255,255,.82) 62%, rgba(255,255,255,.45) 78%, rgba(255,255,255,0) 100%); }
.story .split-media::after { content: ""; position: absolute; z-index: 3; top: 0; right: clamp(54px, 5vw, 88px); bottom: 0; width: clamp(78px, 7vw, 118px); pointer-events: none; background: rgba(255,255,255,.82); -webkit-mask: url("upload/brush-transition.png") 100% center / auto 108% no-repeat; mask: url("upload/brush-transition.png") 100% center / auto 108% no-repeat; filter: blur(.35px); opacity: .78; transform: scaleX(-1); }
.story .split-media img { object-position: 48% center; }

.competition { color: var(--white); background: var(--navy-deep); }
.competition-inner { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; display: grid; grid-template-columns: .98fr 1.02fr; gap: 50px; align-items: stretch; }
.competition-photo img { width: 100%; height: 100%; min-height: 520px; object-fit: cover; object-position: 52% center; }
.competition-content { padding: 8px 0; }
.competition h2 { color: var(--white); font-size: clamp(2.5rem, 4vw, 4rem); border-bottom: 2px solid rgba(0,179,185,.55); padding-bottom: 16px; margin-bottom: 0; }
.level { min-height: 88px; display: grid; grid-template-columns: 44px 130px 1fr; gap: 18px; align-items: center; border-bottom: 1px solid rgba(0,179,185,.42); }
.level:last-child { border-bottom: 0; }
.level svg { width: 34px; height: 34px; }
.level h3 { margin: 0; color: var(--white); font-size: 1.55rem; }
.level p { margin: 0; color: #dbeaf1; line-height: 1.25; }
.level-showcase svg { color: var(--red); }
.level-gold svg { color: var(--yellow); }
.level-silver svg { color: #d7e2e8; }
.level-bronze svg { color: #f36b23; }

.age-fees { width: min(var(--max), calc(100% - 48px)); min-height: 610px; margin: 0 auto; display: grid; grid-template-columns: 1.2fr .8fr; gap: 90px; align-items: center; }
.age-content > p { max-width: 650px; color: var(--muted); }
.formats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 42px; }
.formats article { text-align: center; padding: 0 18px; border-right: 1px solid rgba(0,179,185,.48); }
.formats article:last-child { border-right: 0; }
.formats svg { width: 50px; height: 50px; color: var(--blue); }
.formats h3 { margin: 12px 0 2px; color: var(--navy); font-size: 2rem; line-height: .95; }
.formats small { font-size: .75rem; font-weight: 800; text-transform: uppercase; }
.fee-card { border: 2px solid var(--yellow); background: var(--white); }
.fee-card > h2 { margin: 0; padding: 13px 20px 9px; color: var(--navy); background: var(--yellow); text-align: center; font-size: 2.25rem; }
.fee-card > p { margin: 16px 20px; color: var(--muted); text-align: center; font-size: .9rem; }
.fee-card dl { margin: 0 20px 20px; color: var(--white); background: var(--navy); }
.fee-card dl div { display: flex; justify-content: space-between; gap: 20px; padding: 9px 16px; border-bottom: 1px solid rgba(255,255,255,.35); }
.fee-card dl div:last-child { border-bottom: 0; }
.fee-card dt, .fee-card dd { margin: 0; font-family: "Bebas Neue", sans-serif; font-size: 1.55rem; }
.fee-card dd { color: var(--yellow); }

.venues { background: var(--blue-light); }
.venues .split-media { min-height: 520px; }
.venues .split-media img { object-position: center; }
.venue-list { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-top: 26px; }
.venue-list article { display: flex; gap: 12px; }
.venue-list svg { width: 32px; height: 32px; color: var(--blue); }
.venue-list h3 { margin: 0; color: var(--navy); font-size: 1.22rem; line-height: 1; }
.venue-list p { margin: 4px 0 0; color: var(--muted); font-size: .8rem; text-transform: uppercase; }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); height: 290px; gap: 4px; background: var(--white); }
.gallery figure { margin: 0; min-width: 0; overflow: hidden; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery figure:first-child img { object-position: 50% center; }
.gallery figure:nth-child(2) img { object-position: 52% center; }
.gallery figure:last-child img { object-position: 54% center; }
.gallery figure:hover img { transform: scale(1.025); }

.registration { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; display: grid; grid-template-columns: 1.15fr .75fr auto; gap: 44px; align-items: center; }
.deadline { display: flex; align-items: center; gap: 22px; }
.deadline svg { width: 54px; height: 54px; color: var(--blue); }
.deadline p { margin: 0; font-size: 1.45rem; line-height: 1; }
.deadline h2 { margin: 0; font-size: clamp(2.8rem, 5vw, 4.8rem); white-space: nowrap; }
.late-fee { margin: 0; padding-left: 34px; border-left: 1px solid rgba(3,31,52,.35); color: var(--muted); }

.resource-strip { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--blue-light); padding-left: max(24px, calc((100vw - var(--max)) / 2)); padding-right: max(24px, calc((100vw - var(--max)) / 2)); }
.resource-strip > a, .resource-strip > button { min-width: 0; display: flex; align-items: flex-start; gap: 16px; padding: 0 28px; color: var(--ink); background: transparent; border: 0; border-right: 1px solid rgba(0,179,185,.36); text-align: left; cursor: pointer; }
.resource-strip > :last-child { border-right: 0; }
.resource-strip > a > svg, .resource-strip > button > svg { width: 34px; height: 34px; color: var(--blue); }
.resource-strip span { display: flex; min-width: 0; flex-direction: column; }
.resource-strip strong { color: var(--navy); font-size: 1.25rem; font-weight: 400; }
.resource-strip small { min-height: 38px; color: var(--muted); line-height: 1.25; }
.resource-strip b { display: inline-flex; align-items: center; gap: 4px; margin-top: 8px; color: var(--blue); font-size: 1rem; font-weight: 400; }
.resource-strip b svg { width: 13px; height: 13px; }

.site-footer { color: var(--white); background: var(--navy-deep); }
.footer-inner { width: min(var(--max), calc(100% - 48px)); min-height: 185px; margin: 0 auto; display: grid; grid-template-columns: 170px 1fr auto; gap: 44px; align-items: center; }
.footer-logo { width: 150px; height: 142px; object-fit: contain; }
.footer-inner p { margin: 0; color: #d8e8ef; }
.footer-inner p strong { color: var(--white); }
.socials { display: flex; align-items: center; gap: 16px; padding-left: 36px; border-left: 1px solid rgba(0,179,185,.45); }
.socials a { display: grid; width: 42px; height: 42px; place-items: center; color: var(--blue); }
.socials svg { width: 23px; height: 23px; }

.registration-dialog { width: min(560px, calc(100% - 32px)); max-height: min(760px, calc(100vh - 32px)); padding: 42px; border: 0; border-top: 7px solid var(--red); border-radius: 0; color: var(--ink); box-shadow: 0 24px 80px rgba(0,24,39,.32); }
.registration-dialog::backdrop { background: rgba(0,24,39,.78); backdrop-filter: blur(5px); }
.registration-dialog > img { width: 150px; height: 92px; object-fit: contain; margin-bottom: 14px; }
.registration-dialog h2 { margin-bottom: 12px; }
.dialog-close { position: absolute; top: 14px; right: 14px; display: grid; width: 42px; height: 42px; place-items: center; border: 0; background: var(--blue-light); color: var(--navy); cursor: pointer; }
.contact-card { display: flex; flex-direction: column; gap: 5px; padding: 18px 0; border-top: 1px solid #dbe5e9; }
.contact-card strong { color: var(--navy); font-size: 1.05rem; }
.contact-card span { color: var(--muted); font-size: .88rem; }
.contact-card a { display: inline-flex; align-items: center; gap: 8px; color: var(--blue); font-weight: 800; overflow-wrap: anywhere; }
.contact-card svg { width: 16px; height: 16px; }

@media (max-width: 1050px) {
  .header-inner { width: calc(100% - 32px); }
  .primary-nav { position: absolute; inset: 100% 0 auto; display: grid; justify-items: center; gap: 0; max-height: calc(100vh - 82px); margin-left: 0; padding: 18px 24px 24px; overflow-y: auto; background: var(--white); box-shadow: 0 18px 30px rgba(0,24,39,.15); opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(-12px); transition: transform .25s ease, opacity .2s ease, visibility .2s ease; }
  .primary-nav.is-open { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }
  .primary-nav a { width: min(220px, 100%); padding: 11px 16px 13px; border-bottom: 1px solid #e2ebee; text-align: center; }
  .primary-nav a::after { left: 50%; right: auto; bottom: -1px; width: 34px; transform: translateX(-50%) scaleX(0); transform-origin: center; transition: transform .2s ease; }
  .primary-nav a:hover::after, .primary-nav a:focus-visible::after { right: auto; transform: translateX(-50%) scaleX(1); }
  .menu-toggle { display: grid; margin-left: auto; }
  .hero { min-height: 620px; }
  .facts-grid { grid-template-columns: repeat(2, 1fr); gap: 42px 0; }
  .fact:nth-child(2) { border-right: 0; }
  .age-fees { grid-template-columns: 1fr; gap: 60px; }
  .fee-card { width: min(620px, 100%); }
  .registration { grid-template-columns: 1fr auto; }
  .late-fee { grid-row: 2; padding: 0; border: 0; }
  .resource-strip { grid-template-columns: repeat(2, 1fr); gap: 46px 0; }
  .resource-strip > :nth-child(2) { border-right: 0; }
}

@media (max-width: 760px) {
  .section-pad { padding-top: 80px; padding-bottom: 80px; }
  .header-inner { min-height: 74px; }
  .brand { width: 118px; height: 64px; }
  .brand img { width: 112px; height: 58px; }
  .header-cta { display: none; }
  .primary-nav { max-height: calc(100vh - 74px); }
  .hero { min-height: 0; grid-template-columns: 1fr; }
  .hero-copy { padding-left: 24px; padding-right: 24px; }
  .hero h1 { font-size: clamp(4rem, 20vw, 6.6rem); }
  .hero-title-line { display: block; font-size: 1em; white-space: normal; }
  .hero h1 em { display: block; width: max-content; margin: 12px 0 0; font-size: .92em; }
  .event-meta { font-size: 1.26rem; }
  .hero-media { min-height: 430px; }
  .hero-media::before, .hero-media::after { display: none; }
  .hero-media img { object-position: 56% center; clip-path: none; }
  .button-row .button { flex: 1 1 100%; }
  .facts-grid { width: calc(100% - 32px); grid-template-columns: 1fr; gap: 0; }
  .fact { justify-content: flex-start; border-right: 0; border-bottom: 1px solid rgba(0,179,185,.32); }
  .fact:last-child { border-bottom: 0; }
  .split-section { grid-template-columns: 1fr; }
  .split-copy { padding-left: 24px; padding-right: 24px; }
  .split-media { min-height: 430px; }
  .story .split-media { order: -1; }
  .story .split-media::before, .story .split-media::after { display: none; }
  .story .split-media img { clip-path: none; }
  .competition-inner { width: calc(100% - 40px); grid-template-columns: 1fr; gap: 50px; }
  .competition-photo img { min-height: 400px; }
  .level { grid-template-columns: 38px 94px 1fr; gap: 12px; }
  .level p { font-size: .9rem; }
  .age-fees { width: calc(100% - 40px); gap: 54px; }
  .formats { gap: 0; }
  .formats article { padding-inline: 8px; }
  .formats h3 { font-size: 1.65rem; }
  .formats small { font-size: .62rem; }
  .venue-list { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; height: auto; gap: 4px; }
  .gallery figure { height: 260px; }
  .registration { width: calc(100% - 40px); grid-template-columns: 1fr; gap: 30px; }
  .deadline h2 { white-space: normal; }
  .registration .button { width: 100%; }
  .resource-strip { grid-template-columns: 1fr; gap: 44px; padding-left: 24px; padding-right: 24px; }
  .resource-strip > a, .resource-strip > button { padding: 0 0 32px; border-right: 0; border-bottom: 1px solid rgba(0,179,185,.36); }
  .resource-strip > :last-child { padding-bottom: 0; border-bottom: 0; }
  .footer-inner { min-height: 0; grid-template-columns: 1fr; gap: 22px; padding: 48px 0; text-align: center; justify-items: center; }
  .footer-logo { width: 135px; height: 130px; }
  .socials { padding: 0; border: 0; }
  .registration-dialog { padding: 34px 24px 28px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
