/* Rajyotsava 2026 event page in the cinematic "story" style. Loaded after style.css, hero-slowmo.css, story.css. */

body.event { overflow-x: hidden; }
.event .section { padding: clamp(72px, 10vw, 130px) 0; }
.ev-wrap { max-width: var(--wide); margin: 0 auto; }
.ev-wrap.narrow { max-width: 820px; }
.event h2 { color: var(--ink); }

/* ─── Opening ─────────────────────────────────────────────────────────── */
.ev-hero { background: var(--bg); }
.ev-hero .hero-inner { max-width: var(--wide); padding-bottom: clamp(64px, 10vh, 110px); }
.ev-title { font-size: clamp(3rem, .8rem + 6.6vw, 6.2rem); margin-bottom: 18px; }
.ev-hero .when { font-size: 1.15rem; margin-bottom: 22px; }
.live-dot { display: none; width: 10px; height: 10px; border-radius: 50%; background: #e8262d; box-shadow: 0 0 0 0 rgb(232 38 45 / .7); animation: live 1.6s infinite; }
.s-eyebrow:has(.live-dot) ::before { display: none; }
body.is-live .live-dot { display: inline-block; }
body.is-live .s-eyebrow::before { display: none; }
@keyframes live { 70% { box-shadow: 0 0 0 10px rgb(232 38 45 / 0); } 100% { box-shadow: 0 0 0 0 rgb(232 38 45 / 0); } }

.ev-count { margin: 0 0 26px; }
.ev-count-title { margin: 0 0 10px; font-weight: 700; color: var(--gold-2); letter-spacing: .03em; }
.ev-count .cd-grid { grid-template-columns: repeat(4, minmax(0, 112px)); justify-content: start; gap: 10px; }
.ev-count .cd-grid div { background: rgb(0 0 0 / .32); border: 1px solid rgb(244 180 0 / .38); border-radius: 18px; padding: 12px 4px 10px; backdrop-filter: blur(8px); text-align: center; }
.ev-count .cd-grid .n { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3rem); }
.ev-count .cd-msg { text-align: left; }
@media (max-width: 720px) {
  .ev-title { font-size: clamp(2.5rem, 12vw, 3.4rem); margin-bottom: 10px; }
  .ev-hero .when { font-size: .98rem; margin-bottom: 14px; }
  .ev-count { margin-bottom: 18px; }
  .ev-count .cd-grid { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .ev-count .cd-grid div { padding: 10px 2px 8px; border-radius: 14px; }
  .ev-count .cd-grid .n { font-size: 1.7rem; }
  .ev-count .cd-grid .u { font-size: .75rem; }
}

/* ─── Why Rajyotsava ──────────────────────────────────────────────────── */
.ev-why { padding-top: clamp(64px, 8vw, 100px); padding-bottom: clamp(40px, 6vw, 80px); }
.ev-why-in { max-width: var(--wide); margin: 0 auto; display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(28px, 6vw, 80px); align-items: center; }
.ev-why h2 { font-size: clamp(2rem, 1.3rem + 3vw, 3.4rem); }
.ev-why p { color: #e6d3c4; font-size: 1.1rem; }
.ev-link { display: inline-block; margin-top: 6px; color: var(--gold); font-weight: 800; text-decoration: none; }
.ev-link:hover { text-decoration: underline; }
.event .stats li { background: linear-gradient(180deg, var(--surface-2), var(--surface)); box-shadow: none; border: 1px solid rgb(255 255 255 / .06); border-left-width: 6px; }
.event .stats b { color: var(--gold); }
@media (max-width: 820px) { .ev-why-in { grid-template-columns: 1fr; } }

/* ─── 01 The day: programme as a journey ──────────────────────────────── */
.day { --p: 0; position: relative; list-style: none; max-width: min(1320px, 92vw); margin: 0 auto; padding: 0; display: grid; gap: clamp(22px, 3vw, 34px); }
.day::before, .day::after { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; margin-left: -1px; }
.day::before { background: rgb(255 255 255 / .1); }
.day::after { background: linear-gradient(var(--gold), var(--accent)); transform-origin: top; transform: scaleY(var(--p)); box-shadow: 0 0 18px rgb(244 180 0 / .5); }
.day li { position: relative; width: calc(50% - 46px); padding: 24px 26px 22px; border-radius: 22px;
  background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid rgb(255 255 255 / .07); box-shadow: 0 24px 50px -26px rgb(0 0 0 / .8); }
.day li:nth-child(odd) { justify-self: start; }
.day li:nth-child(even) { justify-self: end; }
.day li::before { content: ""; position: absolute; top: 32px; width: 18px; height: 18px; border-radius: 50%; background: var(--bg); border: 3px solid var(--gold);
  box-shadow: 0 0 0 6px rgb(244 180 0 / .12); transition: background .6s, box-shadow .6s; }
.day li:nth-child(odd)::before { right: -56px; }
.day li:nth-child(even)::before { left: -56px; }
.day li.lit::before { background: var(--gold); box-shadow: 0 0 0 8px rgb(244 180 0 / .18), 0 0 26px var(--gold); }
.day li::after { position: absolute; top: 18px; right: 20px; font-size: 2rem; line-height: 1; opacity: .9; }
.day li:nth-child(1)::after { content: "🚩"; } .day li:nth-child(2)::after { content: "🩸"; } .day li:nth-child(3)::after { content: "🥁"; }
.day li:nth-child(4)::after { content: "🍛"; } .day li:nth-child(5)::after { content: "💃"; } .day li:nth-child(6)::after { content: "🪔"; }
.day .when { display: block; margin: 0 0 6px; padding-right: 44px; font: 800 clamp(1.5rem, 1.1rem + 1.4vw, 2.2rem)/1.15 var(--font-head);
  background: linear-gradient(90deg, var(--gold-2), var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.day h3 { font-size: clamp(1.2rem, 1rem + .6vw, 1.5rem); margin: 0 0 6px; }
.day p { margin: 0; color: #e0ccbd; }
@media (max-width: 820px) {
  .day::before, .day::after { left: 14px; }
  .day li { width: auto; margin-left: 42px; justify-self: stretch !important; }
  .day li::before { left: -37px !important; right: auto !important; top: 28px; }
}

/* ─── 02 Take part + announcements ────────────────────────────────────── */
.event .cards { margin-top: 0; }
.event .card { background: linear-gradient(180deg, var(--surface-2), var(--surface)); box-shadow: 0 24px 50px -26px rgb(0 0 0 / .8); border: 1px solid rgb(255 255 255 / .07); border-top-width: 6px; }
.event .card:nth-child(1) { border-top-color: var(--gold); }
.event .card svg { stroke: var(--gold); }
.event .card p { color: #e0ccbd; }
.ev-news { padding-top: 0; }
.ev-news h2 { font-size: clamp(1.8rem, 1.3rem + 2vw, 2.6rem); }
.event .news-list li { background: var(--surface); box-shadow: none; border-color: var(--line); }
.event .news-list li.pinned { border-left-color: var(--gold); }
.event .news-list time { color: var(--ink-soft); }
.event .draft-badge { background: rgb(244 180 0 / .12); color: var(--gold-2); border-color: rgb(244 180 0 / .55); margin: 14px 0 0; }

/* ─── 03 Memories ─────────────────────────────────────────────────────── */
.event .slide video { box-shadow: 0 30px 60px -24px rgb(0 0 0 / .8); }
.event .round { background: var(--surface); border-color: var(--line); color: var(--ink); }
.mosaic { display: grid; gap: 12px; margin-top: 28px; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 200px 200px; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; border-radius: 18px; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.mosaic img:first-child { grid-row: span 2; }
.mosaic img:nth-child(4) { grid-column: span 2; }
.mosaic img:hover { transform: scale(1.02); }
@media (max-width: 720px) { .mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: 160px 120px 120px; } .mosaic img:first-child { grid-column: span 2; grid-row: auto; } .mosaic img:nth-child(4) { grid-column: span 2; } }

/* ─── 05 Send wishes (greeting card maker) ────────────────────────────── */
.ev-wish { background: radial-gradient(70% 60% at 70% 40%, #3a1210, transparent 70%); }
.wish { max-width: var(--wide); margin: 0 auto; display: grid; grid-template-columns: 1fr minmax(0, 440px); gap: clamp(28px, 5vw, 70px); align-items: start; }
.wish-form { display: grid; gap: 18px; }
.wish-form label > span, .wish-form legend { display: block; margin-bottom: 8px; font-weight: 700; color: var(--gold-2); }
.wish-form input:not([type="radio"]) { width: 100%; min-height: 54px; padding: 0 18px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font: 600 1.1rem var(--font-body); }
.wish-form input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgb(244 180 0 / .18); }
.wish-form fieldset { border: 0; margin: 0; padding: 0; }
.wish-bgs { display: flex; flex-wrap: wrap; gap: 10px; }
.wish-bgs label { position: relative; cursor: pointer; }
.wish-bgs input { position: absolute; opacity: 0; }
.wish-bgs img { width: 76px; height: 76px; object-fit: cover; border-radius: 16px; border: 3px solid transparent; transition: .2s; }
.wish-bgs input:checked + img { border-color: var(--gold); box-shadow: 0 0 0 4px rgb(244 180 0 / .25); }
.wish-bgs input:focus-visible + img { outline: 3px solid var(--focus); outline-offset: 2px; }
.wish-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.wish-actions .btn svg { width: 20px; height: 20px; }
.wish-note { min-height: 1.5em; margin: 0; color: var(--gold-2); }
.wish-card { margin: 0; position: sticky; top: calc(var(--bar-h) + 20px); }
.wish-card canvas { display: block; width: 100%; height: auto; border-radius: 20px; box-shadow: 0 40px 80px -30px rgb(0 0 0 / .9), 0 0 0 1px rgb(255 255 255 / .08); }
@media (max-width: 860px) { .wish { grid-template-columns: 1fr; } .wish-card { position: static; order: -1; max-width: 420px; margin: 0 auto; } }

/* ─── Word of the day + partners on the dark theme ────────────────────── */
.event .word { background: var(--bg-alt); }
.event .word-card { background: linear-gradient(180deg, var(--surface-2), var(--surface)); }
.event .w-kn { color: var(--gold); }
.event .partners { background: var(--bg) url(/img/motifs/toran.svg) top center/96px 44px repeat-x; }
.event .partner-groups li { background: var(--surface); box-shadow: none; border: 1px solid var(--line); }
.event .partner-groups h3 { color: var(--gold-2); }

/* ─── 1 November: falling petals while the festival is on ─────────────── */
.petals { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 40; }

/* 04 Story teaser as a proper chapter: flag bar, heading, strip, button */
.ev-teaser { padding: clamp(96px, 12vw, 150px) 0 clamp(64px, 9vw, 110px); text-align: left; background: linear-gradient(180deg, #2a0a0c, #1a0707 60%, var(--bg)); }
.ev-teaser .s-head { padding: 0 var(--gutter); }
.ev-teaser .s-head h2 { background: linear-gradient(100deg, #ffe58a, var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ev-teaser .st-strip { padding-top: 0; }
.st-cta { text-align: center; margin: 8px 0 0; }
.st-cta .btn svg { width: 20px; height: 20px; }
.ev-mem { padding-bottom: clamp(56px, 8vw, 96px); }

/* ─── Desktop: wider, richer layouts (phones unchanged) ───────────────────── */
@media (min-width: 1100px) {
  .day li { width: calc(50% - 60px); padding: 30px 34px 28px; }
  .day li:nth-child(odd)::before { right: -70px; }
  .day li:nth-child(even)::before { left: -70px; }
  .day .when { font-size: clamp(2rem, 1.2rem + 1.4vw, 2.8rem); }
  .day h3 { font-size: 1.6rem; }
  .day p { font-size: 1.1rem; }
  /* 03 memories: heading column on the left (sticky), reel + photos on the right */
  .ev-mem { display: grid; grid-template-columns: minmax(280px, .8fr) 2fr; column-gap: clamp(40px, 5vw, 90px); max-width: var(--wide); margin: 0 auto; padding-left: 0; padding-right: 0; align-items: start; }
  .ev-mem > .s-head { position: sticky; top: calc(var(--bar-h) + 40px); margin: 0; }
  .ev-mem > .ev-wrap { max-width: none; margin: 0; }
  .mosaic { grid-template-rows: 240px 240px; }
  .event .cards { grid-template-columns: repeat(3, 1fr); }
}
.ev-teaser .st-cta { margin-top: clamp(20px, 3vw, 36px); padding: 0 var(--gutter); }
.ev-teaser { background: #1a0707; }

/* ─── Pride hero: Karnataka's icons crossfade behind a giant gold ಕರ್ನಾಟಕ ── */
.kp-slides figure { position: absolute; inset: 0; margin: 0; opacity: 0; overflow: hidden;
  animation: kp-fade 48s linear infinite; animation-delay: calc(var(--i) * 6s - 1.5s); }
.kp-slides figure:first-child { opacity: 1; }
.kp-slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 1 !important;
  object-position: var(--fx) var(--fy); transform-origin: var(--fx) var(--fy); will-change: transform;
  animation: kp-zoom 48s linear infinite !important; animation-delay: calc(var(--i) * 6s - 1.5s) !important; }
.kp-slides figure img { animation-delay: inherit !important; }
@keyframes kp-fade { 0% { opacity: 0; } 3.125% { opacity: 1; } 12.5% { opacity: 1; } 15.625% { opacity: 0; } 100% { opacity: 0; } }
@keyframes kp-zoom { 0% { transform: scale(1); } 15.625% { transform: scale(1.08); } 100% { transform: scale(1.08); } }
.kp-slides figcaption { position: absolute; right: var(--gutter); bottom: 34px; z-index: 3; display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px 4px 10px; border-radius: 999px; background: rgb(0 0 0 / .4); border: 1px solid rgb(255 255 255 / .22); backdrop-filter: blur(6px);
  color: #fff; font: 700 .85rem/1.4 var(--font-head); }
.kp-slides figcaption::before { content: ""; width: 9px; height: 9px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--gold); }
html[lang="kn"] .kp-slides figcaption [lang="en"], html[lang="en"] .kp-slides figcaption [lang="kn"] { display: none; }
.kp-hero .hero-shade { background:
  linear-gradient(180deg, rgb(20 6 6 / .5) 0%, transparent 22%, transparent 50%, rgb(20 6 6 / .88) 100%),
  linear-gradient(90deg, rgb(20 6 6 / .62) 0%, rgb(20 6 6 / .2) 45%, transparent 70%); }

.kp-title { line-height: 1; margin-bottom: 14px; }
.kp-title .kp-ka { display: block; font-size: clamp(3.6rem, 1rem + 10vw, 9.5rem); line-height: 1.15;
  background: linear-gradient(100deg, #ffe58a 0%, var(--gold) 30%, #fff3c4 45%, var(--gold) 60%, #ffd24a 100%) 0 0 / 250% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: hero-rise 1.6s .5s cubic-bezier(.2,.7,.2,1) both, kp-sweep 7s 2.2s ease-in-out infinite; }
@keyframes kp-sweep { 0% { background-position: 100% 0; } 45%, 100% { background-position: -60% 0; } }
.kp-title em { display: block; font-size: clamp(1.9rem, 1rem + 3vw, 3.6rem); line-height: 1.25; background: none; color: #fff; -webkit-text-fill-color: #fff; animation: none; }
.kp-pride { display: flex; align-items: center; gap: 10px; min-height: 2.2em; margin: 0 0 18px; font: 700 clamp(1.05rem, .9rem + .7vw, 1.45rem)/1.4 var(--font-head); color: #fbe6d2; }
.kp-pride::before { content: "✦"; color: var(--gold); flex: none; }
.kp-pride span.swap { animation: kp-line .7s cubic-bezier(.2,.7,.2,1); }
@keyframes kp-line { from { opacity: 0; transform: translateY(10px); filter: blur(4px); } }
@media (max-width: 720px) {
  .kp-slides figcaption { bottom: 12px; font-size: .72rem; padding: 2px 10px 2px 8px; }
  .kp-title .kp-ka { font-size: clamp(3rem, 15vw, 4.2rem); }
  .kp-title em { font-size: clamp(1.5rem, 7vw, 2rem); }
  .kp-pride { font-size: 1rem; margin-bottom: 14px; }
}
@media (prefers-reduced-motion: reduce) { .kp-slides figure, .kp-slides img { animation: none !important; } .kp-slides figure:not(:first-child) { display: none; } }

/* ─── Front page: "a journey through time" row (inside the story banner) ── */
.journey { position: relative; max-width: var(--wide); margin: 0 auto; }
.journey-track { --cw: clamp(210px, 62vw, 250px); list-style: none; margin: 0; padding: 26px var(--gutter) 18px; display: grid; grid-auto-flow: column; grid-auto-columns: var(--cw);
  gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-padding: 0 var(--gutter);
  background: linear-gradient(var(--gold), var(--gold)) 0 33px / 100% 2px no-repeat; }
.journey-track::-webkit-scrollbar { display: none; }
.journey-track li { scroll-snap-align: start; }
.journey-track a { position: relative; display: flex; flex-direction: column; gap: 8px; height: 100%; text-decoration: none; color: #fff; }
.j-dot { width: 16px; height: 16px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 5px rgb(244 180 0 / .22), 0 0 18px var(--gold); margin-bottom: 6px; }
.j-year { font: 800 1.15rem/1.2 var(--font-head); color: var(--gold); }
.j-pic { display: grid; place-items: center; aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; background: radial-gradient(circle at 30% 20%, #5a1a16, #1d0908 70%);
  box-shadow: 0 18px 40px -18px rgb(0 0 0 / .9); border: 1px solid rgb(255 255 255 / .1); }
.j-pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.journey-track a:hover .j-pic img { transform: scale(1.06); }
.j-art { font: 800 1.6rem/1.1 var(--font-head); color: transparent; -webkit-text-stroke: 1.2px rgb(244 180 0 / .6); text-align: center; padding: 0 10px; }
.j-title { font: 700 1rem/1.35 var(--font-head); text-shadow: 0 2px 10px rgb(0 0 0 / .7); }
.journey-nav { display: flex; justify-content: flex-end; gap: 10px; padding: 0 var(--gutter); }
.journey-nav .round { font: 700 1.5rem/1 var(--font-head); color: var(--gold); background: rgb(0 0 0 / .35); border-color: rgb(244 180 0 / .5); }
@media (max-width: 720px) { .journey-nav { display: none; } }

/* ─── Organisers & partners: compact thank-you band ───────────────────── */
.event .partners { padding: calc(clamp(40px, 5vw, 64px) + 30px) 0 clamp(40px, 5vw, 64px); }
.event .partners h2 { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); margin-bottom: .2em; }
.event .partners .muted { margin: 0 0 18px; font-size: .95rem; }
.event .partner-groups { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 0; }
.event .partner-groups > div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; padding-top: 12px; border-top: 1px solid rgb(244 180 0 / .15); }
.event .partner-groups h3 { flex: 0 0 auto; min-width: 12em; margin: 0; font-size: .78rem; letter-spacing: .06em; }
.event .partner-groups ul { display: flex; flex-wrap: wrap; gap: 8px; flex: 1 1 320px; }
.event .partner-groups li { padding: 5px 12px; border-radius: 999px; font-size: .88rem; font-weight: 600; line-height: 1.4;
  background: rgb(255 255 255 / .05); border: 1px solid rgb(244 180 0 / .25); }
@media (max-width: 600px) { .event .partner-groups h3 { min-width: 0; width: 100%; } .event .partner-groups li { font-size: .84rem; padding: 4px 11px; } }
.music-credit { margin-bottom: 6px !important; font-size: .8rem !important; }
.music-credit a { color: inherit; text-decoration-color: rgb(244 180 0 / .5); }

/* ─── Announcements as a notice board inside 04 Take part ─────────────── */
.bulletin { display: grid; grid-template-columns: minmax(220px, 280px) 1fr; margin-top: clamp(36px, 5vw, 56px); border-radius: 24px; overflow: hidden;
  border: 1px solid rgb(244 180 0 / .35); background: linear-gradient(180deg, var(--surface-2), var(--surface)); box-shadow: 0 30px 60px -30px rgb(0 0 0 / .9); }
.bulletin-head { position: relative; padding: 26px 26px 24px; background: linear-gradient(160deg, var(--gold), #e0a100); color: #2a1600; }
.bulletin-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--red, #d2232a); }
.bulletin-head svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 10px; }
.bulletin-head h3 { margin: 0 0 4px; font-size: clamp(1.4rem, 1.1rem + 1vw, 1.8rem); color: #2a1600; }
.bulletin-head p { margin: 0; font-weight: 600; font-size: .95rem; color: #4a2c00; }
.event .bulletin .news-list { margin: 0; padding: 6px 0; display: block; }
.event .bulletin .news-list li { margin: 0; padding: 18px 26px; border: 0; border-radius: 0; background: none; box-shadow: none; border-top: 1px solid rgb(255 255 255 / .07); }
.event .bulletin .news-list li:first-child { border-top: 0; }
.event .bulletin .news-list li.pinned { background: rgb(244 180 0 / .06); }
.event .bulletin .news-list time { color: var(--gold-2); font-weight: 700; font-size: .85rem; letter-spacing: .02em; }
.event .bulletin .news-list h3 { font-size: 1.15rem; margin: 4px 0 4px; }
.event .bulletin .news-list p { color: #e0ccbd; }
@media (min-width: 1100px) { .event .bulletin .news-list { grid-template-columns: none; } }
@media (max-width: 720px) {
  .bulletin { grid-template-columns: 1fr; }
  .bulletin-head { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; padding: 18px 20px 20px; }
  .bulletin-head svg { grid-row: span 2; margin: 0; width: 30px; height: 30px; }
  .event .bulletin .news-list li { padding: 16px 20px; }
}

/* ─── Story section hooks on the front page ───────────────────────────── */
.st-fact { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 18px 0 0; padding: 8px 16px 8px 8px; border-radius: 999px;
  background: rgb(0 0 0 / .45); border: 1px solid rgb(244 180 0 / .45); backdrop-filter: blur(8px); font: 700 clamp(.98rem, .9rem + .4vw, 1.15rem)/1.35 var(--font-head); color: #fff; }
.st-fact b { padding: 4px 12px; border-radius: 999px; background: var(--gold); color: #2a1600; font-size: .85em; white-space: nowrap; }
.st-fact span.swap { animation: kp-line .7s cubic-bezier(.2,.7,.2,1); }
@media (max-width: 720px) { .st-fact { border-radius: 18px; padding: 10px 14px; } }
.st-inside { max-width: var(--wide); margin: clamp(20px, 3vw, 30px) auto 0; padding: 0 var(--gutter); text-align: center; }
.st-inside p { margin: 0 0 10px; color: var(--gold-2); font-weight: 700; letter-spacing: .06em; font-size: .85rem; }
.st-inside ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 10px; }
.st-inside li { display: inline-flex; align-items: baseline; gap: 6px; padding: 6px 14px; border-radius: 999px; background: rgb(0 0 0 / .4); border: 1px solid rgb(255 255 255 / .15); color: #fbe6d2; font-weight: 600; font-size: .92rem; }
.st-inside li b { font: 800 1.15rem/1 var(--font-head); color: var(--gold); }
@media (max-width: 720px) {
  .st-inside ul { gap: 6px; }
  .st-inside li { padding: 4px 10px; font-size: .8rem; gap: 4px; }
  .st-inside li b { font-size: 1rem; }
}

/* ─── Hero motto as a flag-colour badge, clearly separate from the title ── */
.kp-hero .s-eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px; padding: 6px 16px 6px 6px; border-radius: 999px;
  background: var(--gold); color: #2a1600; letter-spacing: .02em; font: 800 clamp(.9rem, .85rem + .3vw, 1.05rem)/1.3 var(--font-head);
  box-shadow: 0 8px 26px -8px rgb(0 0 0 / .6), 0 0 0 3px rgb(244 180 0 / .25); }
.kp-hero .s-eyebrow::before { content: ""; flex: none; width: 24px; height: 24px; border-radius: 50%; margin: 0;
  background: linear-gradient(180deg, #ffd24a 0 50%, var(--red, #d2232a) 50% 100%); box-shadow: inset 0 0 0 2px rgb(255 255 255 / .85); }
body.is-live .kp-hero .s-eyebrow::before { display: none; }
body.is-live .kp-hero .s-eyebrow { padding-left: 14px; }
@media (max-width: 720px) { .kp-hero .s-eyebrow { margin-bottom: 14px; } }

/* ─── Story section on one left edge: heading / hook row / slider / action row ── */
.ev-teaser { text-align: left; }
.ev-teaser .s-head { margin-bottom: clamp(20px, 3vw, 28px); }
.st-bar, .st-foot { max-width: var(--wide); margin: 0 auto; padding: 0 var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; }
.st-bar .st-fact { margin: 0; }
.st-bar .journey-nav { padding: 0; flex: none; }
.ev-teaser .journey-track { padding-top: 22px; }
.st-foot { justify-content: flex-start; margin-top: clamp(18px, 2.5vw, 28px); }
.st-foot .btn-story { flex: none; margin: 0; }
.st-foot .st-inside { margin: 0; padding: 0; text-align: left; }
.st-foot .st-inside p { margin: 0 0 8px; }
.st-foot .st-inside ul { justify-content: flex-start; }
@media (max-width: 720px) {
  .st-bar { display: block; }
  .st-foot { flex-direction: column-reverse; align-items: stretch; gap: 18px; }
  .st-foot .btn-story { width: 100%; max-width: none; }
}

/* ─── Motto: pill + a flag-colour rule running to the right (separates it from the title) ── */
.kp-hero .s-eyebrow { display: flex; align-items: center; width: 100%; max-width: 720px; gap: 14px; padding: 0; background: none; box-shadow: none; border-radius: 0; color: inherit; }
.kp-hero .s-eyebrow::before { display: none; }
.kp-hero .s-eyebrow::after { content: ""; flex: 1 1 40px; min-width: 40px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--red, #d2232a) 45%, rgb(210 35 42 / 0) 100%); }
.kp-hero #evEyebrow { display: inline-flex; align-items: center; gap: 9px; padding: 6px 16px 6px 6px; border-radius: 999px; white-space: nowrap;
  background: var(--gold); color: #2a1600; font: 800 clamp(.9rem, .85rem + .3vw, 1.05rem)/1.3 var(--font-head);
  box-shadow: 0 8px 26px -8px rgb(0 0 0 / .6), 0 0 0 3px rgb(244 180 0 / .25); }
.kp-hero #evEyebrow::before { content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%;
  background: linear-gradient(180deg, #ffd24a 0 50%, var(--red, #d2232a) 50% 100%); box-shadow: inset 0 0 0 2px rgb(255 255 255 / .85); }
body.is-live .kp-hero #evEyebrow::before { display: none; }
@media (max-width: 720px) {
  .kp-hero .s-eyebrow { gap: 10px; margin-bottom: 12px; }
  .kp-hero #evEyebrow { gap: 6px; padding: 3px 11px 3px 3px; font-size: .76rem; white-space: normal; border-radius: 14px; }
  .kp-hero #evEyebrow::before { width: 16px; height: 16px; box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / .85); }
}
.kp-hero .s-eyebrow #evEyebrow::before { display: block; }
body.is-live .kp-hero .s-eyebrow #evEyebrow::before { display: none; }
.kp-hero #evEyebrow .eb-tr::before { content: " · "; }
@media (max-width: 720px) { .kp-hero #evEyebrow { white-space: nowrap; } .kp-hero #evEyebrow .eb-tr { display: none; } }
/* the flag-colour rule goes UNDER the motto, full width: it closes the photo + motto part before the title */
.kp-hero .s-eyebrow { flex-wrap: wrap; max-width: none; gap: 0; margin-bottom: clamp(16px, 2.4vw, 26px); }
.kp-hero .s-eyebrow::after { flex: 0 0 100%; min-width: 0; height: 2px; margin-top: clamp(14px, 2vw, 20px); max-width: 760px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--red, #d2232a) 50%, rgb(210 35 42 / 0) 100%); }
.kp-hero #evEyebrow .eb-tr::before { content: "·"; margin: 0 .45em; }
@media (max-width: 720px) { .kp-hero .s-eyebrow { margin-bottom: 14px; } .kp-hero .s-eyebrow::after { margin-top: 12px; } }
/* rule under the motto: full row (no max-width, so it always wraps below the badge on desktop too) */
.kp-hero .s-eyebrow::after { max-width: none; background: linear-gradient(90deg, var(--gold) 0%, var(--red, #d2232a) 32%, rgb(210 35 42 / 0) 62%); }
/* the same thin flag rule closes the countdown, before the buttons */
.kp-hero .ev-count::after { content: ""; display: block; height: 2px; border-radius: 2px; margin-top: clamp(16px, 2.2vw, 22px);
  background: linear-gradient(90deg, var(--gold) 0%, var(--red, #d2232a) 32%, rgb(210 35 42 / 0) 62%); }
@media (max-width: 720px) {
  .kp-hero .s-eyebrow::after, .kp-hero .ev-count::after { background: linear-gradient(90deg, var(--gold) 0%, var(--red, #d2232a) 50%, rgb(210 35 42 / 0) 100%); }
  .kp-hero .ev-count::after { margin-top: 14px; }
}

/* ─── RSVP + contributions ─────────────────────────────────────────────── */
.join-grid { max-width: var(--wide); margin: 0 auto; display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); align-items: start; }
.join-card { display: grid; gap: 14px; padding: 24px; border-radius: 22px; background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid rgb(244 180 0 / .3); }
.join-card h3 { margin: 0; font-size: 1.4rem; }
.join-card label { display: grid; gap: 6px; font-weight: 700; color: var(--gold-2); font-size: .9rem; }
.join-card label.chk { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 500; }
.join-card label.chk input { width: 20px; height: 20px; accent-color: var(--gold); }
.join-card input:not([type=checkbox]) { width: 100%; min-height: 48px; padding: 10px 14px; border-radius: 14px; border: 1.5px solid var(--line); background: #1a0a09; color: var(--ink); font: 600 1rem var(--font-body); }
.join-card input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgb(244 180 0 / .18); }
.join-card .btn-story { width: 100%; justify-content: center; }
.join-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.join-stat { margin: 0; color: var(--gold); font-weight: 700; min-height: 1.2em; }
.join-stat:empty { display: none; }
.join-msg { margin: 0; min-height: 1.3em; font-weight: 700; color: var(--gold); }
.join-msg.err { color: #ff8a8a; }
.join-note { margin: 0; color: var(--ink-soft); font-size: .88rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.give-bar { height: 10px; border-radius: 5px; background: rgb(255 255 255 / .08); overflow: hidden; }
.give-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold), var(--red, #d2232a)); transition: width .8s; }
.give-pay { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; padding: 14px; border-radius: 16px; background: rgb(0 0 0 / .25); }
.give-pay img { width: 150px; height: 150px; border-radius: 12px; background: #fff; padding: 6px; }
.give-pay p { margin: 0 0 6px; color: #e0ccbd; }
.give-pay .upi { font: 800 1.05rem var(--font-head); color: #fff; word-break: break-all; }
.give-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.give-list li { padding: 4px 12px; border-radius: 999px; background: rgb(255 255 255 / .05); border: 1px solid rgb(244 180 0 / .2); font-size: .85rem; }
.give-list span { color: var(--ink-soft); } .give-list em { font-style: normal; color: var(--gold); font-weight: 700; }

/* ─── Wishes strip under the greeting-card maker ───────────────────────── */
.wall-strip { max-width: var(--wide); margin: clamp(40px, 6vw, 70px) auto 0; padding-top: clamp(28px, 4vw, 40px); border-top: 1px solid rgb(244 180 0 / .2); }
.wall-strip-h { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.wall-strip-h h3 { margin: 0; font-size: clamp(1.3rem, 1.1rem + 1vw, 1.9rem); }
.wall-mini { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.wall-mini li { padding: 18px 18px 14px; border-radius: 18px; background: rgb(0 0 0 / .25); border: 1px solid rgb(255 255 255 / .08); border-top: 4px solid var(--gold); }
.wall-mini p { margin: 0 0 10px; color: #f3e2d3; line-height: 1.55; }
.wall-mini span { color: var(--gold-2); font-weight: 700; font-size: .9rem; }
@media (max-width: 720px) { .wall-strip-h .btn-story { width: 100%; justify-content: center; } }

/* flag line (see memory: flag-line-style): off under the countdown, on above "Why Rajyotsava?" instead of the hero's flag ribbon */
.kp-hero .ev-count::after { content: none; }
.event .kp-hero .ribbon { display: none; }
.ev-why-in { position: relative; }
.ev-why-in::before { content: ""; position: absolute; left: 0; right: 0; top: calc(-1 * clamp(40px, 5vw, 64px)); height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--red, #d2232a) 32%, rgb(210 35 42 / 0) 62%); }
@media (max-width: 720px) { .ev-why-in::before { background: linear-gradient(90deg, var(--gold) 0%, var(--red, #d2232a) 50%, rgb(210 35 42 / 0) 100%); } }

/* ─── Phone: the hero is exactly one screen — photos on top (as tall as possible), text + buttons at the
       bottom, the flag line closing the screen. Desktop unchanged. ── */
@media (max-width: 720px) {
  .kp-hero { display: flex; flex-direction: column; align-items: stretch; min-height: 100vh; min-height: 100svh; }
  .kp-hero .hero-slides.kp-slides { position: relative; inset: auto; width: 100%; flex: 1 1 auto; height: auto; min-height: 30svh; max-height: none;
    -webkit-mask-image: linear-gradient(180deg, #000 80%, transparent 100%); mask-image: linear-gradient(180deg, #000 80%, transparent 100%); }
  .kp-hero .hero-inner { flex: none; width: 100%; padding-top: 0; padding-bottom: 26px; }
  .kp-hero .s-eyebrow { margin-bottom: 8px; }
  .kp-hero .s-eyebrow::after { margin-top: 8px; }
  .kp-title { margin-bottom: 6px; }
  .kp-title .kp-ka { font-size: clamp(2.7rem, 13.5vw, 3.8rem); line-height: 1.1; }
  .kp-title em { font-size: clamp(1.35rem, 6.4vw, 1.8rem); }
  .kp-pride { min-height: 0; margin-bottom: 8px; font-size: .95rem; }
  .ev-hero .when { margin-bottom: 8px; font-size: .92rem; }
  .ev-count { margin-bottom: 14px; }
  .ev-count-title { margin-bottom: 6px; font-size: .9rem; }
  .ev-count .cd-grid div { padding: 7px 2px 6px; }
  .ev-count .cd-grid .n { font-size: 1.55rem; }
  .kp-hero::after { content: ""; position: absolute; left: var(--gutter); right: var(--gutter); bottom: 0; height: 2px; border-radius: 2px; z-index: 3;
    background: linear-gradient(90deg, var(--gold) 0%, var(--red, #d2232a) 50%, rgb(210 35 42 / 0) 100%); }
  .ev-why-in::before { display: none; }
  /* motto: keep the translation on phones too (English mode), wrapping inside the badge */
  .kp-hero #evEyebrow { white-space: normal; }
  .kp-hero #evEyebrow .eb-tr { display: inline; font-weight: 700; }
}
@media (max-width: 720px) {
  .kp-hero .hero-shade { background: linear-gradient(180deg, rgb(20 6 6 / .45) 0%, transparent 16%, transparent 40%, rgb(20 6 6 / .35) 55%, rgb(20 6 6 / .9) 100%); }
  .kp-hero #evEyebrow { flex-wrap: wrap; column-gap: 6px; row-gap: 0; padding-right: 12px; }
  .kp-hero #evEyebrow .eb-tr { flex-basis: 100%; padding-left: 22px; font-size: .92em; }
  .kp-hero #evEyebrow .eb-tr::before { content: none; }
}

/* phone: motto as quiet text, no yellow box */
@media (max-width: 720px) {
  .kp-hero #evEyebrow { background: none; box-shadow: none; padding: 0; border-radius: 0; color: var(--gold); font-size: .82rem; letter-spacing: .03em; }
  .kp-hero #evEyebrow::before { width: 12px; height: 12px; box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / .8); }
  .kp-hero #evEyebrow .eb-tr { padding-left: 18px; color: #e6cdb9; font-weight: 600; font-size: .9em; }
}
/* phone: motto + translation on one line */
@media (max-width: 720px) {
  .kp-hero #evEyebrow { flex-wrap: nowrap; white-space: nowrap; font-size: .78rem; max-width: 100%; overflow: hidden; }
  .kp-hero #evEyebrow .eb-tr { flex-basis: auto; padding-left: 0; overflow: hidden; text-overflow: ellipsis; }
  .kp-hero #evEyebrow .eb-tr::before { content: "·"; margin: 0 .4em; color: var(--gold); }
}

/* ─── Phone: "01 The Story of Karnataka" fits one screen, from the title to "Start the story" ── */
@media (max-width: 720px) {
  .ev-teaser { display: flex; flex-direction: column; justify-content: center; min-height: 100svh; padding: calc(var(--bar-h) + 14px) 0 22px; }
  .ev-teaser .s-head { margin-bottom: 12px; }
  .ev-teaser .s-num { font-size: 5.2rem; top: -.3em; }
  .ev-teaser .s-head h2 { font-size: 2rem; margin-bottom: .2em; }
  .ev-teaser .s-sub { font-size: .9rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .st-bar .st-fact { font-size: .86rem; padding: 7px 12px; border-radius: 14px; }
  .st-bar .st-fact b { padding: 2px 9px; }
  .ev-teaser .journey-track { --cw: 158px; gap: 12px; padding-top: 16px; padding-bottom: 8px; background-position: 0 25px; }
  .ev-teaser .j-dot { width: 12px; height: 12px; margin-bottom: 2px; }
  .ev-teaser .j-year { font-size: .92rem; }
  .ev-teaser .j-pic { aspect-ratio: 16 / 11; border-radius: 12px; }
  .ev-teaser .j-title { font-size: .85rem; line-height: 1.3; }
  .st-foot { margin-top: 12px; gap: 12px; }
  .st-foot .st-inside p { display: none; }
  .st-foot .st-inside ul { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; gap: 6px; }
  .st-foot .st-inside ul::-webkit-scrollbar { display: none; }
  .st-foot .st-inside li { flex: none; }
  .st-foot .btn-story { min-height: 54px; font-size: 1.1rem; }
}
/* phone: bigger timeline pictures, scaled to the screen height so small phones still fit */
@media (max-width: 720px) {
  .ev-teaser .journey-track { --cw: clamp(150px, 24svh, 215px); }
  .ev-teaser .j-pic { aspect-ratio: 4 / 3; }
}
/* phone: "inside the story" pills wrap (no sideways scroll); only very short screens keep one scrolling row */
@media (max-width: 720px) and (min-height: 720px) {
  .st-foot .st-inside ul { flex-wrap: wrap; overflow: visible; }
}

/* ─── Phone: "02 · 2025 memories" = one screen (heading, reel, caption, photos filling the rest) ── */
@media (max-width: 720px) {
  .ev-mem { display: flex; flex-direction: column; height: 100svh; min-height: 560px; padding: calc(var(--bar-h) + 14px) 0 22px; }
  .ev-mem > .s-head { flex: none; margin-bottom: 12px; }
  .ev-mem .s-num { font-size: 5.2rem; top: -.3em; }
  .ev-mem .s-head h2 { font-size: 2rem; margin-bottom: .1em; }
  .ev-mem .s-sub { font-size: .9rem; }
  .ev-mem > .ev-wrap { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; padding: 0 var(--gutter); width: 100%; }
  .ev-mem .carousel { flex: none; margin-top: 0; }
  .ev-mem .slide figcaption { margin-top: 8px; font-size: .85rem; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .ev-mem .car-nav { margin-top: 8px; }
  .ev-mem .mosaic { flex: 1 1 0; min-height: 150px; margin-top: 12px; gap: 8px; grid-template-columns: 1fr 1fr; grid-template-rows: 1.3fr 1fr; }
  .ev-mem .mosaic img { border-radius: 14px; }
  .ev-mem .mosaic img:first-child { grid-column: span 2; grid-row: auto; }
  .ev-mem .mosaic img:nth-child(4) { display: none; }
}

/* ─── Phone: one type scale for the one-screen chapters (01 story, 02 memories) ── */
@media (max-width: 720px) {
  .ev-teaser > .s-head, .ev-mem > .s-head { width: 100%; max-width: none; margin-left: 0; margin-right: 0; padding: 0 var(--gutter); text-align: left; }
  .ev-teaser .s-num, .ev-mem .s-num { font-size: 5.4rem; top: -.32em; left: calc(var(--gutter) - .05em); }
  .ev-teaser .s-head h2, .ev-mem .s-head h2 { font-size: 2.15rem; line-height: 1.2; margin-bottom: .2em; }
  .ev-teaser .s-sub, .ev-mem .s-sub { font-size: 1rem; line-height: 1.55; }
  .st-bar .st-fact { font-size: .95rem; }
  .ev-teaser .j-year { font-size: 1rem; }
  .ev-teaser .j-title { font-size: .95rem; }
  .st-foot .st-inside li { font-size: .88rem; }
  .ev-mem .slide figcaption { font-size: .92rem; }
}

/* phone: one left edge (the gutter) for everything in 01 and 02 */
@media (max-width: 720px) {
  .st-bar, .st-foot, .ev-teaser .journey, .ev-mem > .ev-wrap { max-width: none; width: 100%; margin-left: 0; margin-right: 0; }
  .ev-mem > .ev-wrap { padding: 0 var(--gutter); }
  /* keep 01 within one screen in English too (longer words) */
  .st-foot .st-inside li { font-size: .84rem; padding: 3px 10px; }
  .st-foot .st-inside ul { gap: 5px; }
}
@media (max-width: 720px) and (max-height: 720px) {
  .ev-teaser .journey-track { --cw: 140px; }
  .ev-teaser .s-sub { -webkit-line-clamp: 2; }
}

/* phone: size one-screen sections to the phone's *current* visible height (address bar shown or hidden),
   so the first screen always ends exactly at the flag line and the next section never peeks in */
@media (max-width: 720px) {
  .kp-hero { min-height: 100vh; min-height: 100svh; min-height: 100dvh; }
  .ev-teaser { min-height: 100svh; min-height: 100dvh; }
  .ev-mem { height: 100svh; height: 100dvh; }
  .ev-why { padding-top: 76px; }
}
/* phone: exact visible height measured at page open (see inline script in index.html) */
@media (max-width: 720px) {
  .kp-hero { min-height: var(--app-h, 100svh); height: var(--app-h, auto); }
  .ev-teaser { min-height: var(--app-h, 100svh); }
  .ev-mem { height: var(--app-h, 100svh); }
}

/* ─── Chapter number sits ABOVE the title (not behind it) on the main page ── */
.event .s-head .s-num { position: static; z-index: auto; display: block; margin: 0 0 6px; line-height: .9;
  font-size: clamp(3rem, 2.2rem + 3vw, 5rem); -webkit-text-stroke: 1.5px rgb(244 180 0 / .55); color: transparent; }
@media (max-width: 720px) {
  .event .s-head .s-num { font-size: 2.9rem; margin-bottom: 4px; left: auto; top: auto; }
  .ev-teaser .s-num, .ev-mem .s-num { font-size: 2.9rem; top: auto; left: auto; }
}
/* shorter phones: keep 01 on one screen with the number above the title */
@media (max-width: 720px) and (max-height: 800px) {
  .ev-teaser .s-num, .ev-mem .s-num { font-size: 2.3rem; margin-bottom: 2px; }
  .ev-teaser .s-head h2, .ev-mem .s-head h2 { font-size: 1.9rem; }
  .ev-teaser .s-sub { -webkit-line-clamp: 2; }
  .ev-teaser .journey-track { --cw: 150px; }
  .ev-teaser .j-pic { aspect-ratio: 16 / 11; }
  .st-bar .st-fact { padding: 5px 12px; }
}
/* phone: 01 spreads over the whole screen — number + title at the top of the picture, button at the bottom */
@media (max-width: 720px) {
  .ev-teaser { justify-content: space-between; padding-top: calc(var(--bar-h) + 18px); padding-bottom: 26px; }
  .ev-teaser > .s-head { margin-bottom: 0; }
  .ev-teaser .st-bar { margin-top: auto; margin-bottom: auto; }
  .ev-teaser .st-foot { margin-top: auto; }
}
/* phone: 01 a little higher, with a clear gap before the title */
@media (max-width: 720px) {
  .ev-teaser { padding-top: calc(var(--bar-h) + 6px); }
  .ev-teaser .s-num { margin-bottom: 14px; }
}
@media (max-width: 720px) { .event .ev-teaser > .s-head .s-num { margin-bottom: 14px; } }
/* phone: 02 photos stay inside their own screen (never spill over 03) */
@media (max-width: 720px) {
  .ev-mem .mosaic { grid-template-rows: minmax(0, 1.3fr) minmax(0, 1fr); overflow: hidden; }
  .ev-mem .mosaic img { min-height: 0; height: 100%; }
  .ev-mem { overflow: hidden; }
}

/* ─── Personal invitation line (/?to=Name) ─────────────────────────────── */
.invite { margin: 0 0 10px; font: 700 clamp(1.05rem, .95rem + .6vw, 1.4rem)/1.4 var(--font-head); color: #fff; text-shadow: 0 2px 14px rgb(0 0 0 / .7);
  animation: hero-rise 1.2s .2s cubic-bezier(.2,.7,.2,1) both; }
.invite b { color: var(--gold); font-weight: 800; }
.invite small { display: block; font-size: .8em; font-weight: 600; color: #e6cdb9; }
@media (max-width: 720px) { .invite { font-size: 1rem; margin-bottom: 6px; } }

/* ─── 70 years of a united Kannada land (replaces the text-heavy "Why Rajyotsava?") ── */
.ev-70 { text-align: center; padding-top: clamp(80px, 9vw, 120px); padding-bottom: clamp(70px, 9vw, 120px);
  background: radial-gradient(60% 55% at 50% 40%, rgb(122 20 24 / .45), transparent 70%); }
.s70 { max-width: 880px; margin: 0 auto; }
.s70-kicker { margin: 0 0 6px; color: var(--gold-2); font-weight: 800; letter-spacing: .08em; font-size: .95rem; }
.s70-big { display: inline-flex; align-items: flex-end; gap: 10px; line-height: .85; margin: 0 0 6px; }
.s70-big span { font: 800 clamp(8rem, 5rem + 16vw, 15rem)/.85 var(--font-head); font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #ffe58a 0%, var(--gold) 50%, var(--red, #d2232a) 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 10px 40px rgb(244 180 0 / .35)); }
.s70-big small { font: 800 clamp(1.6rem, 1.2rem + 1.6vw, 2.6rem)/1 var(--font-head); color: #fff; padding-bottom: .5em; }
.ev-70 h2 { font-size: clamp(1.8rem, 1.2rem + 2.4vw, 3rem); margin: 0 0 .4em; color: #fff; }
.s70-text { max-width: 46ch; margin: 0 auto 34px; color: #e6d3c4; font-size: clamp(1rem, .95rem + .3vw, 1.15rem); }
.s70-line { position: relative; list-style: none; margin: 0 auto; padding: 0; max-width: 720px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.s70-line::before { content: ""; position: absolute; left: 16.6%; right: 16.6%; top: 11px; height: 2px; background: linear-gradient(90deg, var(--gold), var(--red, #d2232a)); }
.s70-line li { position: relative; display: grid; justify-items: center; gap: 4px; padding-top: 32px; }
.s70-line li::before { content: ""; position: absolute; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--bg); border: 3px solid var(--gold); }
.s70-line li.now::before { background: var(--gold); box-shadow: 0 0 0 6px rgb(244 180 0 / .2), 0 0 20px var(--gold); }
.s70-line b { font: 800 1.5rem/1 var(--font-head); color: var(--gold); }
.s70-line span { color: #e6d3c4; font-size: .92rem; line-height: 1.35; }
.ev-70 .ev-why-in, .ev-70::before { display: none; }
@media (max-width: 720px) {
  .ev-70 { padding-top: 84px; padding-bottom: 64px; }
  .s70-big span { font-size: 9rem; }
  .s70-line span { font-size: .82rem; }
}
/* 70 section: more room between the "Why Rajyotsava?" label and the big number */
.s70-kicker { margin-bottom: clamp(18px, 2.5vw, 28px); }
.s70-big { margin-top: 8px; }

/* ─── Flat-wise contribution board (towers → flats), like navratri ─────── */
.flat-board { display: grid; gap: 10px; padding-top: 6px; border-top: 1px solid rgb(255 255 255 / .08); }
.flat-board h4 { margin: 6px 0 0; font-size: 1.05rem; }
.fb-legend { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin: 0; color: var(--ink-soft); font-size: .85rem; }
.fb-k { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.fb-k.paid { background: var(--gold); } .fb-k.pending { background: rgb(244 180 0 / .25); border: 1px dashed var(--gold); }
.fb-tower { border: 1px solid var(--line); border-radius: 14px; background: rgb(0 0 0 / .2); margin-bottom: 8px; }
.fb-tower summary { cursor: pointer; list-style: none; padding: 10px 14px; font-weight: 700; font-size: .92rem; display: grid; gap: 6px; }
.fb-tower summary::-webkit-details-marker { display: none; }
.fb-tower summary i { display: block; height: 5px; border-radius: 3px; background: linear-gradient(90deg, var(--gold) var(--p), rgb(255 255 255 / .08) var(--p)); }
.fb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: 6px; padding: 0 14px 14px; }
.fb-flat { padding: 5px 0; border-radius: 8px; text-align: center; font-size: .78rem; font-weight: 700; color: var(--ink-soft); background: rgb(255 255 255 / .04); border: 1px solid rgb(255 255 255 / .08); }
.fb-flat.paid { background: var(--gold); color: #2a1600; border-color: var(--gold); }
.fb-flat.pending { color: var(--gold); border: 1px dashed var(--gold); background: rgb(244 180 0 / .1); }
/* the big 70's glyphs rise above its (tight) line box — give the number real headroom */
.s70-big { line-height: 1; padding-top: .12em; margin-top: 0; }
.s70-big span { line-height: 1; }
.s70-kicker { margin-bottom: clamp(10px, 1.5vw, 16px); }
.give-link { text-decoration: none; color: inherit; }
.give-link p { margin: 0; color: #e0ccbd; }
.give-link .btn-story { justify-content: center; }
/* 70 section: the number itself is centred on the page; "ವರ್ಷ/years" hangs off its right edge */
.s70-big { position: relative; display: inline-block; }
.s70-big small { position: absolute; left: 100%; bottom: 0; margin-left: 8px; padding-bottom: .55em; white-space: nowrap; }
/* 70 section: heading reads as the second half of "70 years … of a united Kannada land" */
.ev-70 h2 { margin-top: 4px; }
/* 70 section as question → answer → number → what it counts */
.ev-70 h2 { margin: 0 0 10px; color: #fff; }
.s70-kicker { margin-bottom: 8px; }
.s70-big { margin: 0; }
.s70-cap { margin: 2px 0 18px; font: 800 clamp(1rem, .9rem + .5vw, 1.25rem)/1.3 var(--font-head); color: var(--gold-2); letter-spacing: .04em; }

/* ─── Phone memory diet (iOS Safari reloads the tab when a page uses too much memory) ──
   1) a hero slide that is not on screen is visibility:hidden → not painted, no GPU layer
   2) no permanent will-change layers
   3) no backdrop blur on phones (each blur is a costly off-screen buffer) */
@keyframes kp-fade { 0% { opacity: 0; visibility: visible; } 3.125% { opacity: 1; } 12.5% { opacity: 1; } 15.625% { opacity: 0; visibility: visible; } 15.7%, 100% { opacity: 0; visibility: hidden; } }
.kp-slides figure { visibility: hidden; }
.kp-slides figure:first-child { visibility: visible; }
.kp-slides img { will-change: auto; }
@media (max-width: 720px) {

  *, *::before, *::after { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
  .ev-count .cd-grid div, .chip, .kp-slides figcaption, .hero-memory { background-color: rgb(20 6 6 / .55); }
  .story-teaser::before { animation: none; }
}
@media (prefers-reduced-motion: reduce) { .kp-slides figure:first-child { visibility: visible; } }
/* 70 section: why (every year) → what makes this year special */
.ev-70 .s70-text { margin: 0 auto 26px; }
.s70-special { display: inline-block; margin: 0 0 4px; padding: 4px 14px; border-radius: 999px; background: rgb(244 180 0 / .14); border: 1px solid rgb(244 180 0 / .45);
  color: var(--gold-2); font: 800 .9rem/1.3 var(--font-head); letter-spacing: .03em; }
.s70-cap { margin: 0 0 26px; }
/* 02 photos: keep faces in frame (crop from the top, not the middle) */
.mosaic img:nth-child(1) { object-position: 50% 40%; }
.mosaic img:nth-child(2) { object-position: 50% 12%; }
.mosaic img:nth-child(3) { object-position: 50% 8%; }
.mosaic img:nth-child(4) { object-position: 50% 30%; }
/* phones: the 70 box stacks vertically — nothing hangs off the edge */
@media (max-width: 720px) {
  .s70-special { margin-bottom: 14px; }
  .s70-big { display: block; padding-top: 0; }
  .s70-big span { display: block; font-size: 8.5rem; line-height: .95; }
  .s70-big small { position: static; display: block; margin: 2px 0 0; padding: 0; font-size: 1.7rem; line-height: 1.2; }
  .s70-cap { margin-top: 6px; }
}
/* the "this year is special" badge always sits on its own line, centred above the 70 */
.s70-special { display: table; margin-left: auto; margin-right: auto; margin-bottom: 12px; }

/* ─── What people say (scrolling testimonials) ────────────────────────── */
.ev-voices { padding-bottom: clamp(56px, 8vw, 90px); overflow: hidden; }
.vo-rail { position: relative; margin: 0 calc(-1 * var(--gutter)); -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.vo-track { list-style: none; margin: 0; padding: 8px 0; display: flex; gap: 16px; width: max-content; animation: vo-move var(--vo-dur, 60s) linear infinite; }
.vo-rail:hover .vo-track, .vo-rail:active .vo-track { animation-play-state: paused; }
@keyframes vo-move { to { transform: translateX(-50%); } }
.vo-track li { flex: none; width: clamp(260px, 72vw, 360px); display: flex; flex-direction: column; gap: 12px; padding: 22px 22px 18px; border-radius: 20px;
  background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid rgb(255 255 255 / .07); border-top: 4px solid var(--gold); }
.vo-track li:nth-child(even) { border-top-color: var(--red, #d2232a); }
.vo-track p { margin: 0; color: #f3e2d3; line-height: 1.6; }
.vo-track p::before { content: "“"; color: var(--gold); font: 800 1.8rem/0 var(--font-head); margin-right: 3px; vertical-align: -.4em; }
.vo-track .who { margin-top: auto; color: var(--ink-soft); font-size: .9rem; }
.vo-track .who b { color: var(--gold-2); }
.vo-empty { max-width: var(--wide); margin: 0 auto; padding: 0 var(--gutter); color: var(--ink-soft); }
.vo-empty[hidden] { display: none; }
.vo-cta { max-width: var(--wide); margin: 22px auto 0; padding: 0 var(--gutter); }
@media (max-width: 720px) { .vo-cta .btn-story { width: 100%; justify-content: center; } }
@media (prefers-reduced-motion: reduce) { .vo-track { animation: none; } .vo-rail { overflow-x: auto; } }

/* ─── 02b Memories 2022: a card that opens the film on Google Drive ─────── */
.ev-mem22 { padding-top: 0; }
.film-card { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--r); color: #fff; text-decoration: none;
  background: radial-gradient(120% 90% at 30% 20%, rgb(255 255 255 / .10), transparent 60%), linear-gradient(160deg, #f4b400 0%, #f4b400 46%, #d2232a 54%, #8f1217 100%);
  box-shadow: 0 30px 60px -24px rgb(0 0 0 / .8); isolation: isolate; }
.film-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(20 6 6 / .15), rgb(20 6 6 / .65)); }
.fc-year { position: absolute; left: 4%; top: 2%; font: 800 clamp(4.5rem, 3rem + 7vw, 9rem)/1 var(--font-head); letter-spacing: -.03em; color: rgb(255 255 255 / .22); }
.fc-play { display: grid; place-items: center; width: clamp(64px, 9vw, 92px); aspect-ratio: 1; border-radius: 50%; background: rgb(255 255 255 / .92); box-shadow: 0 10px 30px rgb(0 0 0 / .35); transition: transform .25s; }
.fc-play svg { width: 42%; fill: #a8161c; margin-left: 6%; }
.fc-text { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; padding: 14px 18px; }
.fc-text b { font: 700 1.15rem/1.3 var(--font-head); }
.fc-text span { font-size: .9rem; opacity: .9; }
.film-card:hover .fc-play, .film-card:focus-visible .fc-play { transform: scale(1.08); }
.fc-more { display: inline-block; margin-top: 12px; color: var(--ink-soft); font-weight: 600; text-underline-offset: 3px; }
.fc-more:hover { color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .fc-play { transition: none; } .film-card:hover .fc-play { transform: none; } }
@media (max-width: 720px) {
  .ev-mem.ev-mem22 { height: auto; min-height: 0; padding-top: 8px; padding-bottom: 40px; }
  .fc-text { padding: 10px 14px; } .fc-text b { font-size: 1rem; } .fc-text span { font-size: .8rem; }
}
