/* JAGRITI 2K27 – home page styles. Uses tokens from tokens.css. */

/* ---------- base ---------- */
body { overflow-x: hidden; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { margin: 0; line-height: 1.1; }
p { margin: 0 0 1rem; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.container-narrow { max-width: 860px; }
.muted { color: var(--ink-soft); }
.ic { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ic-lg { width: 52px; height: 52px; }
:focus-visible { outline: 3px solid var(--saffron); outline-offset: 3px; border-radius: 4px; }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--saffron); color: var(--navy-950); font-weight: 700; padding: 10px 16px; border-radius: 0 0 10px 10px; text-decoration: none; transition: top .2s; }
.skip-link:focus { top: 0; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--font-body); font-weight: 700; font-size: 1rem; letter-spacing: .02em; text-decoration: none; border: 2px solid transparent; border-radius: 999px; padding: 13px 28px; cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s, border-color .25s; line-height: 1.2; text-align: center; }
.btn:hover { transform: translateY(-3px); }
.btn:active { transform: translateY(0); }
.btn-saffron { background: linear-gradient(135deg, var(--saffron), var(--saffron-600)); color: var(--navy-950); box-shadow: 0 8px 22px rgba(255, 153, 51, .45); }
.btn-saffron:hover { box-shadow: 0 14px 30px rgba(255, 153, 51, .6); }
.btn-ghost { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .6); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: #fff; color: var(--navy-900); }
.btn-ghost-dark { background: transparent; color: var(--navy-900); border-color: var(--navy-900); }
.btn-ghost-dark:hover { background: var(--navy-900); color: #fff; }
.btn-navy { background: var(--navy-900); color: #fff; box-shadow: 0 10px 24px rgba(11, 31, 68, .35); }
.btn-navy:hover { background: var(--navy-950); }
.btn-sm { padding: 10px 20px; font-size: .92rem; }
.btn-lg { padding: 16px 36px; font-size: 1.1rem; }
.btn-block { width: 100%; }
.btn[aria-disabled="true"] { background: #cbd5e1; color: #475569; box-shadow: none; pointer-events: none; }
.text-link { color: var(--navy-700); font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--saffron); padding-bottom: 1px; }
.text-link:hover { color: var(--saffron-600); }

/* ---------- top bar ---------- */
.topbar { background: var(--navy-950); color: #cdd8ee; font-size: .82rem; }
.topbar-in { display: flex; align-items: center; justify-content: center; min-height: 38px; gap: 16px; flex-wrap: wrap; padding-top: 6px; padding-bottom: 6px; }
.topbar-msg { margin: 0; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; }
.topbar-list { display: flex; flex-wrap: wrap; gap: 6px 22px; justify-content: center; }
.topbar-list[hidden], .topbar-msg[hidden] { display: none; }
.topbar a { text-decoration: none; color: #fff; }
.topbar a:hover { color: var(--saffron); }
@media (min-width: 900px) { .topbar-in { justify-content: space-between; } .topbar-list { justify-content: flex-end; } }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid rgba(11, 31, 68, .08); transition: box-shadow .3s, background .3s; }
.site-header.is-scrolled { box-shadow: 0 8px 28px rgba(11, 31, 68, .14); background: rgba(255, 255, 255, .97); }
.header-in { display: flex; align-items: center; gap: 14px; height: var(--header-h); transition: height .3s var(--ease); }
.site-header.is-scrolled .header-in { height: 58px; }
.brand { display: inline-flex; align-items: center; margin-right: auto; }
.brand img { height: 46px; width: auto; transition: height .3s var(--ease); }
.site-header.is-scrolled .brand img { height: 38px; }
.primary-nav ul { display: flex; gap: 2px; }
.primary-nav a { display: block; padding: 10px 12px; font-weight: 600; font-size: .92rem; text-decoration: none; color: var(--navy-900); border-radius: 999px; position: relative; transition: color .2s, background .2s; }
.primary-nav a:hover { color: var(--saffron-600); background: rgba(255, 153, 51, .1); }
.primary-nav a.is-active { color: var(--saffron-600); }
.header-cta { white-space: nowrap; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; border-radius: 12px; background: var(--navy-900); cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle .bars { display: grid; gap: 5px; }
.nav-toggle .bars i { display: block; width: 22px; height: 2.5px; border-radius: 2px; background: #fff; transition: transform .3s var(--ease), opacity .2s; }
.nav-toggle[aria-expanded="true"] .bars i:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars i:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bars i:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

@media (max-width: 1020px) {
  .nav-toggle { display: inline-flex; }
  .primary-nav { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); max-height: 0; overflow: hidden; visibility: hidden; transition: max-height .35s var(--ease), visibility 0s .35s; }
  .primary-nav.is-open { max-height: 80vh; visibility: visible; transition: max-height .35s var(--ease), visibility 0s; }
  .primary-nav ul { flex-direction: column; padding: 10px 20px 18px; }
  .primary-nav a { padding: 14px 8px; font-size: 1.05rem; border-bottom: 1px solid var(--line); border-radius: 0; }
}
@media (max-width: 420px) { .header-cta { padding: 9px 14px; font-size: .84rem; } .brand img { height: 38px; } .header-in { gap: 10px; } }

/* ---------- hero ---------- */
.hero { position: relative; z-index: 2; color: #fff; padding: 76px 0 0; isolation: isolate;
  background:
    linear-gradient(180deg, rgba(6, 15, 38, .55) 0%, rgba(6, 15, 38, .25) 45%, rgba(6, 15, 38, .85) 100%),
    url('/assets/hero-sunrise.svg') center / cover no-repeat,
    radial-gradient(120% 90% at 50% 100%, #ff9933 0%, #e8590c 22%, #123066 62%, #060f26 100%);
  background-color: var(--navy-900); }
.hero-sun { position: absolute; inset: auto 0 0 0; height: 60%; z-index: -1; background: radial-gradient(closest-side, rgba(255, 153, 51, .55), rgba(255, 153, 51, 0)); animation: sunPulse 7s ease-in-out infinite alternate; pointer-events: none; }
@keyframes sunPulse { from { opacity: .6; } to { opacity: 1; } }
.hero-in { text-align: center; padding-top: 18px; padding-bottom: 150px; }
.hero-kicker { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 16px; padding: 8px 18px; font-size: .82rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; border: 1px solid rgba(255, 255, 255, .3); border-radius: 999px; background: rgba(255, 255, 255, .08); backdrop-filter: blur(8px); }
.pulse-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--green-400); box-shadow: 0 0 0 0 rgba(47, 179, 68, .8); animation: ping 1.8s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 12px rgba(47, 179, 68, 0); } 100% { box-shadow: 0 0 0 0 rgba(47, 179, 68, 0); } }
.hero-title { font-family: var(--font-display); font-weight: 400; font-size: clamp(3.9rem, 17vw, 12rem); line-height: .88; letter-spacing: .02em; text-shadow: 0 8px 40px rgba(0, 0, 0, .45); }
.grad-text { background: linear-gradient(100deg, var(--saffron-600) 0%, var(--saffron) 45%, var(--green) 100%); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; animation: gradShift 6s ease-in-out infinite alternate; }
@keyframes gradShift { to { background-position: 100% 0; } }
.hero .grad-text { background-image: linear-gradient(100deg, var(--saffron) 0%, #ffd27a 40%, #7ee08a 75%, var(--green-400) 100%); }
.hero-tagline { margin: 8px 0 0; font-family: var(--font-display); font-size: clamp(1.8rem, 5.5vw, 3.2rem); letter-spacing: .22em; color: var(--saffron); }
.tricolour-bar { display: flex; width: min(260px, 60%); height: 6px; margin: 22px auto; border-radius: 6px; overflow: hidden; }
.tricolour-bar i, .tricolour-strip i { flex: 1; display: block; }
.tricolour-bar i:nth-child(1), .tricolour-strip i:nth-child(1) { background: var(--saffron); }
.tricolour-bar i:nth-child(2), .tricolour-strip i:nth-child(2) { background: #fff; }
.tricolour-bar i:nth-child(3), .tricolour-strip i:nth-child(3) { background: var(--green); }
.hero-sub { font-size: clamp(1rem, 2.6vw, 1.45rem); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 28px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-bottom: 26px; }
.hero-org { font-size: .9rem; color: #d3ddf1; margin: 0; }
.hero-org strong { color: #fff; }

.hero-strip-wrap { position: relative; z-index: 5; margin-bottom: -70px; }
.glass { background: linear-gradient(135deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, .08)); border: 1px solid rgba(255, 255, 255, .35); backdrop-filter: blur(18px) saturate(150%); -webkit-backdrop-filter: blur(18px) saturate(150%); box-shadow: 0 24px 60px rgba(6, 15, 38, .5); }
.hero-strip { backdrop-filter: blur(18px) saturate(150%); display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border-radius: var(--radius-lg); overflow: hidden; background-color: rgba(11, 31, 68, .55); }
.strip-item { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-bottom: 1px solid rgba(255, 255, 255, .18); }
.strip-item .ic { color: var(--saffron); width: 32px; height: 32px; }
.strip-item:not(.strip-count) > div { display: grid; line-height: 1.25; min-width: 0; }
.strip-label { font-size: .75rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #ffd9a8; }
.strip-item strong { font-size: 1.05rem; }
.strip-item small { color: #d3ddf1; font-size: .8rem; }
.strip-count { grid-column: 1 / -1; justify-content: center; border-bottom: 0; background: rgba(6, 15, 38, .35); }
@media (min-width: 1000px) {
  .hero-strip { grid-template-columns: 1fr 1fr 1.1fr 1.7fr; }
  .strip-item { border-bottom: 0; border-right: 1px solid rgba(255, 255, 255, .18); padding: 22px 24px; }
  .strip-count { grid-column: auto; border-right: 0; }
}

/* countdown */
.countdown { display: flex; gap: 10px; justify-content: center; }
.cd-box { min-width: 66px; padding: 8px 6px 6px; text-align: center; border-radius: 14px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .25); }
.cd-box b { display: block; font-family: var(--font-display); font-weight: 400; font-size: 2.3rem; line-height: 1; font-variant-numeric: tabular-nums; color: #fff; }
.cd-box span { display: block; font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: #ffd9a8; margin-top: 2px; font-weight: 700; }
.cd-done { margin: 0; font-family: var(--font-display); font-size: 2rem; letter-spacing: .06em; color: var(--saffron); text-align: center; }
.cd-done[hidden], .countdown[hidden] { display: none; }

/* ---------- marquee ---------- */
.marquee { position: relative; z-index: 1; padding: 116px 0 40px; background: linear-gradient(180deg, #fff 0%, var(--surface-alt) 100%); overflow: hidden; }
.marquee-row { overflow: hidden; }
.marquee-track { display: flex; width: max-content; will-change: transform; }
.marquee-visuals { overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch; touch-action: pan-x pan-y; cursor: grab; }
.marquee-visuals::-webkit-scrollbar { display: none; }
.marquee-visuals.is-dragging { cursor: grabbing; user-select: none; }
.marquee-visuals.is-dragging .mcard { pointer-events: none; }
/* auto-scroll is driven by main.js (scrollLeft), so swiping and dragging work too */
.marquee-words { margin-top: 28px; }
.marquee-words .marquee-track { animation: marqueeRight 45s linear infinite; }
.marquee-group { display: flex; gap: 20px; padding-right: 20px; flex: none; }
@keyframes marqueeLeft { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes marqueeRight { from { transform: translateX(-50%); } to { transform: translateX(0); } }
.mcard { position: relative; flex: none; width: 360px; height: 240px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: linear-gradient(135deg, var(--navy-800), var(--saffron)); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.mcard:hover { transform: translateY(-6px) scale(1.02); box-shadow: var(--shadow-lg); }
.mcard img { width: 100%; height: 100%; object-fit: cover; }
.mcard .chip { position: absolute; left: 14px; bottom: 14px; padding: 6px 14px; border-radius: 999px; font-size: .8rem; font-weight: 700; letter-spacing: .04em; color: #fff; background: rgba(6, 15, 38, .62); backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, .3); }
.words { align-items: center; gap: 28px; }
.words span { font-family: var(--font-display); font-size: clamp(3.4rem, 8vw, 6rem); line-height: 1; letter-spacing: .04em; color: transparent; -webkit-text-stroke: 2px var(--navy-800); white-space: nowrap; }
.words span:nth-of-type(3n+2) { -webkit-text-stroke-color: var(--saffron-600); }
.words span:nth-of-type(3n) { -webkit-text-stroke-color: var(--green); }
.words i { font-style: normal; font-size: 3rem; color: var(--saffron); }
@media (max-width: 600px) { .mcard { width: 270px; height: 180px; } .marquee { padding-top: 96px; } .marquee-group { gap: 14px; padding-right: 14px; } }
@media (prefers-reduced-motion: reduce) {
  .marquee-visuals { padding-bottom: 10px; }
  .marquee-track { animation: none !important; width: auto; }
  .marquee-group[aria-hidden="true"] { display: none; }
  .marquee-words { overflow-x: auto; }
  .hero-sun, .grad-text, .pulse-dot { animation: none !important; }
}

/* ---------- sections ---------- */
.section { padding: 96px 0; position: relative; }
.section-alt { background: var(--surface-alt); }
.section-dark { background: linear-gradient(180deg, var(--navy-900), var(--navy-950)); color: #fff; }
.section-navy { background: radial-gradient(90% 120% at 80% 0%, var(--navy-700), var(--navy-900) 55%, var(--navy-950)); color: #fff; overflow: hidden; }
.section-head { max-width: 760px; margin: 0 0 44px; }
.section-head h2, .about-copy h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(2.6rem, 7vw, 4.6rem); letter-spacing: .02em; color: var(--navy-900); }
.section-dark h2, .section-navy h2 { color: #fff; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 12px; font-size: .8rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--saffron-600); }
.eyebrow::before { content: ""; width: 34px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--saffron), var(--green)); }
.eyebrow-light { color: var(--saffron); }
.eyebrow-dark { color: var(--navy-900); }
.lead { font-size: 1.12rem; color: var(--ink-soft); margin-top: 14px; }
.section-dark .lead, .section-navy .lead { color: #d3ddf1; }
.section-dark .lead strong, .section-navy .lead strong { color: #fff; }

/* reveal on scroll */
.js-reveal .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js-reveal .reveal.is-in { opacity: 1; transform: none; }
.js-reveal .hero .reveal { transition-delay: .05s; }
@media (prefers-reduced-motion: reduce) { .js-reveal .reveal { opacity: 1; transform: none; } }

/* ---------- about ---------- */
.about-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .about-grid { grid-template-columns: 1.15fr 1fr; gap: 72px; } }
.about-copy p { color: var(--ink-soft); }
.about-copy .lead { color: var(--ink); font-weight: 500; }
.tick-list { margin-top: 20px; display: grid; gap: 12px; }
.tick-list li { position: relative; padding-left: 36px; }
.tick-list li::before { content: ""; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E") center / 70% no-repeat; }
.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.stat { position: relative; padding: 28px 20px 22px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); text-align: center; overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.stat::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: linear-gradient(90deg, var(--saffron), #fff, var(--green)); }
.stat:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.stat-num { font-family: var(--font-display); font-weight: 400; font-size: clamp(3.6rem, 9vw, 5.4rem); line-height: 1; color: var(--navy-900); font-variant-numeric: tabular-nums; }
.stat-unit { font-family: var(--font-display); font-size: 2.2rem; color: var(--saffron-600); margin-left: 2px; }
.stat p { margin: 4px 0 0; font-weight: 600; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .1em; font-size: .78rem; }

.past { margin-top: 72px; padding: 30px; border-radius: var(--radius-lg); background: linear-gradient(135deg, var(--navy-900), var(--navy-800)); color: #fff; }
.past h3 { font-family: var(--font-display); font-weight: 400; letter-spacing: .08em; font-size: 1.7rem; margin-bottom: 18px; color: var(--saffron); }
.past-list { display: grid; gap: 14px; }
@media (min-width: 720px) { .past-list { grid-template-columns: repeat(3, 1fr); } }
.past-list li { display: grid; padding: 16px 20px; border-radius: 14px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .15); }
.past-name { font-weight: 600; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; color: #cdd8ee; }
.past-list b { font-family: var(--font-display); font-weight: 400; font-size: 3rem; line-height: 1.1; }
.past-list small { color: #cdd8ee; }
.past-next { border-color: var(--saffron) !important; background: rgba(255, 153, 51, .15) !important; }

/* ---------- timeline ---------- */
.timeline { position: relative; display: grid; gap: 24px; padding-left: 38px; max-width: 860px; }
.timeline::before { content: ""; position: absolute; left: 11px; top: 8px; bottom: 8px; width: 4px; border-radius: 4px; background: linear-gradient(180deg, var(--saffron), #d6dde9 50%, var(--green)); }
.tl-item { position: relative; }
.tl-dot { position: absolute; left: -38px; top: 22px; width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 5px solid var(--saffron); box-shadow: 0 0 0 5px rgba(255, 153, 51, .2); }
.tl-race .tl-dot { border-color: var(--green); box-shadow: 0 0 0 5px rgba(19, 136, 8, .2); width: 30px; height: 30px; left: -40px; }
.tl-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 26px; box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.tl-card:hover { transform: translateX(6px); box-shadow: var(--shadow); }
.tl-race .tl-card { background: linear-gradient(135deg, var(--navy-900), var(--navy-800)); color: #fff; border: 0; }
.tl-race .tl-card p { color: #d3ddf1; }
.tl-race .tl-card strong { color: #fff; }
.tl-race .text-link { color: #fff; }
.tl-card h3 { font-family: var(--font-display); font-weight: 400; font-size: 2rem; letter-spacing: .04em; margin: 8px 0; }
.tl-card p { color: var(--ink-soft); margin-bottom: 10px; }
.tl-tag { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; background: rgba(19, 136, 8, .12); color: var(--green); }
.tl-tag-muted { background: #eef2f8; color: var(--ink-soft); }
.tl-tag-saffron { background: var(--saffron); color: var(--navy-950); }

/* ---------- categories ---------- */
.cat-grid { display: grid; gap: 22px; }
@media (min-width: 760px) { .cat-grid { grid-template-columns: repeat(3, 1fr); } }
.cat-card { position: relative; display: flex; flex-direction: column; padding: 28px 26px 26px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; }
.cat-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; background: linear-gradient(90deg, var(--saffron), var(--saffron-600)); }
.cat-card[data-cat="girls"]::before { background: linear-gradient(90deg, #ff7eb3, var(--saffron)); }
.cat-card[data-cat="faculty"]::before { background: linear-gradient(90deg, var(--navy-700), var(--green)); }
.cat-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); border-color: var(--saffron); }
.cat-top { display: flex; justify-content: space-between; align-items: flex-start; }
.cat-km { font-family: var(--font-display); font-size: 5.2rem; line-height: .9; color: var(--navy-900); }
.cat-km small { font-size: 1.6rem; color: var(--saffron-600); margin-left: 4px; }
.cat-badge { padding: 4px 12px; border-radius: 999px; background: var(--danger); color: #fff; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.cat-badge[hidden] { display: none; }
.cat-card h3 { font-family: var(--font-display); font-weight: 400; font-size: 2.4rem; letter-spacing: .04em; margin: 6px 0 8px; color: var(--navy-900); }
.cat-who { color: var(--ink-soft); font-size: .95rem; min-height: 5.2em; }
.cat-facts { margin: 6px 0 22px; display: grid; gap: 0; flex: 1; }
.cat-facts div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px dashed var(--line); font-size: .9rem; }
.cat-facts dt { color: var(--ink-soft); }
.cat-facts dd { margin: 0; font-weight: 600; text-align: right; color: var(--ink); }

.spots { margin-top: 30px; padding: 26px; border-radius: var(--radius-lg); background: var(--surface-alt); border: 1px solid var(--line); }
.spots[hidden] { display: none; }
.spots h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.7rem; letter-spacing: .06em; color: var(--navy-900); margin-bottom: 16px; }
.spots-grid { display: grid; gap: 22px; }
@media (min-width: 760px) { .spots-grid { grid-template-columns: 1fr 1fr; gap: 36px; } }
.spot-head { display: flex; justify-content: space-between; gap: 12px; font-weight: 600; margin-bottom: 8px; }
.spot-left { color: var(--green); }
.spot.is-soldout .spot-left { color: var(--danger); }
.spot[hidden] { display: none; }
.spot-note { color: var(--ink-soft); display: block; margin-top: 6px; }
.meter { height: 14px; border-radius: 999px; background: #dfe6f2; overflow: hidden; }
.meter > span { display: block; height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, var(--green), var(--green-400) 50%, var(--saffron)); background-size: 200% 100%; animation: meterFlow 3s linear infinite; transition: width 1.2s var(--ease); }
.spot.is-soldout .meter > span { background: var(--danger); animation: none; }
@keyframes meterFlow { to { background-position: -200% 0; } }
.meter-light { background: rgba(11, 31, 68, .22); }
.meter-light > span { background: var(--navy-900); animation: none; }

.notice { display: flex; gap: 16px; align-items: flex-start; margin-top: 28px; padding: 20px 24px; border-radius: var(--radius); background: #fff6e9; border: 2px solid var(--saffron); color: var(--navy-900); }
.notice .ic { color: var(--saffron-600); width: 32px; height: 32px; margin-top: 2px; }
.notice p { margin: 0; }

/* ---------- route ---------- */
.route-points { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-bottom: 30px; }
@media (min-width: 760px) { .route-points { grid-template-columns: repeat(4, 1fr); } }
.route-points li { padding: 16px 18px; border-radius: 16px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .16); display: grid; }
.route-points b { font-family: var(--font-display); font-weight: 400; font-size: 2rem; color: var(--saffron); letter-spacing: .04em; line-height: 1.1; }
.route-points span { color: #cdd8ee; font-size: .88rem; }
.map-shell { padding: 8px; border-radius: calc(var(--radius-lg) + 8px); background: linear-gradient(135deg, var(--saffron), #fff 50%, var(--green)); box-shadow: var(--shadow-lg); }
.route-map { position: relative; height: 440px; border-radius: var(--radius-lg); overflow: hidden; background: #0f2a5a; display: flex; align-items: center; justify-content: center; }
.route-map .leaflet-container, .route-map.leaflet-container { width: 100%; height: 100%; }
.map-loading { margin: 0; color: #cdd8ee; }
@media (min-width: 900px) { .route-map { height: 600px; } }
.route-actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- kit ---------- */
.kit-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (min-width: 900px) { .kit-grid { grid-template-columns: repeat(4, 1fr); gap: 22px; } }
.kit-card { padding: 26px 22px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; }
.kit-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-color: var(--saffron); }
.kit-ic { display: grid; place-items: center; width: 58px; height: 58px; margin-bottom: 16px; border-radius: 16px; background: linear-gradient(135deg, var(--navy-900), var(--navy-700)); color: var(--saffron); transition: transform .4s var(--ease); }
.kit-card:hover .kit-ic { transform: rotate(-8deg) scale(1.08); }
.kit-ic svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.kit-card h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.6rem; letter-spacing: .04em; color: var(--navy-900); margin-bottom: 6px; }
.kit-card p { margin: 0; color: var(--ink-soft); font-size: .9rem; }

/* ---------- awards ---------- */
.awards-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .awards-grid { grid-template-columns: 1fr 1.15fr; gap: 64px; } }
.podium-wrap { max-width: 480px; margin: 0 auto; text-align: center; }
.podium { width: 100%; height: auto; filter: drop-shadow(0 20px 30px rgba(0, 0, 0, .35)); }
.podium-cap { margin-top: 10px; color: #cdd8ee; }
.award-cards { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .award-cards { grid-template-columns: repeat(3, 1fr); } }
.award-card { padding: 22px; border-radius: var(--radius); background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18); backdrop-filter: blur(8px); transition: transform .3s var(--ease), background .3s; }
.award-card:hover { transform: translateY(-6px); background: rgba(255, 255, 255, .14); }
.award-card h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.8rem; letter-spacing: .05em; color: var(--saffron); margin-bottom: 10px; }
.award-card ul { display: grid; gap: 6px; }
.award-card li { color: #e5ecf8; }
.award-card li b { display: inline-block; min-width: 2.6em; color: #fff; }
.award-overall { grid-column: 1 / -1; display: flex; gap: 18px; align-items: center; background: linear-gradient(135deg, rgba(255, 153, 51, .28), rgba(19, 136, 8, .22)); border-color: var(--saffron); }
.award-overall .ic { color: var(--saffron); }
.award-overall h3 { margin-bottom: 4px; }
.award-overall p { margin: 0; color: #e5ecf8; }
.awards-note { margin: 40px 0 0; text-align: center; font-weight: 600; letter-spacing: .06em; color: #ffd9a8; }

/* ---------- register band ---------- */
.reg-band { position: relative; padding: 84px 0; background: linear-gradient(120deg, var(--saffron) 0%, #ffb457 45%, #ffe2b3 100%); color: var(--navy-950); overflow: hidden; }
.reg-band::before { content: "2K27"; position: absolute; right: -2%; bottom: -26%; font-family: var(--font-display); font-size: clamp(12rem, 34vw, 30rem); line-height: 1; color: rgba(255, 255, 255, .28); pointer-events: none; }
.reg-in { position: relative; display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .reg-in { grid-template-columns: 1.2fr 1fr; } }
.reg-copy h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(2.8rem, 8vw, 5.4rem); letter-spacing: .02em; color: var(--navy-950); }
.reg-copy h2 span { color: #fff; -webkit-text-stroke: 0; text-shadow: 0 4px 0 var(--navy-900); }
.reg-fee { font-size: 1.2rem; font-weight: 600; margin: 14px 0 6px; }
.reg-fee b { font-family: var(--font-display); font-weight: 400; font-size: 2.6rem; vertical-align: -4px; }
.reg-note { padding: 10px 16px; border-radius: 12px; background: rgba(255, 255, 255, .6); font-weight: 600; max-width: 520px; }
.reg-note[hidden], .reg-spots[hidden] { display: none; }
.reg-spots { max-width: 520px; margin: 14px 0 20px; }
.reg-spots-text { font-weight: 600; margin-bottom: 8px; }
.reg-spots-text b { font-family: var(--font-display); font-weight: 400; font-size: 2.4rem; }
.reg-count { padding: 30px; border-radius: var(--radius-lg); background: var(--navy-900); color: #fff; text-align: center; box-shadow: var(--shadow-lg); }
.reg-count-label { text-transform: uppercase; letter-spacing: .22em; font-weight: 700; font-size: .8rem; color: var(--saffron); }
.countdown-lg .cd-box { min-width: 0; flex: 1; padding: 12px 6px 8px; }
.countdown-lg .cd-box b { font-size: clamp(2.4rem, 8vw, 3.6rem); }
.reg-count-sub { margin: 16px 0 0; color: #cdd8ee; font-size: .9rem; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .3s, border-color .3s; }
.faq-item.is-open { box-shadow: var(--shadow); border-color: var(--saffron); }
.faq-item h3 { font-size: 1rem; line-height: 1.4; }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; background: none; border: 0; font: inherit; font-weight: 600; font-size: 1.02rem; text-align: left; color: var(--navy-900); cursor: pointer; }
.faq-q:hover { color: var(--saffron-600); }
.faq-ic { position: relative; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--surface-alt); transition: background .3s, transform .3s var(--ease); }
.faq-ic::before, .faq-ic::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2.5px; background: var(--navy-900); border-radius: 2px; transform: translate(-50%, -50%); transition: transform .3s var(--ease); }
.faq-ic::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-q[aria-expanded="true"] .faq-ic { background: var(--saffron); }
.faq-q[aria-expanded="true"] .faq-ic::after { transform: translate(-50%, -50%) rotate(0); }
.faq-a { padding: 0 22px 20px; color: var(--ink-soft); }
.faq-a[hidden] { display: none; }
.faq-a p { margin: 0; }
.faq-a a { color: var(--navy-700); font-weight: 600; }

/* ---------- contact ---------- */
.social-title { margin: 16px 0 8px; font-weight: 700; color: var(--navy-900); }
.social-row { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.social-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 14px 6px 6px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--navy-900); font-weight: 600; font-size: .9rem; text-decoration: none; }
.social-chip b { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--navy-900); color: #fff; font-size: .75rem; }
a.social-chip:hover { border-color: var(--saffron); color: var(--saffron-600); }
.social-chip.is-soon { color: var(--ink-soft); border-style: dashed; cursor: default; }
.social-chip.is-soon b { background: var(--ink-soft); }
.contact-grid { display: grid; gap: 18px; }
@media (min-width: 800px) { .contact-grid { grid-template-columns: repeat(3, 1fr); } }
.contact-card { padding: 26px; border-radius: var(--radius); background: var(--surface-alt); border: 1px solid var(--line); border-top: 5px solid var(--saffron); }
.contact-card:nth-child(2) { border-top-color: #fff; border-top-color: #cbd5e1; }
.contact-card:nth-child(3) { border-top-color: var(--green); }
.contact-card h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.8rem; letter-spacing: .05em; color: var(--navy-900); margin-bottom: 8px; }
.contact-card p { color: var(--ink-soft); }
.contact-card strong { color: var(--ink); }
.contact-list { display: grid; gap: 8px; }
.contact-list a { color: var(--navy-700); font-weight: 600; text-decoration: none; }
.contact-list a:hover { color: var(--saffron-600); }
.contact-list[hidden], #contact-soon[hidden], .text-link[hidden] { display: none; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy-950); color: #cdd8ee; }
.tricolour-strip { display: flex; height: 8px; }
.footer-in { display: grid; gap: 36px; padding-top: 56px; padding-bottom: 44px; }
@media (min-width: 860px) { .footer-in { grid-template-columns: 1.4fr 1fr 1fr; gap: 56px; } }
.footer-brand img { height: 52px; width: auto; margin-bottom: 14px; }
.footer-brand p { max-width: 360px; }
.site-footer h2 { font-family: var(--font-display); font-weight: 400; letter-spacing: .08em; font-size: 1.5rem; color: #fff; margin-bottom: 12px; }
.footer-links ul { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--saffron); }
.footer-social { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 18px; }
.footer-social a { text-decoration: none; font-weight: 600; }
.footer-social a:hover { color: var(--saffron); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding: 18px 0; font-size: .85rem; text-align: center; }
.footer-bottom p { margin: 0; }

/* ---------- back to top ---------- */
.to-top { position: fixed; right: 18px; bottom: 18px; z-index: 90; width: 50px; height: 50px; border: 0; border-radius: 50%; background: linear-gradient(135deg, var(--saffron), var(--saffron-600)); color: var(--navy-950); box-shadow: 0 10px 24px rgba(255, 153, 51, .55); cursor: pointer; display: grid; place-items: center; opacity: 0; transform: translateY(20px); pointer-events: none; transition: opacity .3s, transform .3s var(--ease); }
.to-top[hidden] { display: grid; }
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { transform: translateY(-4px); }
.to-top svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 600px) {
  .section { padding: 68px 0; }
  .hero-in { padding-bottom: 130px; }
  .cd-box { min-width: 0; flex: 1; }
  .cd-box b { font-size: 2rem; }
  .countdown { width: 100%; }
  .strip-count { padding: 14px 12px; }
  .cat-who { min-height: 0; }
  .kit-card { padding: 20px 16px; }
  .kit-card h3 { font-size: 1.35rem; }
  .past { padding: 22px 18px; }
  .tl-card { padding: 18px; }
  .award-overall { flex-direction: column; align-items: flex-start; }
}

/* ---------- Gallery (Rise N' Run 26 photos) ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 8px; }
.gallery-item { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--surface-alt); box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.gallery-item img { width: 100%; height: 100%; min-height: 0; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .6s var(--ease); }
.gallery-item:hover img { transform: scale(1.03); }
.gallery-item figcaption { padding: 12px 16px; font-size: .9rem; color: var(--ink-soft); background: var(--surface); border-top: 1px solid var(--line); }
.gallery-wide { grid-column: 1 / -1; }
.gallery-wide img { aspect-ratio: 2 / 1; object-position: center 60%; }
@media (max-width: 640px) {
  .gallery-grid { grid-template-columns: 1fr; gap: 16px; }
  .gallery-wide img { aspect-ratio: 16 / 9; }
}
@media (prefers-reduced-motion: reduce) { .gallery-item img { transition: none; } .gallery-item:hover img { transform: none; } }

/* ---------- Phone & touch polish: 44px tap targets, a header that fits 320px, no sub-12px text ---------- */
.brand { flex: 0 1 auto; min-width: 0; }
.brand img { max-width: 100%; }
.nav-toggle, .header-cta { flex: none; }
@media (max-width: 1020px), (pointer: coarse) {
  .brand { min-height: 44px; }
  .btn, .btn-sm { min-height: 44px; }
  .text-link { position: relative; }
  .text-link::after { content: ''; position: absolute; left: -8px; right: -8px; top: -12px; bottom: -12px; } /* bigger tap area, same look */
  .footer-links a { display: inline-block; padding: 11px 0; min-width: 44px; }
  .footer-social a { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
  .topbar a { display: inline-block; padding: 8px 0; }
}
@media (max-width: 380px) {
  .container { padding: 0 14px; }
  .header-in { gap: 8px; }
  .brand img, .site-header.is-scrolled .brand img { height: 34px; }
  .header-cta { padding: 0 12px; font-size: .8rem; }
  .topbar { font-size: .75rem; }
  .topbar-msg { letter-spacing: .04em; }
}

/* availability status (no seat counts shown) */
.avail-pill { display: inline-flex; align-items: center; gap: 10px; margin: 0; padding: 8px 16px; border-radius: 999px; font-weight: 700; font-size: 1rem; background: rgba(255, 255, 255, .9); color: var(--navy-900); box-shadow: var(--shadow-sm); }
.avail-pill i { width: 10px; height: 10px; border-radius: 50%; background: #1fa855; box-shadow: 0 0 0 0 rgba(31, 168, 85, .5); animation: availPulse 1.8s infinite; }
.avail-pill[data-level="fast"] i { background: #f08a00; box-shadow: 0 0 0 0 rgba(240, 138, 0, .5); }
.avail-pill[data-level="last"] i { background: #d93025; box-shadow: 0 0 0 0 rgba(217, 48, 37, .5); }
.avail-pill[data-level="full"] i { background: #6b7280; animation: none; }
@keyframes availPulse { 70% { box-shadow: 0 0 0 8px rgba(0, 0, 0, 0); } 100% { box-shadow: 0 0 0 0 rgba(0, 0, 0, 0); } }
@media (prefers-reduced-motion: reduce) { .avail-pill i { animation: none; } }
