/*
Theme Name: IGNISIA 2.0
Description: Event site for IGNISIA 2.0 — Renaissance, The Academic Club, Government Thiruvarur Medical College. Pages are built from the IGNISIA block patterns.
Author: ekit.in
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 8.1
Text Domain: ignisia2
*/

/* =========================================================================
   1. Tokens
   ========================================================================= */
:root {
    color-scheme: dark only; /* never let a browser dark mode recolour the site */
    --night: #07080c;
    --stone: #11131a;
    --stone-2: #181b24;
    --stone-3: #232734;
    --line: rgba(255, 196, 107, .16);
    --line-2: rgba(255, 196, 107, .32);
    --fire: #ff5a1f;
    --ember: #ff8a3d;
    --gold: #ffc46b;
    --bone: #f3e8d6;
    --ash: #a59e94;
    --fire-grad: linear-gradient(135deg, #ff3d12 0%, #ff6a1f 45%, #ffb347 100%);
    --gold-grad: linear-gradient(180deg, #fff1cf 0%, #ffc46b 45%, #e0782a 100%);
    --r: 14px;
    --wrap: 1160px;
    --gut: clamp(16px, 4vw, 28px);
    --head-h: 64px;
    --f-display: "Cinzel", "Inter", Georgia, serif;
    --f-condensed: "Oswald", "Inter", "Arial Narrow", sans-serif;
    --f-wordmark: "Anton", "Oswald", "Arial Narrow", sans-serif;
    /* worn-print speckle, drawn over the wordmark gradient (night-coloured flecks) */
    --grunge: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 .03 0 0 0 0 .03 0 0 0 0 .05 14 0 0 0 -9.6'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    --f-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --f-tamil: "Noto Serif Tamil", "Latha", serif;
    --shadow: 0 18px 50px -18px rgba(0, 0, 0, .8);
    --glow: 0 0 0 1px rgba(255, 138, 61, .35), 0 10px 40px -8px rgba(255, 90, 31, .55);
}

/* =========================================================================
   2. Base
   ========================================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + 12px); }
body {
    margin: 0;
    background:
        radial-gradient(1200px 600px at 85% -10%, rgba(255, 90, 31, .10), transparent 60%),
        radial-gradient(900px 500px at -10% 40%, rgba(255, 196, 107, .05), transparent 60%),
        var(--night);
    color: var(--bone);
    font: 400 16px/1.65 var(--f-body);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
body::before { /* stone grain */
    content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
    background: url("assets/img/texture-stone.webp") center / 520px repeat; opacity: .16; mix-blend-mode: screen;
}
img, svg, video, canvas { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #ffe0a3; }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 700; line-height: 1.15; margin: 0 0 .6em; color: #fff4e2; letter-spacing: .02em; }
h1 { font-size: clamp(2.1rem, 7vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 5vw, 2.4rem); }
h3 { font-size: clamp(1.15rem, 3.4vw, 1.4rem); }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; margin: 0 0 1em; }
li { margin: .3em 0; }
strong, b { color: #fff4e2; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--fire); color: #fff; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); }
.rs { font-family: var(--f-body); font-weight: inherit; }
.ta, .tamil { font-family: var(--f-tamil); }

/* Content flow: patterns are full-bleed, so the page itself adds no width. */
.site-main { min-height: 60vh; }
.entry > * { margin-top: 0; }
.ig-wrap, .entry > :not(.alignfull):not(.ig-section):not(.ig-hero):not(.ig-page-hero) {
    width: min(100% - 2 * var(--gut), var(--wrap)); margin-inline: auto;
}
.ig-section { position: relative; padding: clamp(52px, 9vw, 96px) 0; }
.ig-section.is-tight { padding: clamp(28px, 5vw, 48px) 0; }
.ig-section > .ig-wrap > :last-child { margin-bottom: 0; }

/* =========================================================================
   3. Header + navigation
   ========================================================================= */
.site-head { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--head-h); }
/* The blur lives on a pseudo-element: backdrop-filter on the header itself would
   trap any position:fixed child (the old mobile menu bug on inner pages). */
.site-head::before {
    content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .3s;
    background: rgba(7, 8, 12, .8); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3);
    box-shadow: 0 1px 0 var(--line);
}
.site-head.scrolled::before, body:not(.home) .site-head::before { opacity: 1; }
body.admin-bar .site-head { top: 32px; }
@media (max-width: 782px) { body.admin-bar .site-head { top: 46px; } body.admin-bar.scrolled-past-bar .site-head { top: 0; } }
.site-head .ig-wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.brand img { width: 38px; height: 38px; filter: drop-shadow(0 0 10px rgba(255, 90, 31, .6)); }
.brand-name { font: 400 1.3rem/1 var(--f-wordmark); letter-spacing: .06em; text-transform: uppercase; }
.brand-name em { font-style: normal; color: var(--gold); }
.brand-sub { display: block; font: 600 .62rem/1.2 var(--f-body); letter-spacing: .16em; text-transform: uppercase; color: var(--ash); margin-top: 3px; }

.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a { color: var(--bone); text-decoration: none; font: 600 .82rem/1 var(--f-body); letter-spacing: .1em; text-transform: uppercase; padding: 10px 12px; border-radius: 8px; }
.site-nav a:hover, .site-nav .current-menu-item > a { color: var(--gold); }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: contents; }
.site-nav li { margin: 0; }
.site-nav .nav-cta { margin-left: 8px; }
.nav-toggle { display: none; }

@media (max-width: 899px) {
    .nav-toggle {
        display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 12px;
        background: rgba(7, 8, 12, .5); color: var(--bone); cursor: pointer; position: relative; z-index: 2;
    }
    .nav-toggle span { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .3s, opacity .3s; position: absolute; }
    .nav-toggle span:nth-child(1) { transform: translateY(-6px); }
    .nav-toggle span:nth-child(3) { transform: translateY(6px); }
    .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: rotate(45deg); }
    .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
    .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: rotate(-45deg); }
    .site-nav { display: none; }
    body.nav-open { overflow: hidden; }
}

