*,
*::after,
*::before {
	box-sizing: border-box;
}

:root {
	font-size: 12px;
	--color-text: #292828;
	--color-bg: #ddd;
	--color-link: #000;
	--color-link-hover: #000;
	--page-padding: 1rem;
	--angle: -15deg;
	--trans-content: -30vh;
}

body {
	margin: 0;
	color: var(--color-text);
	background-color: var(--color-bg);
	font-family: new-science-mono, sans-serif;
	text-transform: uppercase;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

.noscroll {
	height: 100dvh;
	width: 100%;
	overflow: hidden;
	position: fixed;
  top: 0;
}

/* Page Loader */
.js .loading::before,
.js .loading::after {
	content: '';
	position: fixed;
	z-index: 1000;
}

.js .loading::before {
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: var(--color-bg);
}

.js .loading::after {
	top: 50%;
	left: 50%;
	width: 60px;
	height: 60px;
	margin: -30px 0 0 -30px;
	border-radius: 50%;
	opacity: 0.4;
	background: var(--color-link);
	animation: loaderAnim 0.7s linear infinite alternate forwards;

}

@keyframes loaderAnim {
	to {
		opacity: 1;
		transform: scale3d(0.5,0.5,1);
	}
}

a {
	text-decoration: none;
	color: var(--color-link);
	outline: none;
	cursor: pointer;
	transition: all 0.3s ease;
}

a:hover {
	text-decoration: underline;
	color: var(--color-link-hover);
	outline: none;
}

/* Better focus styles from https://developer.mozilla.org/en-US/docs/Web/CSS/:focus-visible */
a:focus {
	/* Provide a fallback style for browsers
	 that don't support :focus-visible */
	outline: none;
	background: lightgrey;
}

a:focus:not(:focus-visible) {
	/* Remove the focus indicator on mouse-focus for browsers
	 that do support :focus-visible */
	background: transparent;
}

a:focus-visible {
	/* Draw a very noticeable focus style for
	 keyboard-focus on browsers that do support
	 :focus-visible */
	outline: 2px solid red;
	background: transparent;
}

.unbutton {
	background: none;
	border: 0;
	padding: 0;
	margin: 0;
	font: inherit;
	cursor: pointer;
}

.unbutton:focus {
	outline: none;
}

.frame {
	font-size: 12px;
	color: #e3b774;
	padding: var(--page-padding);
	display: grid;
	z-index: 1000;
	grid-row-gap: 1rem;
	grid-column-gap: 2rem;
	pointer-events: none;
	justify-items: start;
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	grid-template-columns: 1fr;
	grid-template-rows: auto auto;
	grid-template-areas: 'title' 'sponsor';
	transition: opacity 0.3s;
}

.hidden {
	opacity: 0;
	pointer-events: none;
}

.frame #cdawrap {
  justify-self: end;
	max-width: 300px;
	text-align: right;
}

.frame a {
  pointer-events: auto;
  color: #fff;
}

.frame a:focus,
.frame a:hover {
	color: #fff;
}

.frame__title {
  grid-area: title;
  font-size: 1.25rem;
  margin: 0;
  font-weight: 400;
  font-family: "new-science", -apple-system, BlinkMacSystemFont, Segoe UI, Helvetica, Arial, sans-serif;
}

.intro {
	width: 100%;
	height: 100vh;
	overflow: hidden;
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #000;
}

.intro::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: url(../img/noise.png), radial-gradient(circle, #f9a13275 0%, transparent 100%);
  background-size: 250px, 100%;
  pointer-events: none;
}

.intro--open {
	height: 80vh;
}

.grid {
	gap: 1rem;
	flex: none;
	position: relative;
	width: 200vw;
	height: 200vh;
	display: grid;
	grid-template-rows: repeat(5,1fr);
	grid-template-columns: 100%;
	transform: rotate(var(--angle));
  transform-origin: center center;
}

.row {
	display: grid;
	gap: 1rem;
	grid-template-columns: repeat(7,1fr);
  will-change: transform, filter;
}

.row__item {
	position: relative;
}

.row__item-inner {
	position: relative;
	width: 100%;
	height: 100%;
	overflow: hidden;
	border-radius: 10px;
}

.row__item-img {
	width: 100%;
	height: 100%;
	background-size: cover;
	background-position: 50% 50%;
	position: absolute;
	top: 0;
	left: 0;
}

.row__item-img--large {
	width: 100vw;
	height: 100vh;
	top: 50%;
	left: 50%;
	margin: -50vh 0 0 -50vw;
	background-position: 50% 70%;
	will-change: transform, filter;
}

