/* IIM Jammu FEISD · Innovation Day — FEISD's red spiral and blues, light and readable. */
:root {
	--navy: #1f2f8c;
	--navy-2: #283a8f;
	--sky: #0070c0;
	--red: #e02030;
	--red-ink: #c0182a;
	--ink: #131a3f;
	--text: #2c3150;
	--muted: #5a5f7d;
	--line: rgba(19, 26, 63, 0.1);
	--bg: #f6f7fb;
	--card: #ffffff;
	--tint: #eef2fb;
	--radius: 18px;
	--shadow: 0 1px 2px rgba(19, 26, 63, 0.05), 0 12px 32px -16px rgba(19, 26, 63, 0.18);
	--serif: 'Iowan Old Style', 'Palatino Linotype', Palatino, 'Book Antiqua', Georgia, serif;
	--sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}
* {
	box-sizing: border-box;
}
html {
	scroll-behavior: smooth;
	scroll-padding-top: 84px;
}
body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font: 16px/1.6 var(--sans);
	-webkit-font-smoothing: antialiased;
}
img {
	max-width: 100%;
	height: auto;
}
a {
	color: var(--sky);
}
:focus-visible {
	outline: 2px solid var(--sky);
	outline-offset: 3px;
	border-radius: 6px;
}
h1,
h2,
h3 {
	color: var(--ink);
	line-height: 1.15;
	margin: 0;
}
h2 {
	font-family: var(--serif);
	font-size: clamp(28px, 4vw, 38px);
	letter-spacing: -0.01em;
	text-wrap: balance;
}
h3 {
	font-size: 18px;
	margin-bottom: 14px;
}
.wrap {
	width: min(1120px, 100% - 40px);
	margin: 0 auto;
}
.narrow {
	width: min(760px, 100% - 32px);
}
.center {
	text-align: center;
}
.skip {
	position: absolute;
	left: -999px;
}
.skip:focus {
	left: 16px;
	top: 12px;
	z-index: 100;
	background: #fff;
	padding: 8px 12px;
	border-radius: 8px;
}
.eyebrow {
	margin: 0 0 12px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--red-ink);
}
.lead {
	font-size: clamp(17px, 2vw, 20px);
	color: var(--muted);
	max-width: 620px;
	margin: 18px 0 0;
}
.lead.dark {
	margin-left: auto;
	margin-right: auto;
}
.muted {
	color: var(--muted);
}
.small {
	font-size: 13px;
}
.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

/* buttons */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-height: 44px;
	padding: 0 18px;
	border-radius: 999px;
	font-weight: 650;
	font-size: 15px;
	text-decoration: none;
	border: 1.5px solid transparent;
	transition: transform 0.15s ease, background 0.15s ease;
	white-space: nowrap;
}
.btn:hover {
	transform: translateY(-1px);
}
.btn-lg {
	min-height: 52px;
	padding: 0 24px;
	font-size: 16px;
}
.btn-sm {
	min-height: 40px;
	padding: 0 16px;
	font-size: 14px;
}
.btn-red {
	background: var(--red);
	color: #fff;
}
.btn-red:hover {
	background: var(--red-ink);
}
.btn-navy {
	background: var(--navy);
	color: #fff;
}
.btn-navy:hover {
	background: var(--navy-2);
}
.btn-line {
	color: var(--navy);
	border-color: rgba(31, 47, 140, 0.22);
	background: #fff;
}
.btn.is-closed {
	background: #e9eaf0;
	color: var(--muted);
	pointer-events: none;
}

/* top bar */
.top {
	position: sticky;
	top: 0;
	z-index: 20;
	background: rgba(255, 255, 255, 0.92);
	backdrop-filter: saturate(160%) blur(12px);
	-webkit-backdrop-filter: saturate(160%) blur(12px);
	border-bottom: 1px solid var(--line);
}
.topin {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 68px;
}
.brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	min-height: 44px;
}
.brand img {
	display: block;
	height: 42px;
	width: auto;
}
.bname {
	display: grid;
	line-height: 1.15;
}
.bname b {
	color: var(--navy);
	font-size: 17px;
	letter-spacing: -0.01em;
}
.bname small {
	color: var(--muted);
	font-size: 12.5px;
	font-weight: 600;
}
.nav {
	display: flex;
	align-items: center;
	gap: 22px;
}
.nav a:not(.btn) {
	color: var(--ink);
	text-decoration: none;
	font-weight: 600;
	font-size: 15px;
}
.nav a:not(.btn):hover {
	color: var(--sky);
}

