/* Design Week 2026 — main styles */

:root {
	--dw-orange: #f14409;
	--dw-orange-hot: #ff5a1f;
	--dw-black: #000000;
	--dw-white: #ffffff;
	--dw-gray: #b1b1b1;
	--dw-gray-light: #d9d9d9;
	--dw-font-display: "League Gothic", Impact, Haettenschweiler, sans-serif;
	--dw-font-body: "DM Sans", system-ui, sans-serif;
	--dw-header-h: 76px;
	--dw-gutter: clamp(1rem, 2.5vw, 2.5rem);
	--dw-max: 1728px;
	--dw-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--dw-black);
	color: var(--dw-white);
	font-family: var(--dw-font-body);
	font-optical-sizing: auto;
	line-height: 1.2;
	-webkit-font-smoothing: antialiased;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: inherit;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Buttons */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 70px;
	padding: 0 2rem;
	border-radius: 999px;
	font-family: var(--dw-font-body);
	font-weight: 500;
	font-size: 2rem;
	line-height: 1;
	text-decoration: none;
	border: 0;
	cursor: pointer;
	transition: transform 0.25s var(--dw-ease), opacity 0.25s var(--dw-ease);
}

.btn:hover {
	transform: translateY(-2px);
}

.btn--sm {
	min-height: 49px;
	padding: 0 1.5rem;
	font-size: 1.5rem;
}

.btn--dark {
	background: var(--dw-black);
	color: var(--dw-white);
}

a.btn--dark,
button.btn--dark {
	color: var(--dw-white);
}

.btn--orange {
	background: var(--dw-orange);
	color: var(--dw-black);
}

a.btn--orange,
button.btn--orange {
	color: var(--dw-black);
}

.btn--light {
	background: var(--dw-gray-light);
	color: var(--dw-black);
	min-height: 59px;
	font-size: 2rem;
	width: 222px;
}

a.btn--light,
button.btn--light {
	color: var(--dw-black);
}

/* Sticky header */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	height: var(--dw-header-h);
	background: var(--dw-orange);
	transition: background 0.35s var(--dw-ease), box-shadow 0.35s var(--dw-ease);
}

.site-header.is-scrolled {
	background: var(--dw-orange);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	height: 100%;
	width: min(100%, var(--dw-max));
	margin: 0 auto;
	padding: 0 var(--dw-gutter);
}

.site-header__brand {
	display: flex;
	align-items: center;
	gap: 1.25rem;
	min-width: 0;
}

.site-header__aiga {
	flex-shrink: 0;
}

.site-header__aiga img {
	width: 147px;
	height: 51px;
	object-fit: contain;
}

.site-header__dw-logo {
	display: block;
	opacity: 0;
	transform: translateY(-6px);
	pointer-events: none;
	transition: opacity 0.35s var(--dw-ease), transform 0.35s var(--dw-ease);
}

.site-header.is-scrolled .site-header__dw-logo {
	opacity: 1;
	transform: translateY(0);
	pointer-events: auto;
}

.site-header__dw-logo img {
	width: clamp(140px, 16vw, 256px);
	height: auto;
}

.site-header__nav {
	display: flex;
	align-items: center;
	gap: clamp(1rem, 2.5vw, 2.5rem);
}

.site-header__nav a:not(.btn) {
	font-weight: 700;
	font-size: 1.25rem;
	color: var(--dw-black);
	text-decoration: none;
}

.site-header__nav .btn--sm {
	min-height: 40px;
	width: 147px;
	padding: 0;
	font-size: 1.25rem;
}

.site-header__toggle {
	display: none;
	width: 44px;
	height: 44px;
	padding: 10px;
	border: 0;
	background: transparent;
	cursor: pointer;
}

.site-header__toggle span:not(.screen-reader-text) {
	display: block;
	height: 2px;
	margin: 6px 0;
	background: var(--dw-black);
}

.site-header__mobile {
	display: none;
	flex-direction: column;
	align-items: center;
	gap: 1rem;
	padding: 1rem var(--dw-gutter) 1.5rem;
	background: var(--dw-orange);
	border-bottom: 4px solid var(--dw-black);
}

.site-header__mobile a:not(.btn) {
	font-weight: 700;
	font-size: 1.25rem;
	color: var(--dw-black);
	text-decoration: none;
	text-align: center;
}