.enter {
	color: rgba(0,0,0,0.8);
	position: absolute;
	text-transform: uppercase;
	padding: 1.75rem 4rem;
	font-weight: 700;
	z-index: 100;
	font-family: "new-science", -apple-system, BlinkMacSystemFont, Segoe UI, Helvetica, Arial, sans-serif;
	font-weight: 700;
	font-size: 1.15rem;
	background: url(../img/noise.png), radial-gradient(circle, #f9a13275 0%, transparent 100%);
	background-size: 250px, 100%;
	transition: all 0.3s;
	cursor: pointer;
}

.enter::before {
	content: '';
	position: absolute;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	border: 1px solid rgba(0,0,0,0.8);
	border-radius: 3rem;
	transition: all 0.3s;
	z-index: -1;

}

.enter:focus::before,
.enter:hover::before {
	background-color: rgba(0,0,0,0.2);
}

.fullview {
	position: absolute;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	pointer-events: none;
}

.fullview .row__item-inner {
	border-radius: 0px;
}

.content {
	padding: var(--page-padding);
	position: relative;
}

.content::before {
	content: '';
	position: absolute;
	border-radius: 10px 10px 0 0;
	height: calc(100% + (-1) * var(--trans-content));
	width: 100%;
	top: 0;
	left: 0;
	z-index: 0;
	background: url(../img/noise.png), radial-gradient(at top, #f9a132 0%, #ddd 100%);
  background-size: 250px, 100%;
}

.content > * {
	position: relative;
}

.content__nav {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	justify-content: space-between;
}

.content__header h2 {
	font-size: 2rem;
	font-family: new-science-extended, sans-serif;
	font-weight: 400;
	margin: 6rem 0 10vh;
	line-height: 0.9;
}

.content__text {
	text-wrap: balance;
	display: flex;
	flex-direction: column;
	/* text-align: center; */
	gap: 10vh;
	padding: 0 5vw;
}

.content__text p {
	max-width: 700px;
	font-size: 1.5rem;
	line-height: 1.4;
	margin: 0;
	margin-left: auto;
}

.content__text p.highlight {
	max-width: 1000px;
	font-size: 2rem;
	font-family: new-science-extended, sans-serif;
	font-weight: 400;
}

.content__footer {
	display: flex;
	justify-content: space-between;
	margin-top: 20vh;
	transform: translateY(calc(-1 * var(--trans-content)));
}

@media screen and (min-width: 53em) {
	body {
		--page-padding: 2rem 3rem;
	}
	.frame {
		grid-template-columns: auto 1fr;
		grid-template-areas: 'title sponsor';
		align-content: space-between;
	}
	.content__header h2 {
		font-size: clamp(2rem,20vh,16rem);
	}
	.content__text p.highlight {
		font-size: clamp(2rem,7vh,4rem);
	}
}


.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(0,0,0,0.7);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  z-index: 1000;
}
.navbar .logo {
  color: #fff;
  font-size: 1.2rem;
  font-weight: bold;
}
.navbar .nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}
.navbar .nav-links a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s;
}
.navbar .nav-links a:hover {
  color: #ff4081;
}

.navbar .nav-links li a:hover,
.navbar .nav-links li a.active {
  color: #ff4081; /* neon pink accent */
}

.navbar .toggle {
  display: none; /* keep hidden for now (mobile later) */
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  color: #ffffff;
}

/* Optional: give body padding so content doesn't hide behind navbar */
body {
  padding-top: 70px; /* adjust depending on navbar height */
}

/* IEEE Events gallery (scoped) */
.ieee-ev-gallery {
  padding: clamp(1rem, 3vw, 2rem) var(--page-padding);
  max-width: 1300px;
  margin: 0 auto;
}

.ieee-ev-title {
  margin: 0 0 .25rem;
  letter-spacing: 0.5px;
}

.ieee-ev-sub {
  margin: 0 0 1rem;
  opacity: .85;
  text-transform: none;
}

.ieee-ev-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(.8rem, 2.2vw, 1.25rem);
}

.ieee-ev-card {
  display: grid;
  grid-template-rows: auto min-content;
  background: linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0.02));
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  transition: transform .25s ease, box-shadow .25s ease;
  will-change: transform;
}

.ieee-ev-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 10px 28px rgba(0,0,0,0.18);
}

.ieee-ev-fig {
  margin: 0;
  aspect-ratio: 1 / 1;
  background: radial-gradient(120% 120% at 20% 10%, rgba(255,255,255,0.25), rgba(0,0,0,0) 55%);
}

.ieee-ev-fig img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ieee-ev-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .65rem .8rem .8rem;
  font-size: .95rem;
}

.ieee-ev-name { font-weight: 600; letter-spacing: .3px; }
.ieee-ev-date { opacity: .85; font-size: .9rem; }

/* Mobile tweaks */
@media (max-width: 768px) {
  .ieee-ev-meta { font-size: .9rem; }
}