/* hero */
.hero {
	position: relative;
	overflow: hidden;
	background: radial-gradient(90% 120% at 100% 0%, #eaf0fc 0%, #ffffff 55%);
	padding: clamp(64px, 10vw, 120px) 0 clamp(72px, 10vw, 120px);
	border-bottom: 1px solid var(--line);
}
.heroin {
	position: relative;
	z-index: 1;
}
.hero h1 {
	font-family: var(--serif);
	font-weight: 700;
	font-size: clamp(46px, 8.4vw, 92px);
	letter-spacing: -0.02em;
	line-height: 1;
	color: var(--navy);
}
.hero h1 .v {
	color: var(--red);
}
.when {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 26px 0 0;
}
.when span {
	padding: 7px 14px;
	border-radius: 999px;
	background: #fff;
	border: 1px solid var(--line);
	font-weight: 650;
	font-size: 15px;
	color: var(--ink);
	box-shadow: 0 1px 2px rgba(19, 26, 63, 0.04);
}
.cta {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 34px;
}
/* a nod to the FEISD spiral */
.spiral {
	position: absolute;
	right: -90px;
	top: 50%;
	width: 620px;
	height: 620px;
	transform: translateY(-50%) rotate(-12deg);
	pointer-events: none;
	fill: none;
}
.spiral .s-red {
	stroke: var(--red);
	stroke-width: 7;
	stroke-linecap: round;
	opacity: 0.85;
}
.spiral .s-blue {
	stroke: var(--sky);
	stroke-width: 30;
	stroke-linecap: round;
	opacity: 0.9;
}
.spiral .s-navy {
	stroke: var(--navy);
	stroke-width: 30;
	stroke-linecap: round;
	opacity: 0.9;
}
@media (prefers-reduced-motion: no-preference) {
	.spiral .s-red {
		stroke-dasharray: 3400;
		stroke-dashoffset: 3400;
		animation: draw 2.4s cubic-bezier(0.3, 0.7, 0.2, 1) 0.2s forwards;
	}
}
@keyframes draw {
	to {
		stroke-dashoffset: 0;
	}
}

/* quick facts */
.factsband {
	position: relative;
	z-index: 2;
	margin-top: -38px;
}
.facts {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
	margin: 0;
}
.facts div {
	background: #fff;
	border-radius: 16px;
	padding: 16px 18px;
	box-shadow: var(--shadow);
}
.facts dt {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--muted);
}
.facts dd {
	margin: 4px 0 0;
	font-weight: 650;
	color: var(--ink);
}

/* sections */
.comps,
.event,
.register,
.about,
.faq {
	padding: clamp(56px, 8vw, 96px) 0;
}
.shead {
	margin-bottom: 30px;
	max-width: 760px;
}
.shead .muted {
	margin: 12px 0 0;
}
.shead.center {
	text-align: center;
	margin-left: auto;
	margin-right: auto;
}
.shead.center .muted {
	margin: 10px auto 0;
	max-width: 520px;
}
.closing {
	display: inline-block;
	margin-left: 8px;
	padding: 2px 10px;
	border-radius: 999px;
	background: var(--red);
	color: #fff;
	letter-spacing: 0.06em;
	vertical-align: 1px;
}
.closing.is-closed {
	background: #e9eaf0;
	color: var(--muted);
}

/* competition cards */
.cards {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
}
.comp {
	display: flex;
	flex-direction: column;
	background: #fff;
	border-radius: 22px;
	padding: 28px;
	box-shadow: var(--shadow);
	border-top: 5px solid var(--sky);
}
.comp:nth-child(2) {
	border-top-color: var(--red);
}
.stage {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 999px;
	background: #e6f1fa;
	color: #005a9c;
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: 0.02em;
}
.stage-red {
	background: #fde8ea;
	color: var(--red-ink);
}
.chead h3 {
	font-family: var(--serif);
	font-size: clamp(26px, 3vw, 32px);
	margin: 12px 0 8px;
}
.chead p {
	margin: 0;
	color: var(--muted);
}
.prize {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: 4px 20px;
	margin: 22px 0 0;
	padding: 16px 18px;
	border-radius: 14px;
	background: var(--tint);
}
.prize dt {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--muted);
}
.prize dd {
	margin: 2px 0 0;
	font-weight: 700;
	color: var(--ink);
}
.prize div:first-child dd {
	font-family: var(--serif);
	font-size: 28px;
	line-height: 1.1;
	color: var(--navy);
}
.rounds {
	margin: 20px 0 0;
	padding-left: 20px;
	display: grid;
	gap: 10px;
	font-size: 15px;
}
.rounds strong {
	color: var(--ink);
}
.cfoot {
	margin-top: auto;
	padding-top: 22px;
	display: grid;
	gap: 10px;
}
.due {
	margin: 0;
	font-size: 14px;
	color: var(--muted);
}
.due strong {
	color: var(--red-ink);
}
.note {
	margin: 18px 0 0;
	font-size: 14px;
	color: var(--muted);
}
.comps .note {
	margin-top: 24px;
	font-size: 15px;
}