.site-header__mobile .btn {
	width: 100%;
	min-height: 56px;
	font-size: 1.25rem;
	padding: 0 1.5rem;
}

@media (max-width: 900px) {
	.site-header__nav {
		display: none;
	}

	.site-header__toggle {
		display: block;
	}

	.site-header__mobile:not([hidden]) {
		display: flex;
	}
}

/* Hero */
.hero__top {
	position: relative;
	display: flex;
	flex-direction: column;
	background: var(--dw-orange);
	padding: 1.5rem var(--dw-gutter) 1.25rem;
	overflow: hidden;
	min-height: clamp(480px, 58vh, 600px);
}

.hero__texture,
.events-grid__texture,
.pass-cta__texture {
	position: absolute;
	inset: 0;
	background: url("../images/background-texture.png") center / cover no-repeat;
	opacity: 0.45;
	mix-blend-mode: multiply;
	pointer-events: none;
}

.hero__content {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
	gap: clamp(1.5rem, 4vw, 4rem);
	align-items: start;
	width: min(100%, var(--dw-max));
	margin: 0 auto;
	padding-top: 0.5rem;
}

.hero__logo img {
	width: min(100%, 738px);
	height: auto;
}

.hero__intro {
	padding-top: clamp(1rem, 4vw, 4rem);
	color: var(--dw-black);
}

.hero__headline {
	margin: 0;
	font-family: var(--dw-font-display);
	font-size: clamp(3.5rem, 6.5vw, 6rem);
	font-weight: 400;
	line-height: 0.9;
	text-transform: uppercase;
	letter-spacing: 0.01em;
}

.hero__copy {
	margin: 1rem 0 1.75rem;
	max-width: 36rem;
	font-size: clamp(1.25rem, 2vw, 2rem);
	font-weight: 500;
	line-height: 1.15;
}

.hero__meta {
	position: relative;
	z-index: 1;
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	width: min(100%, var(--dw-max));
	margin: auto auto 0;
	padding-top: 2rem;
	padding-left: min(52%, 54rem);
	font-weight: 700;
	font-size: 1.25rem;
	color: var(--dw-black);
}

.hero__media {
	position: relative;
	overflow: hidden;
	max-height: min(718px, 55vw);
	background: #222;
}

.hero__media img {
	width: 100%;
	height: 100%;
	min-height: 320px;
	object-fit: cover;
	object-position: center 35%;
	filter: contrast(1.05) grayscale(0.15);
}

@media (max-width: 900px) {
	.hero__content {
		grid-template-columns: 1fr;
	}

	.hero__meta {
		padding-left: 0;
		flex-direction: column;
	}
}

/* Events grid */
.events-grid {
	position: relative;
	padding: 3rem var(--dw-gutter) 4rem;
	background: var(--dw-black);
	overflow: hidden;
}

.events-grid__inner {
	position: relative;
	z-index: 1;
	width: min(100%, var(--dw-max));
	margin: 0 auto;
}

.events-filters {
	display: grid;
	grid-template-columns: 120px repeat(3, minmax(0, 1fr));
	gap: 0;
	margin-bottom: 1.5rem;
	border: 1px solid var(--dw-white);
}

.events-filters__label {
	display: flex;
	align-items: center;
	padding: 0 1rem;
	font-size: 0.9375rem;
	font-weight: 500;
	letter-spacing: 0.04em;
}

.events-filters__control {
	position: relative;
	border-left: 1px solid var(--dw-white);
}

.events-filters__control select {
	appearance: none;
	width: 100%;
	height: 40px;
	padding: 0 2.5rem 0 1rem;
	border: 0;
	background: var(--dw-black) url("../images/arrow.svg") right 1rem center / 12px no-repeat;
	color: var(--dw-white);
	font-family: var(--dw-font-body);
	font-size: 0.9375rem;
	font-weight: 500;
	cursor: pointer;
}

.events-grid__tiles {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1.25rem;
}

.event-tile {
	position: relative;
	aspect-ratio: 1;
	overflow: hidden;
	background: var(--dw-gray);
	text-decoration: none;
	color: var(--dw-white);
}

.event-tile__media {
	position: absolute;
	inset: 0;
	overflow: hidden;
	pointer-events: none;
}