/* Mobile side drawer (outside the header) */
.drawer-scrim { position: fixed; inset: 0; z-index: 60; background: rgba(3, 4, 6, .6); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; backdrop-filter: blur(2px); }
.drawer {
    position: fixed; top: 0; right: 0; bottom: 0; z-index: 61; width: min(86vw, 360px); display: flex; flex-direction: column;
    background: radial-gradient(420px 300px at 100% 100%, rgba(255, 90, 31, .2), transparent 70%), linear-gradient(180deg, #14161e, #0a0b10);
    border-left: 1px solid var(--line-2); box-shadow: -30px 0 60px rgba(0, 0, 0, .6);
    transform: translateX(105%); transition: transform .38s cubic-bezier(.2, .8, .2, 1); visibility: hidden;
    padding: calc(14px + env(safe-area-inset-top)) 18px calc(18px + env(safe-area-inset-bottom)); overflow-y: auto; overscroll-behavior: contain;
}
body.nav-open .drawer { transform: none; visibility: visible; }
body.nav-open .drawer-scrim { opacity: 1; visibility: visible; }
@media (min-width: 900px) { .drawer, .drawer-scrim { display: none; } }
.drawer-top { display: flex; align-items: center; justify-content: space-between; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.drawer-close { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line-2); background: transparent; color: var(--bone); font-size: 1.4rem; line-height: 1; cursor: pointer; }
.drawer-links { list-style: none; margin: 0; padding: 0; }
.drawer-links li { margin: 0; }
.drawer-links a { display: flex; align-items: center; gap: 12px; padding: 13px 6px; color: var(--bone); text-decoration: none; font: 700 1.08rem/1.2 var(--f-display); letter-spacing: .03em; border-bottom: 1px solid rgba(255, 196, 107, .07); }
.drawer-links a::after { content: "›"; margin-left: auto; color: var(--ember); font: 400 1.3rem/1 var(--f-body); }
.drawer-links a:active, .drawer-links a[aria-current="page"] { color: var(--gold); }
.drawer-label { font: 700 .66rem/1 var(--f-body); letter-spacing: .24em; text-transform: uppercase; color: var(--ember); margin: 20px 6px 6px; }
.drawer-events { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; list-style: none; margin: 0; padding: 0; }
.drawer-events li { margin: 0; }
.drawer-events a { display: flex; align-items: flex-end; min-height: 64px; padding: 8px 10px; border-radius: 12px; text-decoration: none; color: #fff; font: 700 .82rem/1.15 var(--f-body);
    background: linear-gradient(180deg, rgba(7, 8, 12, .1), rgba(7, 8, 12, .85)), var(--stone-2); border: 1px solid var(--line); }
/* thumbnails load only after the menu is first opened (JS adds .drawer-ready) */
.drawer-ready .drawer-events a { background: linear-gradient(180deg, rgba(7, 8, 12, .1), rgba(7, 8, 12, .85)), var(--img) center / cover; }
.drawer-events a[aria-current="page"] { border-color: var(--ember); box-shadow: 0 0 0 1px var(--ember); }
.drawer-cta { margin-top: 18px; display: grid; gap: 8px; }
.drawer-foot { margin-top: auto; padding-top: 18px; font-size: .8rem; color: var(--ash); }
.drawer-foot a { color: var(--gold); }

/* =========================================================================
   4. Buttons (core/button styles: fire, ghost, call)
   ========================================================================= */
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 1em; }
.wp-block-buttons.is-content-justification-center { justify-content: center; }
.wp-block-button__link, .btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 24px;
    font: 700 .86rem/1.1 var(--f-body); letter-spacing: .12em; text-transform: uppercase; text-decoration: none;
    border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .04); color: var(--bone);
    cursor: pointer; transition: transform .2s, box-shadow .25s, background .25s, color .2s; white-space: nowrap;
}
.wp-block-button__link:hover, .btn:hover { transform: translateY(-2px); color: #fff; }
.is-style-fire .wp-block-button__link, .btn-fire {
    background: var(--fire-grad); border-color: transparent; color: #1a0700; box-shadow: var(--glow); position: relative; overflow: hidden;
}
.is-style-fire .wp-block-button__link::after, .btn-fire::after { /* sheen */
    content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%);
    transform: translateX(-120%); animation: sheen 3.6s ease-in-out infinite;
}
.is-style-fire .wp-block-button__link:hover, .btn-fire:hover { color: #000; box-shadow: 0 0 0 1px rgba(255, 196, 107, .6), 0 14px 50px -6px rgba(255, 90, 31, .8); }
.is-style-ghost .wp-block-button__link, .btn-ghost { background: rgba(7, 8, 12, .35); border-color: rgba(255, 196, 107, .5); color: var(--gold); backdrop-filter: blur(6px); }
.is-style-call .wp-block-button__link {
    min-height: 44px; padding: 8px 16px 8px 12px; text-transform: none; letter-spacing: 0; font-weight: 600; font-size: .92rem;
    background: var(--stone-2); border-color: var(--line);
}
.is-style-call .wp-block-button__link::before {
    content: ""; width: 26px; height: 26px; border-radius: 50%; flex: none;
    background: var(--fire-grad) center / 14px no-repeat;
    -webkit-mask: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%231a0700'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2c.3-.3.7-.4 1-.2 1.1.4 2.3.6 3.6.6.6 0 1 .4 1 1V20c0 .6-.4 1-1 1A17 17 0 0 1 3 4c0-.6.4-1 1-1h3.5c.6 0 1 .4 1 1 0 1.3.2 2.5.6 3.6.1.3 0 .7-.2 1z'/%3E%3C/svg%3E"), var(--fire-grad);
}
.btn-block { width: 100%; }
@keyframes sheen { 0%, 60% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }

/* =========================================================================
   5. Headings (core/heading styles: plaque, flame, kicker)
   ========================================================================= */
.is-style-plaque {
    display: flex; align-items: center; justify-content: center; gap: 14px; text-align: center;
    font-size: clamp(1.5rem, 5.4vw, 2.3rem); text-transform: uppercase; letter-spacing: .08em;
    background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
    filter: drop-shadow(0 2px 14px rgba(255, 138, 61, .25));
}
.is-style-plaque::before, .is-style-plaque::after {
    content: ""; flex: 1 1 0; max-width: 120px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold));
}
.is-style-plaque::after { transform: scaleX(-1); }
.is-style-flame { font-family: var(--f-condensed); text-transform: uppercase; letter-spacing: .04em; font-size: clamp(2.2rem, 9vw, 4.4rem); line-height: .95;
    background: var(--fire-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.is-style-kicker, .ig-kicker {
    font: 700 .74rem/1.3 var(--f-body) !important; letter-spacing: .28em; text-transform: uppercase; color: var(--ember) !important;
    margin-bottom: .8em; background: none; -webkit-text-fill-color: currentColor;
}
.has-text-align-center { text-align: center; }

/* =========================================================================
   6. Paragraph + list styles
   ========================================================================= */
.is-style-lead { font-size: clamp(1.06rem, 3vw, 1.22rem); color: #f7ecdb; line-height: 1.6; }
.is-style-quote {
    font: italic 600 clamp(1.1rem, 3.4vw, 1.35rem)/1.45 "Cormorant Garamond", Georgia, serif; color: var(--gold); text-align: center;
    padding: .6em 1em; position: relative;
}
.is-style-quote::before, .is-style-quote::after { content: "✦"; color: var(--ember); font-style: normal; font-size: .7em; margin: 0 .7em; vertical-align: middle; }
.is-style-chip {
    display: inline-flex; align-items: center; gap: 8px; margin: 0 6px 8px 0; padding: 7px 14px; border-radius: 999px;
    background: rgba(255, 138, 61, .1); border: 1px solid rgba(255, 138, 61, .35); color: #ffd9b5; font-size: .86rem; font-weight: 600;
}
.ig-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 1em; }
.ig-chips > .is-style-chip { margin: 0; }
.ig-chips.is-content-justification-center { justify-content: center; }

.is-style-runes { list-style: none; padding-left: 0; }
.is-style-runes li { position: relative; padding-left: 26px; }
.is-style-runes li::before {
    content: ""; position: absolute; left: 2px; top: .38em; width: 13px; height: 16px; background: var(--fire-grad);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 30'%3E%3Cpath d='M12 0c3 6 10 10 10 18a10 10 0 0 1-20 0c0-4 2-7 4-9 0 3 2 5 4 5-2-5 0-10 2-14z'/%3E%3C/svg%3E") center / contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 30'%3E%3Cpath d='M12 0c3 6 10 10 10 18a10 10 0 0 1-20 0c0-4 2-7 4-9 0 3 2 5 4 5-2-5 0-10 2-14z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.is-style-steps { list-style: none; padding-left: 0; counter-reset: s; }
.is-style-steps li { counter-increment: s; position: relative; padding: 4px 0 4px 44px; min-height: 32px; }
.is-style-steps li::before {
    content: counter(s); position: absolute; left: 0; top: 2px; width: 30px; height: 30px; border-radius: 50%;
    display: grid; place-items: center; font: 700 .85rem/1 var(--f-condensed); color: #1a0700; background: var(--fire-grad);
}

/* =========================================================================
   7. Panels (core/group styles: panel, glass, prize, note)
   ========================================================================= */
.is-style-panel, .is-style-glass {
    position: relative; border-radius: var(--r); padding: clamp(20px, 5vw, 36px);
    background: linear-gradient(180deg, rgba(35, 39, 52, .9), rgba(17, 19, 26, .94)); box-shadow: var(--shadow);
    border: 1px solid var(--line); margin-bottom: 20px;
}
.is-style-panel::before { /* corner filigree */
    content: ""; position: absolute; inset: 8px; border-radius: calc(var(--r) - 6px); pointer-events: none;
    border: 1px solid rgba(255, 196, 107, .08);
    background:
        linear-gradient(var(--gold), var(--gold)) top left / 18px 1px no-repeat,
        linear-gradient(var(--gold), var(--gold)) top left / 1px 18px no-repeat,
        linear-gradient(var(--gold), var(--gold)) bottom right / 18px 1px no-repeat,
        linear-gradient(var(--gold), var(--gold)) bottom right / 1px 18px no-repeat;
    opacity: .55;
}
.is-style-glass { background: rgba(14, 16, 22, .55); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.is-style-panel > :last-child, .is-style-glass > :last-child { margin-bottom: 0; }
.is-style-panel h3, .is-style-glass h3 { font-size: 1.02rem; text-transform: uppercase; letter-spacing: .12em; color: var(--gold); margin-top: 1.4em; }
.is-style-panel h3:first-child, .is-style-glass h3:first-child { margin-top: 0; }

.is-style-prize {
    position: relative; overflow: hidden; text-align: center; border-radius: var(--r); padding: 22px 20px; margin-bottom: 20px;
    background: radial-gradient(120% 140% at 50% 120%, rgba(255, 90, 31, .45), transparent 60%), linear-gradient(180deg, #1d1410, #120c09);
    border: 1px solid rgba(255, 138, 61, .45); box-shadow: 0 0 40px -10px rgba(255, 90, 31, .5) inset, var(--shadow);
}
.is-style-prize p { margin: 0; }
.is-style-prize .ig-prize-label { font: 700 .74rem/1 var(--f-body); letter-spacing: .28em; text-transform: uppercase; color: var(--ember); }
.is-style-prize .ig-prize-amount, .ig-big-number {
    font: 700 clamp(2.4rem, 11vw, 3.6rem)/1.05 var(--f-condensed); margin: 6px 0 2px;
    background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.is-style-prize .ig-prize-amount .rs, .ig-big-number .rs { font-family: var(--f-condensed); }
.is-style-note {
    border-left: 3px solid var(--fire); background: rgba(255, 90, 31, .08); padding: 14px 18px; border-radius: 0 10px 10px 0; margin-bottom: 20px;
}
.is-style-note > :last-child { margin-bottom: 0; }

/* =========================================================================
   8. HERO
   ========================================================================= */
.ig-hero {
    position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; isolation: isolate;
    padding: calc(var(--head-h) + 24px) 0 clamp(36px, 7vh, 72px);
}
.ig-hero .ig-hero-bg { position: absolute; inset: 0; z-index: -2; margin: 0; }
.ig-hero .ig-hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; animation: heroZoom 26s ease-in-out infinite alternate; }
.ig-hero .ig-hero-bg.is-wide { display: none; }
@media (min-width: 760px) {
    .ig-hero { align-items: center; }
    .ig-hero .ig-hero-bg.is-wide { display: block; }
    .ig-hero .ig-hero-bg.is-tall { display: none; }
}
.ig-hero::before { /* legibility veil */
    content: ""; position: absolute; inset: 0; z-index: -1;
    background:
        linear-gradient(180deg, rgba(7, 8, 12, .55) 0%, rgba(7, 8, 12, 0) 22%, rgba(7, 8, 12, .1) 45%, rgba(7, 8, 12, .88) 78%, var(--night) 100%);
}
@media (min-width: 760px) {
    .ig-hero::before { background: radial-gradient(ellipse 62% 72% at 50% 52%, rgba(7, 8, 12, .78) 0%, rgba(7, 8, 12, .5) 55%, rgba(7, 8, 12, .15) 100%), linear-gradient(180deg, rgba(7, 8, 12, .5), transparent 20%, transparent 75%, var(--night)); }
}
.ig-hero .ig-embers { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
.ig-hero .ig-hero-in { position: relative; text-align: center; }
@media (min-width: 760px) { .ig-hero .ig-hero-in { width: 100%; max-width: 1000px; margin-inline: auto; padding-inline: var(--gut); } }
.ig-college { font: 700 clamp(1.15rem, 5.4vw, 1.75rem)/1.22 var(--f-display); letter-spacing: .03em; margin: 14px 0 8px;
    background: linear-gradient(180deg, #fff6e2 0%, #ffd58a 55%, #f0a24a 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
    filter: drop-shadow(0 2px 10px rgba(0, 0, 0, .85)); text-wrap: balance; }
.ig-presents { font: 600 clamp(.62rem, 2.6vw, .74rem)/1.6 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: #e9dcc6; margin-bottom: 4px; }
.ig-presents strong { color: var(--gold); }
.ig-wordmark {
    font: 400 clamp(3.6rem, 18vw, 9rem)/.95 var(--f-wordmark) !important; white-space: nowrap; letter-spacing: .02em; text-transform: uppercase; margin: .5em 0 .08em !important;
    background: var(--grunge), linear-gradient(180deg, #fff7e6 0%, #ffd38a 38%, #ff7a2a 70%, #c8360f 100%); background-size: 260px 260px, 100% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
    filter: drop-shadow(0 0 22px rgba(255, 90, 31, .55)) drop-shadow(0 4px 2px rgba(0, 0, 0, .6));
    animation: flicker 5s infinite;
}
.ig-wordmark em { font-style: normal; display: inline-block; background: var(--grunge), var(--gold-grad); background-size: 260px 260px, 100% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; }
.ig-wm-i { position: relative; display: inline-block; }
.ig-wm-i .ig-fire { position: absolute; left: 50%; bottom: 84%; width: .62em; height: auto; max-width: none; transform: translateX(-50%); pointer-events: none;
    filter: drop-shadow(0 0 12px rgba(255, 110, 30, .7)); }
@media (prefers-reduced-motion: reduce) { .ig-wordmark { animation: none; } }
.ig-tamil { font: 700 clamp(1rem, 3.6vw, 1.2rem)/1.4 var(--f-tamil); color: var(--gold); margin-bottom: .6em; }
.ig-hero .ig-chips { justify-content: center; margin-bottom: 10px; }
.ig-hero .is-style-chip { background: rgba(7, 8, 12, .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
@media (min-width: 760px) { .ig-hero .ig-chips, .ig-hero .wp-block-buttons { justify-content: center !important; } }
.ig-hero .ig-meta p { margin: 0; }
.ig-hero .wp-block-buttons { justify-content: center; }
@keyframes heroZoom { from { transform: scale(1.02); } to { transform: scale(1.1) translateY(-1.5%); } }
@keyframes flicker { 0%, 100% { opacity: 1; } 46% { opacity: 1; } 47% { opacity: .86; } 48% { opacity: 1; } 72% { opacity: .95; } }

/* scroll cue */
.ig-scroll-cue { display: none; }
@media (min-width: 760px) {
    .ig-scroll-cue { display: block; position: absolute; left: 50%; bottom: 22px; width: 24px; height: 38px; border: 2px solid rgba(255, 196, 107, .5); border-radius: 14px; transform: translateX(-50%); }
    .ig-scroll-cue::after { content: ""; position: absolute; left: 50%; top: 7px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--ember); animation: cue 1.8s infinite; }
}
@keyframes cue { 0% { opacity: 0; transform: translateY(-3px); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* Page hero (inner pages) */
.ig-page-hero { position: relative; overflow: hidden; isolation: isolate; padding: calc(var(--head-h) + clamp(60px, 16vw, 150px)) 0 clamp(28px, 6vw, 56px); }
.ig-page-hero .ig-hero-bg { position: absolute; inset: 0; z-index: -2; margin: 0; }
.ig-page-hero .ig-hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.ig-page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(7, 8, 12, .4), rgba(7, 8, 12, .25) 35%, rgba(7, 8, 12, .9) 82%, var(--night)); }
.ig-page-hero h1 { font-size: clamp(2.3rem, 10vw, 4.4rem); text-transform: uppercase; margin-bottom: .15em; text-shadow: 0 4px 30px rgba(0, 0, 0, .7); }
.ig-page-hero .ig-sub { font: 600 clamp(.85rem, 2.8vw, 1rem)/1.4 var(--f-body); letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }

/* =========================================================================
   9. Countdown  [ignisia_countdown]
   ========================================================================= */
.ig-countdown { display: inline-flex; flex-direction: column; align-items: center; gap: 8px; margin: 4px 0 20px; }

.ig-countdown-label { font: 600 .7rem/1 var(--f-body); letter-spacing: .26em; text-transform: uppercase; color: var(--ash); }
.ig-countdown-grid { display: grid; grid-template-columns: repeat(4, minmax(62px, 1fr)); gap: 8px; }
.ig-countdown-grid > span {
    display: flex; flex-direction: column; align-items: center; padding: 10px 6px 8px; border-radius: 12px;
    background: rgba(10, 11, 16, .6); border: 1px solid var(--line); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.ig-countdown b { font: 700 clamp(1.6rem, 7vw, 2.1rem)/1 var(--f-condensed); color: #fff1d6; font-variant-numeric: tabular-nums; }
.ig-countdown i { font: 600 .6rem/1 var(--f-body); letter-spacing: .18em; text-transform: uppercase; color: var(--ember); font-style: normal; margin-top: 5px; }
.ig-countdown.is-live .ig-countdown-grid { display: none; }

/* =========================================================================
   10. Gateway tabs + event cards
   ========================================================================= */
/* Sticky jump bar: all three tracks are visible; this just jumps + shows where you are */
.ig-jump { display: grid !important; grid-auto-flow: column; grid-auto-columns: 1fr; /* equal halves for 2 tabs, thirds for 3 */ gap: 6px !important; padding: 6px; border-radius: 999px;
    background: rgba(17, 19, 26, .88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--line);
    max-width: 520px; margin: 0 auto 30px !important; position: sticky; top: calc(var(--head-h) + 8px); z-index: 5; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .8); }
.ig-jump:not(:has(> :nth-child(3))) { max-width: 380px; }
.ig-jump .wp-block-button { width: 100%; margin: 0 !important; }
.ig-jump .wp-block-button__link { width: 100%; min-height: 40px; padding: 8px 6px; font-size: .7rem; letter-spacing: .1em; border: 0; background: transparent; color: var(--ash); }
.ig-jump .wp-block-button__link:hover { transform: none; color: var(--gold); }
.ig-jump .is-active .wp-block-button__link { background: var(--fire-grad); color: #1a0700; box-shadow: var(--glow); }

.ig-track { margin: 0 0 clamp(40px, 8vw, 72px) !important; scroll-margin-top: 62px; } /* adds to html scroll-padding-top: a tapped track lands just below the sticky jump bar */
.ig-track:last-child { margin-bottom: 0 !important; }
.ig-track-head { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: end; margin-bottom: 18px; padding-bottom: 12px; border-bottom: 1px solid var(--line); position: relative; }
.ig-track-head::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 90px; height: 2px; background: var(--fire-grad); box-shadow: 0 0 10px var(--fire); }
.ig-track-head p, .ig-track-head h3 { margin: 0; }
.ig-track-no { grid-row: span 2; font: 700 clamp(2.8rem, 12vw, 4rem)/.85 var(--f-condensed); background: var(--fire-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ig-track-head h3 { font-size: clamp(1.35rem, 5.4vw, 1.9rem); text-transform: uppercase; letter-spacing: .05em; }
.ig-track-sub { font-size: .86rem; color: var(--ash); }

.ig-cards { display: grid; gap: 16px; grid-template-columns: 1fr; margin-bottom: 8px; }
@media (min-width: 560px) { .ig-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .ig-cards { grid-template-columns: repeat(3, 1fr); gap: 22px; } }
/* Phones: swipe through cards like a deck */
@media (max-width: 559px) {
    .ig-cards.is-swipe {
        grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 82%; overflow-x: auto; scroll-snap-type: x mandatory;
        margin-inline: calc(-1 * var(--gut)); padding: 4px var(--gut) 14px; scrollbar-width: none; -webkit-overflow-scrolling: touch;
    }
    .ig-cards.is-swipe::-webkit-scrollbar { display: none; }
    .ig-cards.is-swipe > .ig-card { scroll-snap-align: center; }
}
.ig-card {
    position: relative; isolation: isolate; overflow: hidden; border-radius: var(--r); aspect-ratio: 4 / 5; display: flex; flex-direction: column; justify-content: flex-end;
    padding: 20px !important; margin: 0 !important; background: var(--stone); border: 1px solid var(--line); box-shadow: var(--shadow);
    transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s, border-color .35s;
}
.ig-card:hover { transform: translateY(-6px); border-color: rgba(255, 138, 61, .55); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .9), 0 0 40px -12px rgba(255, 90, 31, .5); }
.ig-card > .wp-block-image { position: absolute; inset: 0; z-index: -2; margin: 0; }
.ig-card > .wp-block-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.ig-card:hover > .wp-block-image img { transform: scale(1.06); }
.ig-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(7, 8, 12, 0) 30%, rgba(7, 8, 12, .7) 62%, rgba(7, 8, 12, .96) 100%); }
.ig-card .ig-card-type { position: absolute; top: 14px; left: 14px; margin: 0; padding: 5px 11px; border-radius: 999px; font: 700 .64rem/1 var(--f-body); letter-spacing: .18em; text-transform: uppercase; background: rgba(7, 8, 12, .65); border: 1px solid var(--line-2); color: var(--gold); backdrop-filter: blur(6px); }
.ig-card h3 { font-size: clamp(1.45rem, 5.6vw, 1.75rem); text-transform: uppercase; margin: 0 0 2px; color: #fff; text-shadow: 0 2px 16px rgba(0, 0, 0, .8); }
.ig-card h3 a { color: inherit; text-decoration: none; }
.ig-card h3 a::after { content: ""; position: absolute; inset: 0; z-index: 2; } /* whole card is the link */
.ig-card .ig-card-tag { font: 600 .78rem/1.3 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--ember); margin: 0 0 10px; }
.ig-card .ig-card-meta { display: flex; justify-content: space-between; gap: 10px; align-items: center; margin: 0; padding-top: 10px; border-top: 1px solid rgba(255, 196, 107, .2); font-size: .84rem; color: #e8dcc8; }
.ig-card .ig-card-meta strong { color: var(--gold); font: 700 1.05rem/1 var(--f-condensed); letter-spacing: .02em; }
.ig-card .ig-card-go { position: absolute; right: 16px; top: 14px; margin: 0; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--fire-grad); color: #1a0700; font-weight: 800; box-shadow: var(--glow); transition: transform .3s; }
.ig-card:hover .ig-card-go { transform: rotate(-45deg); }

/* =========================================================================
   11. Stats strip + timeline
   ========================================================================= */
.ig-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 760px) { .ig-stats { grid-template-columns: repeat(2, 1fr); gap: 18px; max-width: 640px; margin-inline: auto !important; } }
.ig-stat { text-align: center; padding: 18px 10px !important; border-radius: var(--r); background: var(--stone); border: 1px solid var(--line); margin: 0 !important; }
.ig-stat p { margin: 0; }
.ig-stat .ig-big-number { font-size: clamp(2rem, 9vw, 2.8rem); }
.ig-stat .ig-stat-label { font: 600 .72rem/1.3 var(--f-body); letter-spacing: .18em; text-transform: uppercase; color: var(--ash); }

.ig-timeline { position: relative; max-width: 760px; margin: 0 auto; padding-left: 34px; --burn: 0; }
.ig-timeline::before, .ig-timeline::after { content: ""; position: absolute; left: 11px; top: 6px; bottom: 6px; width: 2px; border-radius: 2px; }
.ig-timeline::before { background: rgba(255, 196, 107, .14); }
.ig-timeline::after { background: linear-gradient(180deg, var(--gold), var(--fire)); transform-origin: top; transform: scaleY(var(--burn)); box-shadow: 0 0 12px var(--fire); }
.ig-step { position: relative; padding: 0 0 26px 14px !important; margin: 0 !important; }
.ig-step:last-child { padding-bottom: 0 !important; }
.ig-step::before {
    content: ""; position: absolute; left: -29px; top: 4px; width: 14px; height: 14px; border-radius: 50%;
    background: var(--night); border: 2px solid rgba(255, 196, 107, .45); transition: background .4s, box-shadow .4s, border-color .4s;
}
.ig-step.is-lit::before { background: var(--fire); border-color: var(--gold); box-shadow: 0 0 0 4px rgba(255, 90, 31, .2), 0 0 18px var(--fire); }
.ig-step p { margin: 0; }
.ig-step .ig-when { font: 700 .78rem/1.2 var(--f-body); letter-spacing: .2em; text-transform: uppercase; color: var(--ember); margin-bottom: 4px; }
.ig-step h3 { font-size: 1.12rem; margin: 0 0 2px; }
.ig-step .ig-what { color: var(--ash); font-size: .93rem; }
.ig-step.is-finale h3 { font-size: 1.5rem; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ig-step.is-finale::before { width: 20px; height: 20px; left: -32px; top: 2px; }

/* =========================================================================
   12. Event page layout + facts
   ========================================================================= */
/* minmax(0,1fr): without it the column grows to the widest unbreakable item
   and pushes the whole page wider than the phone. */
.ig-event-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; align-items: start; }
.ig-event-layout > .wp-block-group, .ig-event-layout > aside { margin: 0; min-width: 0; }
@media (min-width: 900px) { .ig-event-layout { grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; } .ig-event-side { position: sticky; top: calc(var(--head-h) + 20px); } }
/* Phones: one column in the order a visitor needs it —
   intro → facts → register → prize → guidelines → in-charges */
@media (max-width: 899px) {
    .ig-event-layout .ig-event-main, .ig-event-layout .ig-event-side { display: contents; }
    .ig-ev-intro { order: 1; } .ig-facts { order: 2; } .ig-reg { order: 3; } .ig-event-side .is-style-prize { order: 4; }
    .ig-ev-guides { order: 5; } .ig-help { order: 6; }
    .ig-event-layout > * > * { margin-bottom: 0 !important; }
}
.ig-ev-body { padding-top: clamp(28px, 6vw, 56px); }
.ig-ev-intro .is-style-lead { margin: 0; font-size: clamp(1.08rem, 3.6vw, 1.25rem); }
.ig-ev-intro { margin-bottom: 20px; }
.ig-ev-h { font-size: clamp(1.2rem, 4.6vw, 1.5rem); text-transform: uppercase; letter-spacing: .1em; margin: 6px 0 12px; display: flex; align-items: center; gap: 12px; scroll-margin-top: calc(var(--head-h) + 16px); }
.ig-ev-h::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line-2), transparent); }

.ig-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 24px; }
@media (min-width: 640px) { .ig-facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.ig-fact { position: relative; padding: 14px 14px 14px 52px !important; margin: 0 !important; border-radius: 14px; min-height: 72px;
    background: linear-gradient(160deg, rgba(255, 138, 61, .1), transparent 60%), var(--stone); border: 1px solid var(--line); }
.ig-fact::before { content: ""; position: absolute; left: 12px; top: 14px; width: 30px; height: 30px; border-radius: 9px; background: var(--fire-grad); box-shadow: 0 6px 16px -6px rgba(255, 90, 31, .8); }
.ig-fact::after { content: ""; position: absolute; left: 18px; top: 20px; width: 18px; height: 18px; background: #1a0700; -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat; }
.ig-fact p { margin: 0; }
.ig-fact .ig-fact-k { font: 700 .62rem/1.2 var(--f-body); letter-spacing: .18em; text-transform: uppercase; color: var(--ember); margin-bottom: 4px; }
.ig-fact .ig-fact-v { font: 600 .95rem/1.3 var(--f-body); color: #fff4e2; overflow-wrap: anywhere; }
.is-icon-calendar { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 2v2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2h-2V2h-2v2H9V2zM5 9h14v11H5zm2 2v3h3v-3z'/%3E%3C/svg%3E"); }
.is-icon-team { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 11a4 4 0 1 0 0-8 4 4 0 0 0 0 8zm8 0a3 3 0 1 0 0-6 3 3 0 0 0 0 6zM9 13c-3.3 0-7 1.6-7 4v3h14v-3c0-2.4-3.7-4-7-4zm8 0c-.5 0-1 0-1.5.1 1.5.9 2.5 2.2 2.5 3.9v3h4v-3c0-2.2-2.7-4-5-4z'/%3E%3C/svg%3E"); }
.is-icon-ticket { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 6a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v3a3 3 0 0 0 0 6v3a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-3a3 3 0 0 0 0-6zm10 0v2h2V6zm0 5v2h2v-2zm0 5v2h2v-2z'/%3E%3C/svg%3E"); }
.is-icon-trophy { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 3h10v2h4v3a5 5 0 0 1-4.6 5A5 5 0 0 1 13 15.9V19h4v2H7v-2h4v-3.1A5 5 0 0 1 7.6 13 5 5 0 0 1 3 8V5h4zm10 4v4a3 3 0 0 0 2-3V7zM5 7v1a3 3 0 0 0 2 3V7z'/%3E%3C/svg%3E"); }
.is-icon-clock { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm1 5v5.4l3.6 2.1-1 1.7L11 13.6V7z'/%3E%3C/svg%3E"); }
.is-icon-spark { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1c1.5 6 3 8 9 11-6 3-7.5 5-9 11-1.5-6-3-8-9-11 6-3 7.5-5 9-11z'/%3E%3C/svg%3E"); }
.is-icon-phone { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 2h10a2 2 0 0 1 2 2v16a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2zm0 3v13h10V5zm5 14.2a1 1 0 1 0 0 1.6 1 1 0 0 0 0-1.6z'/%3E%3C/svg%3E"); }

/* Guidelines: tap-to-open sections (core/details) */
.ig-acc { margin: 0 0 10px; border-radius: 14px; background: linear-gradient(180deg, var(--stone-2), var(--stone)); border: 1px solid var(--line); overflow: hidden; transition: border-color .3s; }
.ig-acc[open] { border-color: rgba(255, 138, 61, .4); box-shadow: 0 0 30px -14px rgba(255, 90, 31, .6); }
.ig-acc > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 16px 18px; min-height: 56px;
    font: 700 1rem/1.2 var(--f-display); letter-spacing: .08em; text-transform: uppercase; color: var(--gold); -webkit-tap-highlight-color: transparent; }
.ig-acc > summary::-webkit-details-marker { display: none; }
.ig-acc > summary::after { content: ""; margin-left: auto; flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-2);
    background: center / 12px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' fill='none' stroke='%23ffc46b' stroke-width='1.8'/%3E%3C/svg%3E"); transition: transform .3s; }
.ig-acc[open] > summary::after { transform: rotate(180deg); background-color: rgba(255, 138, 61, .15); }
.ig-acc > :not(summary) { margin: 0 18px 16px; }
.ig-acc > .wp-block-list { padding-top: 2px; }

/* Event hero */
.ig-event-hero { min-height: min(86svh, 760px); display: flex; align-items: flex-end; padding-bottom: clamp(28px, 6vw, 60px); }
.ig-event-hero .ig-embers { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
.ig-event-hero .ig-hero-bg img { object-position: center 25%; animation: heroZoom 26s ease-in-out infinite alternate; }
.ig-event-hero::before { background: linear-gradient(180deg, rgba(7, 8, 12, .55) 0%, rgba(7, 8, 12, 0) 25%, rgba(7, 8, 12, .2) 48%, rgba(7, 8, 12, .92) 80%, var(--night) 100%); }
.ig-ev-title { font-family: var(--f-condensed) !important; font-size: clamp(2.8rem, 13vw, 5.4rem) !important; line-height: .92 !important; letter-spacing: .01em !important;
    background: linear-gradient(180deg, #fff7e6 0%, #ffd38a 45%, #ff7a2a 85%); -webkit-background-clip: text; background-clip: text; color: transparent !important;
    filter: drop-shadow(0 0 18px rgba(255, 90, 31, .45)) drop-shadow(0 3px 2px rgba(0, 0, 0, .6)); text-shadow: none !important; overflow-wrap: anywhere; }
.ig-hero-prize { display: inline-flex; align-items: center; gap: 10px; margin: 10px 0 12px; padding: 8px 16px 8px 10px; border-radius: 999px;
    background: rgba(7, 8, 12, .6); border: 1px solid rgba(255, 196, 107, .5); color: #f7ecdb; font-size: .86rem; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.ig-hero-prize::before { content: ""; width: 26px; height: 26px; border-radius: 50%; background: var(--gold-grad); flex: none;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 3h10v2h4v3a5 5 0 0 1-4.6 5A5 5 0 0 1 13 15.9V19h4v2H7v-2h4v-3.1A5 5 0 0 1 7.6 13 5 5 0 0 1 3 8V5h4zm10 4v4a3 3 0 0 0 2-3V7zM5 7v1a3 3 0 0 0 2 3V7z'/%3E%3C/svg%3E") center / 20px no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 3h10v2h4v3a5 5 0 0 1-4.6 5A5 5 0 0 1 13 15.9V19h4v2H7v-2h4v-3.1A5 5 0 0 1 7.6 13 5 5 0 0 1 3 8V5h4zm10 4v4a3 3 0 0 0 2-3V7zM5 7v1a3 3 0 0 0 2 3V7z'/%3E%3C/svg%3E") center / 20px no-repeat; }
.ig-hero-prize strong { font: 700 1.2rem/1 var(--f-condensed); color: var(--gold); letter-spacing: .02em; }
.ig-hero-prize strong .rs { font-family: var(--f-condensed); }
.ig-event-hero .ig-chips { margin-bottom: 14px; }
.ig-event-hero .is-style-chip { background: rgba(7, 8, 12, .6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); font-weight: 500; }
.ig-event-hero .is-style-chip b { color: var(--ember); font-weight: 700; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; margin-right: 2px; }
@media (max-width: 559px) { .ig-event-hero .wp-block-buttons { display: grid; grid-template-columns: 1fr 1fr; } .ig-event-hero .wp-block-button__link { width: 100%; padding-inline: 10px; font-size: .78rem; } .ig-event-hero .wp-block-button:first-child { grid-column: 1 / -1; } }

/* Quote band */
.ig-quote-band { position: relative; overflow: hidden; isolation: isolate; padding: clamp(56px, 12vw, 120px) 0; text-align: center; }
.ig-quote-band .ig-hero-bg { position: absolute; inset: 0; z-index: -2; margin: 0; }
.ig-quote-band .ig-hero-bg img { width: 100%; height: 100%; object-fit: cover; filter: blur(3px) saturate(1.2); transform: scale(1.08); border-radius: 0; }
.ig-quote-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(70% 90% at 50% 50%, rgba(7, 8, 12, .55), rgba(7, 8, 12, .92)), linear-gradient(180deg, var(--night), transparent 20%, transparent 80%, var(--night)); }
.ig-big-quote { font-size: clamp(1.35rem, 5.2vw, 2.1rem) !important; max-width: 820px; margin: 0 auto !important; text-shadow: 0 2px 20px rgba(0, 0, 0, .8); }

/* In-charge cards */
.ig-incharges { display: grid; gap: 10px; }
.ig-incharge { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 4px 12px; align-items: center; padding: 12px !important; margin: 0 !important; border-radius: 12px; background: rgba(7, 8, 12, .4); border: 1px solid var(--line); }
.ig-incharge p { margin: 0; }
.ig-avatar { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font: 700 1rem/1 var(--f-condensed); letter-spacing: .04em; color: #1a0700; background: var(--gold-grad); box-shadow: 0 0 0 3px rgba(255, 196, 107, .15); }
.ig-who { font-size: .88rem; color: var(--ash); line-height: 1.35; }
.ig-who strong { color: #fff4e2; font-size: .98rem; }
.ig-incharge-btns { grid-column: 1 / -1; display: grid !important; grid-template-columns: 1fr 1fr; gap: 8px !important; margin: 6px 0 0 !important; }
.ig-incharge-btns .wp-block-button__link { width: 100%; min-height: 42px; }
.is-style-wa .wp-block-button__link { min-height: 44px; padding: 8px 14px; text-transform: none; letter-spacing: 0; font-weight: 600; font-size: .92rem; background: rgba(37, 211, 102, .12); border-color: rgba(37, 211, 102, .45); color: #b9f5cf; }
.is-style-wa .wp-block-button__link::before { content: ""; width: 18px; height: 18px; flex: none; background: #25d366;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 0 0-8.6 15.1L2 22l5-1.3A10 10 0 1 0 12 2zm5.2 13.9c-.2.6-1.3 1.2-1.8 1.2-.5.1-1 .2-3.3-.7-2.8-1.1-4.6-4-4.7-4.2-.1-.2-1.1-1.5-1.1-2.9s.7-2 1-2.3c.2-.3.5-.3.7-.3h.5c.2 0 .4 0 .6.5l.9 2.1c.1.2.1.3 0 .5l-.3.5-.4.4c-.1.1-.3.3-.1.6.2.3.8 1.3 1.7 2.1 1.2 1 2.1 1.3 2.4 1.5.3.1.5.1.6-.1l.9-1.1c.2-.3.4-.2.7-.1l2 .9c.3.2.5.2.6.4 0 .1 0 .7-.3 1.3z'/%3E%3C/svg%3E") center / contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 0 0-8.6 15.1L2 22l5-1.3A10 10 0 1 0 12 2zm5.2 13.9c-.2.6-1.3 1.2-1.8 1.2-.5.1-1 .2-3.3-.7-2.8-1.1-4.6-4-4.7-4.2-.1-.2-1.1-1.5-1.1-2.9s.7-2 1-2.3c.2-.3.5-.3.7-.3h.5c.2 0 .4 0 .6.5l.9 2.1c.1.2.1.3 0 .5l-.3.5-.4.4c-.1.1-.3.3-.1.6.2.3.8 1.3 1.7 2.1 1.2 1 2.1 1.3 2.4 1.5.3.1.5.1.6-.1l.9-1.1c.2-.3.4-.2.7-.1l2 .9c.3.2.5.2.6.4 0 .1 0 .7-.3 1.3z'/%3E%3C/svg%3E") center / contain no-repeat; }

.ig-fees { list-style: none; padding: 0; margin: 0 0 14px; }
.ig-fees li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 11px 0; margin: 0; border-bottom: 1px dashed rgba(255, 196, 107, .2); }
.ig-fees li:last-child { border-bottom: 0; }
.ig-fees strong { font: 700 1.3rem/1 var(--f-condensed); color: var(--gold); white-space: nowrap; }
.ig-fees strong .rs { font-family: var(--f-condensed); }
.ig-contacts { display: grid; gap: 8px; }
.ig-contacts .wp-block-button, .ig-contacts .wp-block-button__link { width: 100%; justify-content: flex-start; }

/* =========================================================================
   13. Two-column feature, people, map, CTA band
   ========================================================================= */
.wp-block-columns { display: flex; flex-wrap: wrap; gap: 20px; margin-bottom: 1em; }
.wp-block-column { flex: 1 1 100%; min-width: 0; }
@media (min-width: 782px) { .wp-block-columns { flex-wrap: nowrap; gap: 32px; } .wp-block-column { flex-basis: 0; flex-grow: 1; } .wp-block-columns.are-vertically-aligned-center { align-items: center; } }
.wp-block-image { margin: 0 0 1em; }
.wp-block-image img { border-radius: var(--r); }
.is-style-framed img { border: 1px solid var(--line-2); box-shadow: 0 0 0 6px rgba(255, 196, 107, .06), var(--shadow); }

.ig-people { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .ig-people { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .ig-people.is-4 { grid-template-columns: repeat(4, 1fr); } }
.ig-person { text-align: center; padding: 20px 16px !important; margin: 0 !important; border-radius: var(--r); background: linear-gradient(180deg, var(--stone-2), var(--stone)); border: 1px solid var(--line); }
.ig-person p { margin: 0; }
.ig-person .ig-role { font: 700 .68rem/1.3 var(--f-body); letter-spacing: .22em; text-transform: uppercase; color: var(--ember); margin-bottom: 8px; }
.ig-person .ig-name { font: 700 1.04rem/1.3 var(--f-display); color: #fff4e2; }
.ig-person .ig-deg { font: 600 .8rem/1.3 var(--f-body); color: var(--gold); letter-spacing: .02em; white-space: nowrap; }
.ig-person .ig-dept { font-size: .84rem; color: var(--ash); margin-top: 4px; }

.ig-logos { display: flex; justify-content: center; align-items: center; gap: 14px; margin-bottom: 14px; }
.ig-logos .wp-block-image { margin: 0; }
.ig-logos img { width: 64px; height: 64px; border-radius: 50%; object-fit: contain; filter: drop-shadow(0 4px 14px rgba(0, 0, 0, .6)); }


.ig-map { position: relative; display: block; overflow: hidden; border-radius: var(--r); border: 1px solid var(--line-2); aspect-ratio: 16 / 10; color: #fff; text-decoration: none; box-shadow: var(--shadow); }
.ig-map img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.ig-map:hover img { transform: scale(1.05); }
.ig-map::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(7, 8, 12, .92)); }
.ig-map-pin { position: absolute; left: 50%; top: 38%; z-index: 1; width: 34px; height: 34px; margin: -34px 0 0 -17px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--fire-grad); box-shadow: 0 0 0 6px rgba(255, 90, 31, .25); animation: pin 1.8s ease-in-out infinite; }
.ig-map-pin::after { content: ""; position: absolute; inset: 11px; border-radius: 50%; background: #1a0700; }
.ig-map-text { position: absolute; left: 18px; right: 18px; bottom: 16px; z-index: 1; font-size: .9rem; color: #e8dcc8; }
.ig-map-text b { display: block; font: 700 1.2rem/1.2 var(--f-display); color: var(--gold); margin-bottom: 2px; }
@keyframes pin { 0%, 100% { transform: rotate(-45deg) translate(0, 0); } 50% { transform: rotate(-45deg) translate(4px, -4px); } }

.ig-cta-band { position: relative; overflow: hidden; isolation: isolate; text-align: center; border-radius: calc(var(--r) + 6px); padding: clamp(32px, 8vw, 64px) clamp(20px, 5vw, 48px) !important;
    background: radial-gradient(80% 120% at 50% 110%, rgba(255, 90, 31, .55), transparent 65%), linear-gradient(180deg, #17110e, #0c0a09); border: 1px solid rgba(255, 138, 61, .4); }
.ig-cta-band .ig-embers { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; }
.ig-cta-band h2 { font-family: var(--f-condensed); text-transform: uppercase; font-size: clamp(2rem, 8vw, 3.2rem); letter-spacing: .02em; }

.wp-block-separator { border: 0; height: 1px; background: var(--line); margin: 28px auto; }
.wp-block-separator.is-style-ember { height: 22px; max-width: 320px; background: url("assets/img/divider.webp") center / contain no-repeat; opacity: .9; }

/* =========================================================================
   14. Sticky mobile register bar + footer
   ========================================================================= */
/* Hidden by default (also without JS): moved past its own height + bottom gap + safe area, and made
   invisible / unclickable, so no phone (home-indicator bars, dynamic toolbars) ever sees a sliver of it. */
.sticky-cta { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 40; display: flex; gap: 8px;
    transform: translateY(calc(100% + 24px + env(safe-area-inset-bottom))); opacity: 0; visibility: hidden; pointer-events: none;
    transition: transform .4s cubic-bezier(.2, .8, .2, 1), opacity .3s ease, visibility 0s linear .4s; }
.sticky-cta.show { transform: none; opacity: 1; visibility: visible; pointer-events: auto; transition: transform .4s cubic-bezier(.2, .8, .2, 1), opacity .3s ease; }
.sticky-cta .btn { flex: 1; box-shadow: 0 10px 30px rgba(0, 0, 0, .6), var(--glow); }
.sticky-cta .btn-ghost { flex: 0 0 48px; padding: 0; background: rgba(7, 8, 12, .85); }
@media (min-width: 900px) { .sticky-cta { display: none; } }

.site-foot { position: relative; margin-top: 40px; padding: 56px 0 calc(90px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: linear-gradient(180deg, rgba(17, 19, 26, .6), var(--night)); font-size: .93rem; }
@media (min-width: 900px) { .site-foot { padding-bottom: 28px; } }
.foot-grid { display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.foot-title { font: 700 .74rem/1 var(--f-body); letter-spacing: .24em; text-transform: uppercase; color: var(--ember); margin-bottom: 12px; }
.site-foot ul { list-style: none; padding: 0; margin: 0; }
.site-foot li { margin: 0 0 8px; }
.site-foot a { color: var(--bone); text-decoration: none; }
.site-foot a:hover { color: var(--gold); }
.foot-brand { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.foot-brand img { width: 46px; height: 46px; }
.foot-bar { margin-top: 34px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--ash); font-size: .8rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
.foot-credit { display: inline-flex; align-items: center; gap: 6px; }
.foot-credit a { display: inline-flex; align-items: center; gap: 6px; color: var(--gold); text-decoration: none; font-weight: 600; }
.foot-credit img { width: 20px; height: 20px; display: block; }
.foot-credit a:hover { text-decoration: underline; }
.muted { color: var(--ash); }
.small { font-size: .85rem; }

/* =========================================================================
   15. Motion: reveal on scroll (JS adds .reveal / .in)
   ========================================================================= */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .reveal { opacity: 1; transform: none; }
    html { scroll-behavior: auto; }
}

/* 404 / plain pages */
.ig-plain { padding: calc(var(--head-h) + 60px) 0 60px; }

/* Event hero legibility over bright artwork */
.ig-event-hero .is-style-kicker { display: inline-block; padding: 6px 12px; border-radius: 999px; background: rgba(7, 8, 12, .65); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); margin-bottom: 12px !important; }
.ig-event-hero .ig-sub { text-shadow: 0 2px 12px rgba(0, 0, 0, .9); }
.ig-event-hero::after { content: ""; position: absolute; inset: auto 0 0; height: 70%; z-index: -1; background: radial-gradient(120% 80% at 20% 100%, rgba(7, 8, 12, .75), transparent 70%); pointer-events: none; }
@media (max-width: 559px) { .ig-event-hero .wp-block-buttons { grid-template-columns: 1fr; } }
@media (max-width: 559px) { .btn, .wp-block-button__link { white-space: normal; text-align: center; } }
.drawer-cta .btn { font-size: .78rem; letter-spacing: .08em; padding-inline: 14px; }
.drawer-cta .btn-ghost { text-transform: none; letter-spacing: 0; font-size: .9rem; }
.ig-event-side .wp-block-button__link, .ig-reg .wp-block-button__link { white-space: normal; text-align: center; line-height: 1.25; }

/* =========================================================================
   Living fire on the home hero (JS adds .ig-fire inside the hero image)
   The zoom moves to the figure so the flame overlay zooms with the art.
   ========================================================================= */
.ig-fire { position: absolute; pointer-events: none; z-index: 1; }
.ig-fire-flame { position: absolute; inset: 0; background: center / 100% 100% no-repeat; transform-origin: 50% 88%; will-change: transform; }
.ig-fire-flame.a { filter: url(#ig-flame-a) brightness(1.12) saturate(1.2); animation: flick 1.7s ease-in-out infinite alternate; }
.ig-fire-flame.b { filter: url(#ig-flame-b) brightness(1.4) saturate(1.3); mix-blend-mode: screen; opacity: .6; animation: flick2 1.15s ease-in-out infinite alternate; }
.ig-fire-glow { position: absolute; left: -70%; right: -70%; top: -15%; bottom: -35%;
    background: radial-gradient(closest-side, rgba(255, 150, 50, .5), rgba(255, 80, 20, .18) 55%, transparent 78%);
    mix-blend-mode: screen; animation: fglow 2.4s ease-in-out infinite; }
@keyframes flick {
    0% { transform: scale(1, 1) skewX(0); }
    35% { transform: scale(1.02, 1.07) skewX(-1.6deg); }
    65% { transform: scale(.99, 1.02) skewX(1.3deg); }
    100% { transform: scale(1.015, 1.09) skewX(-.6deg); }
}
@keyframes flick2 {
    0% { transform: scale(1, 1.02) skewX(1deg); opacity: .45; }
    50% { transform: scale(1.03, 1.1) skewX(-1.8deg); opacity: .7; }
    100% { transform: scale(.98, 1.04) skewX(.8deg); opacity: .5; }
}
@keyframes fglow { 0%, 100% { opacity: .55; transform: scale(1); } 40% { opacity: .95; transform: scale(1.07); } 70% { opacity: .68; transform: scale(1.02); } }

/* Register page: two info panels under the form */
.ig-grid-2 { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .ig-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ig-register .ig-wrap { max-width: 860px; }

/* Short phones (≤ 720 px tall, e.g. 320×568, 360×640): the whole hero fits on the first screen */
@media (max-width: 759px) and (max-height: 720px) {
    .ig-hero { padding-top: calc(var(--head-h) + 10px); padding-bottom: 22px; }
    .ig-college { font-size: clamp(1rem, 4.9vw, 1.2rem); margin: 6px 0 4px; }
    .ig-presents { margin-bottom: 0; }
    .ig-wordmark { font-size: clamp(3rem, 16vw, 4rem) !important; }
    .ig-hero .ig-chips { gap: 6px; margin-bottom: 6px; flex-wrap: nowrap; }
    .ig-hero .ig-chips .is-style-chip { font-size: .72rem; padding: 6px 10px; white-space: nowrap; }
    .ig-countdown { gap: 5px; margin: 0 0 12px; }
    .ig-countdown b { font-size: 1.45rem; }
    .ig-countdown-grid > span { padding: 7px 4px 6px; }
    .ig-hero .wp-block-buttons { gap: 8px; }
    .ig-hero .wp-block-button__link { min-height: 44px; padding-block: 10px; }
    .ig-hero .ig-scroll-cue { display: none; }
}

/* =========================================================================
   Samsung Internet force dark (html.samsung-fd, set in functions.php).
   Calibrated from a Galaxy screenshot (SamsungBrowser 30, ekit.in/assets/samsung-colours.html):
   flat text colours survive almost unchanged, but gradients clipped to text and bright
   gradient backgrounds get darkened. So: flat colours only, buttons drawn as outlines.
   ========================================================================= */
/* 2nd Galaxy screenshot: light gold text is darkened to brown, while dark text is lightened —
   so gold is given as the deep shade that Samsung turns into bright gold (calibration shade A5). */
html.samsung-fd { --gold: #995c00; }
html.samsung-fd .is-style-plaque,
html.samsung-fd .is-style-prize .ig-prize-amount, html.samsung-fd .ig-big-number,
html.samsung-fd .ig-college, html.samsung-fd .ig-wordmark em,
html.samsung-fd .ig-step.is-finale h3, html.samsung-fd .ig-hero-prize strong {
    background: none !important; -webkit-text-fill-color: #995c00; color: #995c00 !important; }
html.samsung-fd .ig-wordmark, html.samsung-fd .is-style-flame, html.samsung-fd .ig-track-no, html.samsung-fd .ig-ev-title {
    background: none !important; -webkit-text-fill-color: #ff8a3d; color: #ff8a3d !important; }
html.samsung-fd .ig-college { -webkit-text-fill-color: #f3e8d6; color: #f3e8d6 !important; }
/* fire buttons → outline buttons (dark fill, orange ring, gold text) */
html.samsung-fd .is-style-fire .wp-block-button__link, html.samsung-fd .btn-fire, html.samsung-fd .sticky-cta .btn:not(.btn-ghost),
html.samsung-fd .ig-jump .is-active .wp-block-button__link, html.samsung-fd .ig-card .ig-card-go {
    background: #07080c !important; color: #995c00 !important; border: 2px solid #ff5a1f !important; box-shadow: none !important; }
/* primary action gets a dark ember fill so it stands apart from the ghost "Explore events" button */
html.samsung-fd .is-style-fire .wp-block-button__link, html.samsung-fd .btn-fire, html.samsung-fd .sticky-cta .btn:not(.btn-ghost) { background: #3a1206 !important; }
html.samsung-fd .is-style-steps li::before, html.samsung-fd .ig-avatar {
    background: #07080c !important; color: #995c00 !important; box-shadow: inset 0 0 0 2px #ff8a3d !important; }

/* Brochure link (committee panel → Brochure) */
.ig-hero-brochure { margin: 14px 0 0 !important; text-align: center; }

.ig-hero-brochure a { display: inline-flex; align-items: center; gap: 8px; color: var(--gold); font: 600 .9rem/1.2 var(--f-body); text-decoration: none;
    border-bottom: 1px solid rgba(255, 196, 107, .45); padding-bottom: 2px; }
.ig-hero-brochure a::before { content: ""; width: 14px; height: 14px; flex: none; background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 16l-5-5h3V4h4v7h3l-5 5zm-7 2h14v2H5z'/%3E%3C/svg%3E") center / contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 16l-5-5h3V4h4v7h3l-5 5zm-7 2h14v2H5z'/%3E%3C/svg%3E") center / contain no-repeat; }
.ig-hero-brochure a span { font-size: .68rem; letter-spacing: .1em; color: var(--ash); }
.site-nav .nav-brochure { color: var(--gold); font-weight: 600; text-decoration: none; margin-left: 4px; }