/* the day */
.event {
	padding-top: 0;
}
.ehead {
	text-align: center;
	margin-bottom: 36px;
}
.elogos {
	display: inline-flex;
	align-items: center;
	gap: 18px;
	padding: 14px 22px;
	border-radius: 20px;
	background: #fff;
	box-shadow: var(--shadow);
	margin-bottom: 22px;
}
.elogos img {
	height: 72px;
	width: auto;
}
.elogos .sep {
	width: 1px;
	align-self: stretch;
	background: var(--line);
}
h2.big {
	font-size: clamp(38px, 6vw, 60px);
	color: var(--navy);
}
.cols {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
}
.cols > div,
.know {
	background: #fff;
	border-radius: var(--radius);
	padding: 26px;
	box-shadow: var(--shadow);
}
.who {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	gap: 2px;
}
.who li {
	display: grid;
	padding: 10px 0;
	border-top: 1px solid var(--line);
}
.who li:first-child {
	border-top: 0;
	padding-top: 0;
}
.who strong {
	color: var(--ink);
}
.who span {
	font-size: 14px;
	color: var(--muted);
}
.flow {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	gap: 12px;
}
.flow li {
	display: flex;
	gap: 12px;
	align-items: baseline;
}
.flow .n {
	flex: none;
	display: grid;
	place-items: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--tint);
	color: var(--navy-2);
	font-weight: 700;
	font-size: 14px;
}
.flow strong {
	color: var(--ink);
	margin-right: 4px;
}
.flow + .note {
	font-style: italic;
}
.know {
	margin-top: 20px;
}
.know ul {
	margin: 0;
	padding-left: 20px;
	display: grid;
	gap: 8px;
}
.know strong {
	color: var(--ink);
}

/* registration */
.register {
	background: linear-gradient(180deg, var(--tint) 0%, var(--bg) 100%);
}
.formbox {
	background: #fff;
	border-radius: 24px;
	padding: clamp(12px, 3vw, 28px);
	box-shadow: var(--shadow);
}
#reg-frame {
	display: block;
	width: 100%;
	height: 900px;
	border: 0;
	transition: height 0.2s ease;
}
.fallback {
	text-align: center;
	font-size: 14px;
	margin: 14px 0 0;
}

/* about */
.aboutin {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: 36px;
	align-items: center;
	background: #fff;
	border-radius: 24px;
	padding: clamp(24px, 4vw, 44px);
	box-shadow: var(--shadow);
}
.aboutin img {
	width: 114px;
}
.aboutin h2 {
	margin-bottom: 12px;
}
.aboutin p {
	color: var(--muted);
	max-width: 680px;
}

/* faq */
.faq {
	padding-top: 0;
}
details {
	background: #fff;
	border-radius: 14px;
	box-shadow: var(--shadow);
	margin-bottom: 10px;
	padding: 4px 20px;
}
summary {
	cursor: pointer;
	font-weight: 650;
	color: var(--ink);
	padding: 14px 0;
	list-style: none;
	display: flex;
	justify-content: space-between;
	gap: 12px;
}
summary::-webkit-details-marker {
	display: none;
}
summary::after {
	content: '+';
	color: var(--red);
	font-size: 20px;
	line-height: 1;
}
details[open] summary::after {
	content: '–';
}
details p {
	margin: 0 0 16px;
	color: var(--muted);
}

/* not-found page */
.nf {
	min-height: 70vh;
	display: grid;
	place-content: center;
	justify-items: center;
	text-align: center;
	gap: 12px;
}

/* footer */
.foot {
	background: #fff;
	border-top: 1px solid var(--line);
	padding: 36px 0 40px;
}
.footin {
	display: grid;
	justify-items: center;
	gap: 14px;
	text-align: center;
}
.flogos {
	display: flex;
	align-items: center;
	gap: 18px;
}
.flogos img:first-child {
	height: 56px;
	width: auto;
}
.flogos img:last-child {
	height: 38px;
	width: auto;
}
.footin nav {
	display: flex;
	gap: 18px;
	flex-wrap: wrap;
	justify-content: center;
}
.footin nav a {
	color: var(--ink);
	font-weight: 600;
	text-decoration: none;
	font-size: 14px;
	padding: 8px 0;
}
.footin .small {
	color: var(--muted);
	margin: 0;
}

/* phones and tablets */
@media (max-width: 860px) {
	.nav a:not(.btn) {
		display: none;
	}
	.facts {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.cards,
	.cols {
		grid-template-columns: minmax(0, 1fr);
	}
	.spiral {
		right: -330px;
		opacity: 0.28;
	}
}
@media (max-width: 520px) {
	.wrap {
		width: min(1120px, 100% - 28px);
	}
	.spiral {
		width: 460px;
		height: 460px;
		right: -270px;
		top: 24%;
		opacity: 0.22;
	}
	.brand img {
		height: 36px;
	}
	.bname b {
		font-size: 15px;
	}
	.bname small {
		font-size: 11.5px;
	}
	.when span {
		font-size: 14px;
	}
	.cta .btn {
		flex: 1 1 100%;
	}
	.facts {
		grid-template-columns: minmax(0, 1fr);
	}
	.comp {
		padding: 22px;
	}
	.prize {
		grid-template-columns: minmax(0, 1fr);
	}
	.aboutin {
		grid-template-columns: minmax(0, 1fr);
		justify-items: center;
		text-align: center;
	}
	.cols > div,
	.know {
		padding: 20px;
	}
	.elogos img {
		height: 56px;
	}
	.flogos img:last-child {
		height: 30px;
	}
}
@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
	.btn,
	#reg-frame {
		transition: none;
	}
}