.event-tile__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s var(--dw-ease);
}

.event-tile > .event-tile__image {
	position: absolute;
	inset: 0;
}

.event-tile__cube-scene {
	position: absolute;
	inset: 0;
	perspective: 1400px;
	perspective-origin: 50% 50%;
	overflow: hidden;
}

.event-tile__cube {
	position: absolute;
	inset: 0;
	transform-style: preserve-3d;
	transform: translateZ(calc(var(--cube-depth, 50%) * -1));
	will-change: transform;
}

.event-tile__cube.is-animating {
	transition: transform 0.75s cubic-bezier(0.45, 0.05, 0.25, 1);
}

.event-tile__cube-face {
	position: absolute;
	inset: 0;
	background-color: #1a1a1a;
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
	backface-visibility: hidden;
	-webkit-backface-visibility: hidden;
}

.event-tile__cube-face[data-face="front"] {
	transform: translateZ(var(--cube-depth, 50%));
}

/* Pivot face orientation is set inline by JS based on spin direction. */

.event-tile:hover > .event-tile__image,
.event-tile:hover .event-tile__video {
	transform: scale(1.06);
}

.event-tile__video {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s var(--dw-ease);
}

.event-tile__overlay {
	position: absolute;
	inset: auto 0 0;
	z-index: 2;
	padding: 1rem;
	background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
	opacity: 0;
	transition: opacity 0.3s var(--dw-ease);
}

.event-tile:hover .event-tile__overlay {
	opacity: 1;
}

.event-tile__title {
	font-family: var(--dw-font-display);
	font-size: 1.5rem;
	text-transform: uppercase;
}

.event-tile--cta {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding: 1.75rem 1.5rem;
	background: var(--dw-orange);
	color: var(--dw-black);
}

.event-tile__cta-text {
	margin: 0;
	font-family: var(--dw-font-display);
	font-size: clamp(2rem, 3.5vw, 4rem);
	line-height: 0.9;
	text-transform: uppercase;
}

.event-tile.is-hidden,
.schedule-item.is-hidden {
	display: none;
}

@media (max-width: 1100px) {
	.events-grid__tiles {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 700px) {
	.events-filters {
		grid-template-columns: 1fr;
	}

	.events-filters__label,
	.events-filters__control {
		border-left: 0;
		border-top: 1px solid var(--dw-white);
	}

	.events-filters__label {
		border-top: 0;
		min-height: 40px;
	}

	.events-grid__tiles {
		grid-template-columns: 1fr;
	}
}

/* Slack CTA */
.slack-cta {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
	background: var(--dw-black);
	overflow: hidden;
}

.slack-cta__texture {
	position: absolute;
	inset: 0;
	background: url("../images/background-texture.png") center / cover no-repeat;
	pointer-events: none;
	z-index: 0;
}

.slack-cta__media {
	position: relative;
	z-index: 1;
	background: transparent;
}

.slack-cta__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	filter: grayscale(1) contrast(1.15);
}

.slack-cta__content {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 1.25rem;
	padding: clamp(2rem, 6vw, 5rem) var(--dw-gutter);
	background: transparent;
}

.slack-cta__icon {
	width: 48px;
	height: 48px;
}

.slack-cta__headline {
	margin: 0;
	font-family: var(--dw-font-display);
	font-size: clamp(3.5rem, 7vw, 6rem);
	font-weight: 400;
	line-height: 0.9;
	text-transform: uppercase;
	color: var(--dw-orange);
}

.slack-cta__copy {
	margin: 0;
	max-width: 40rem;
	font-size: clamp(1.25rem, 2vw, 2rem);
	font-weight: 500;
	line-height: 1.15;
}

@media (max-width: 900px) {
	.slack-cta {
		grid-template-columns: 1fr;
	}

	.slack-cta__media {
		min-height: 280px;
	}
}

/* Pass CTA */
.pass-cta {
	display: grid;
	grid-template-columns: 1fr 1fr;
	min-height: 700px;
}

.pass-cta__content {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 1.25rem;
	padding: clamp(2.5rem, 6vw, 5rem) clamp(2rem, 5vw, 5.75rem);
	background: var(--dw-orange);
	color: var(--dw-black);
	overflow: hidden;
}

.pass-cta__headline {
	margin: 0;
	font-family: var(--dw-font-display);
	font-size: clamp(3.5rem, 7vw, 8rem);
	font-weight: 400;
	line-height: 0.9;
	text-transform: uppercase;
	max-width: 10ch;
}

.pass-cta__subhead {
	margin: 0;
	font-family: var(--dw-font-display);
	font-size: clamp(2rem, 3.5vw, 4rem);
	line-height: 0.95;
	text-transform: uppercase;
	max-width: 18ch;
}

.pass-cta__copy {
	margin: 0 0 0.5rem;
	max-width: 28rem;
	font-size: clamp(1.25rem, 2vw, 2rem);
	font-weight: 500;
}

.pass-cta__media {
	background: #1c1c1c;
	overflow: hidden;
}

.pass-cta__media img {
	width: 100%;
	height: 100%;
	min-height: 420px;
	object-fit: cover;
	object-position: bottom center;
	filter: grayscale(1) contrast(1.05);
}

@media (max-width: 900px) {
	.pass-cta {
		grid-template-columns: 1fr;
	}
}

/* Schedule */
.schedule {
	position: relative;
	padding: 4rem var(--dw-gutter) 5rem;
	background: var(--dw-black);
	/* Keep overflow visible so sticky tower can pin while the list scrolls. */
	overflow: visible;
}

.schedule__texture {
	position: absolute;
	inset: 0;
	overflow: hidden;
	pointer-events: none;
	z-index: 0;
	container-type: size;
}

.schedule__texture::before {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	/* Swap axes so cover fills the section after the 90° rotation. */
	width: 100cqh;
	height: 100cqw;
	background: url("../images/background-texture.png") center / cover no-repeat;
	transform: translate(-50%, -50%) rotate(90deg);
}

.schedule__tower {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	width: min(42vw, 620px);
	pointer-events: none;
	z-index: 1;
	mask-image: linear-gradient(90deg, transparent 0%, #000 18%, #000 100%);
}

.schedule__tower-sticky {
	position: sticky;
	top: calc(var(--dw-header-h) + 1.5rem);
	display: flex;
	align-items: flex-start;
	justify-content: flex-end;
	/* Never taller than the schedule itself (avoids glitches on short lists). */
	height: 100%;
	max-height: calc(100vh - var(--dw-header-h) - 2rem);
	overflow: hidden;
}

.schedule.is-compact .schedule__tower-sticky {
	position: absolute;
	inset: 0;
	max-height: none;
}

.schedule__tower img {
	display: block;
	width: auto;
	height: 100%;
	max-width: none;
	object-fit: contain;
	object-position: right top;
	opacity: 0.72;
	/* Peek the top of the tower at the bottom of the frame; JS lifts it on scroll. */
	transform: translate3d(0, 70%, 0);
	will-change: transform;
	transition: transform 0.05s linear;
}

.schedule.is-compact .schedule__tower img {
	/* Slightly smoother interpolation when progress is viewport-driven. */
	transition: transform 0.12s linear;
}

@media (prefers-reduced-motion: reduce) {
	.schedule__tower img {
		transform: none;
	}
}

.schedule__inner {
	position: relative;
	z-index: 2;
	width: min(100%, var(--dw-max));
	margin: 0 auto;
}

.schedule__title {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	margin: 0 0 2.5rem;
	font-family: var(--dw-font-display);
	font-size: clamp(3.5rem, 8vw, 8rem);
	font-weight: 400;
	line-height: 0.9;
	text-transform: uppercase;
	color: var(--dw-orange);
}

.schedule__list {
	list-style: none;
	margin: 0;
	padding: 0;
	border-top: 1px solid rgba(255, 255, 255, 0.85);
}

.schedule-item {
	display: grid;
	grid-template-columns: minmax(140px, 0.22fr) minmax(120px, 0.18fr) minmax(0, 0.6fr);
	gap: clamp(1rem, 3vw, 2.5rem);
	padding: 2rem 0 2.5rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.85);
}

.schedule-item__date {
	font-family: var(--dw-font-display);
	font-size: clamp(2.25rem, 4vw, 4rem);
	line-height: 0.92;
	text-transform: uppercase;
	color: var(--dw-orange);
}

.schedule-item__day,
.schedule-item__weekday {
	display: block;
}

.schedule-item__time {
	font-family: var(--dw-font-display);
	font-size: clamp(2.25rem, 4vw, 4rem);
	line-height: 0.92;
	text-transform: uppercase;
	color: var(--dw-gray);
}

.schedule-item__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-bottom: 0.75rem;
}

.tag {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 25px;
	padding: 0 0.85rem;
	border-radius: 999px;
	background: var(--tag-bg, #fff);
	color: var(--dw-black);
	font-size: 0.8125rem;
	font-weight: 500;
}

.schedule-item__title {
	margin: 0 0 0.5rem;
	font-family: var(--dw-font-display);
	font-size: clamp(2.25rem, 4vw, 4rem);
	font-weight: 400;
	line-height: 0.95;
	text-transform: uppercase;
	color: var(--dw-orange);
}

.schedule-item__location {
	margin: 0 0 1.25rem;
	font-size: clamp(1.25rem, 2vw, 2rem);
	font-weight: 500;
	color: var(--dw-gray);
}

@media (max-width: 1100px) {
	.schedule__tower {
		width: min(36vw, 420px);
	}
}

@media (max-width: 900px) {
	.schedule__title {
		flex-direction: column;
	}

	.schedule-item {
		grid-template-columns: 1fr 1fr;
	}

	.schedule-item__details {
		grid-column: 1 / -1;
	}

	.schedule__tower {
		width: min(55vw, 280px);
		opacity: 0.35;
		mask-image: linear-gradient(90deg, transparent 0%, #000 40%, #000 100%);
	}

	.schedule__tower img {
		opacity: 0.45;
	}
}

/* Sponsors */
.sponsors {
	padding: 3rem var(--dw-gutter) 4rem;
	background: var(--dw-black);
}

.sponsors__inner {
	width: min(100%, var(--dw-max));
	margin: 0 auto;
}

.sponsors__intro {
	display: grid;
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
	gap: 1.5rem;
	align-items: end;
	margin-bottom: 2.5rem;
}

.sponsors__title {
	margin: 0;
	font-family: var(--dw-font-display);
	font-size: clamp(3.5rem, 7vw, 8rem);
	font-weight: 400;
	line-height: 0.9;
	text-transform: uppercase;
	color: var(--dw-orange);
}

.sponsors__copy {
	margin: 0;
	max-width: 40rem;
	font-size: clamp(1.25rem, 2vw, 2rem);
	font-weight: 500;
}

.sponsors__grid {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 1rem;
}

.sponsors__logo {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: min(100%, 220px);
	min-height: 147px;
	background: var(--dw-gray-light);
	padding: 1rem;
	color: inherit;
	text-decoration: none;
	transition: background-color 0.2s ease;
}

a.sponsors__logo:hover,
a.sponsors__logo:focus-visible {
	background: #e8e8e8;
}

.sponsors__logo img {
	max-height: 80px;
	width: auto;
	object-fit: contain;
}

.sponsors__logo--placeholder {
	background: var(--dw-gray-light);
}

@media (max-width: 900px) {
	.sponsors__intro {
		grid-template-columns: 1fr;
	}
}

/* Footer */
.site-footer {
	padding: 1.5rem var(--dw-gutter) 2.5rem;
	border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.site-footer__inner {
	width: min(100%, var(--dw-max));
	margin: 0 auto;
}

.site-footer__legal,
.site-footer__contact {
	margin: 0.25rem 0;
	font-size: 0.9375rem;
	font-weight: 500;
	line-height: 1.2;
}

.site-footer a {
	color: var(--dw-white);
}

/* Motion */
@media (prefers-reduced-motion: no-preference) {
	.hero__logo img,
	.hero__intro,
	.hero__meta {
		animation: dw-rise 0.9s var(--dw-ease) both;
	}

	.hero__intro {
		animation-delay: 0.12s;
	}

	.hero__meta {
		animation-delay: 0.22s;
	}

	.hero__media img {
		animation: dw-fade 1.2s var(--dw-ease) both;
	}

	.event-tile,
	.schedule-item {
		animation: dw-rise 0.7s var(--dw-ease) both;
	}
}

@keyframes dw-rise {
	from {
		opacity: 0;
		transform: translateY(18px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes dw-fade {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

.site-main--fallback {
	padding: 6rem var(--dw-gutter);
}
