/* Taching Open v2 — athletic editorial rebrand */

:root {
	--ink: #0c1220;
	--ink-soft: #243044;
	--paper: #e7edf2;
	--paper-2: #d5e0e8;
	--white: #f7fafc;
	--lime: #c8f542;
	--lime-deep: #a8d62a;
	--water: #0d7ea8;
	--water-deep: #085a7a;
	--line: rgba(12, 18, 32, 0.12);
	--font-display: "Syne", sans-serif;
	--font-body: "Space Grotesk", system-ui, sans-serif;
	--header-h: 68px;
	--ease: cubic-bezier(0.16, 1, 0.3, 1);
	--space: clamp(1.25rem, 3vw, 2rem);
	/* Unified heading scale — same family across laptop / tablet / mobile */
	--h-section: clamp(1.7rem, 1.15rem + 1.6vw, 2.45rem);
	--h-display: clamp(1.85rem, 1.25rem + 1.8vw, 2.75rem);
	--h-card: clamp(1.45rem, 1.1rem + 1.1vw, 2rem);
	--h-num: clamp(2rem, 1.4rem + 1.8vw, 3.25rem);
}

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

html {
	scroll-behavior: smooth;
	overflow-x: clip;
	max-width: 100%;
}

body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 1.05rem;
	line-height: 1.6;
	color: var(--ink);
	background: var(--paper);
	-webkit-font-smoothing: antialiased;
	overflow-x: clip;
	max-width: 100%;
	width: 100%;
}

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

a {
	color: inherit;
	text-decoration: none;
}

h1,
h2,
h3 {
	font-family: var(--font-display);
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 0.95;
	margin: 0;
	overflow-wrap: normal;
	word-break: normal;
	hyphens: manual;
}

p {
	margin: 0;
}

.container {
	width: min(1180px, calc(100% - 2.5rem));
	margin-inline: auto;
	max-width: 100%;
	min-width: 0;
}

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
}

.skip-link {
	position: absolute;
	left: 1rem;
	top: -120px;
	z-index: 2000;
	background: var(--lime);
	color: var(--ink);
	padding: 0.75rem 1rem;
	font-weight: 700;
}

.skip-link:focus {
	top: 1rem;
}

.eyebrow {
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--water);
	margin-bottom: 0.85rem;
}

.section-head {
	display: flex;
	gap: 1.25rem;
	align-items: end;
	margin-bottom: clamp(2rem, 5vw, 3.25rem);
	min-width: 0;
}

.section-head h2 {
	font-size: var(--h-section);
	line-height: 1.05;
	max-width: none;
	overflow-wrap: normal;
	word-break: normal;
	white-space: normal;
}

.section-head__num {
	font-family: var(--font-display);
	font-size: var(--h-num);
	font-weight: 800;
	line-height: 0.8;
	color: transparent;
	-webkit-text-stroke: 1.5px rgba(12, 18, 32, 0.28);
	flex: 0 0 auto;
}

.section-head--light .section-head__num {
	-webkit-text-stroke-color: rgba(247, 250, 252, 0.28);
}

.section-head--light .eyebrow {
	color: var(--lime);
}

.section-head--light h2 {
	color: var(--white);
}

/* Buttons */
.btn {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	padding: 1rem 1.5rem;
	font-family: var(--font-body);
	font-size: 0.92rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	border: 0;
	cursor: pointer;
	transition: transform 0.4s var(--ease), background 0.35s ease, color 0.35s ease;
}

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

.btn--solid {
	background: var(--lime);
	color: var(--ink);
}

.btn--solid:hover {
	background: var(--white);
}

.btn--ink {
	background: var(--ink);
	color: var(--white);
}

.btn--ink:hover {
	background: var(--water);
}

.btn--ghost {
	background: transparent;
	color: var(--white);
	border: 2px solid rgba(255, 255, 255, 0.55);
}

.btn--ghost:hover {
	background: rgba(255, 255, 255, 0.12);
	border-color: var(--white);
}

.btn__arrow {
	width: 18px;
	height: 2px;
	background: currentColor;
	position: relative;
}

.btn__arrow::after {
	content: "";
	position: absolute;
	right: 0;
	top: -4px;
	width: 10px;
	height: 10px;
	border-right: 2px solid currentColor;
	border-top: 2px solid currentColor;
	transform: rotate(45deg);
}

/* Header */
.site-header {
	position: fixed;
	inset: 0 0 auto;
	z-index: 100;
	height: var(--header-h);
	transition: background 0.35s ease, color 0.35s ease;
	color: var(--white);
}

.site-header.is-scrolled {
	background: rgba(231, 237, 242, 0.92);
	backdrop-filter: blur(16px);
	color: var(--ink);
	border-bottom: 1px solid var(--line);
}

.site-header__inner {
	width: min(1240px, calc(100% - 2rem));
	margin-inline: auto;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	min-width: 0;
}

.site-brand {
	display: inline-flex;
	align-items: center;
	gap: 0.65rem;
	font-family: var(--font-display);
	font-weight: 800;
	font-size: 1.05rem;
	letter-spacing: -0.02em;
	min-width: 0;
}

.site-brand__stack {
	display: grid;
	gap: 0.1rem;
	min-width: 0;
}

.site-brand__org {
	font-family: var(--font-body);
	font-size: 0.62rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	opacity: 0.75;
	white-space: normal;
	overflow: visible;
	line-height: 1.25;
	max-width: 100%;
}

.site-brand__dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--lime);
	box-shadow: 0 0 0 0 rgba(200, 245, 66, 0.5);
	animation: pulse-dot 2.4s ease-out infinite;
}

.site-nav {
	flex: 0 1 auto;
	min-width: 0;
}

.site-menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	align-items: center;
	gap: 1.1rem;
}

.site-menu a {
	font-size: 0.88rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	opacity: 0.9;
}

.site-menu a:hover {
	opacity: 1;
}

.site-menu__cta {
	padding: 0.55rem 1rem;
	background: var(--lime);
	color: var(--ink) !important;
	opacity: 1 !important;
	white-space: nowrap;
}

.nav-toggle {
	display: none;
	width: 44px;
	height: 44px;
	border: 0;
	background: transparent;
	padding: 0;
	cursor: pointer;
}

.nav-toggle span:not(.sr-only) {
	display: block;
	width: 22px;
	height: 2px;
	margin: 6px auto;
	background: currentColor;
}

/* Hero */
.hero {
	position: relative;
	min-height: 100svh;
	color: var(--white);
	display: flex;
	align-items: stretch;
	overflow: hidden;
}

.hero__media {
	position: absolute;
	inset: 0;
	overflow: hidden;
}

.hero__img {
	width: 100%;
	height: 120%;
	object-fit: cover;
	transform: translate3d(0, 0, 0) scale(1.05);
	will-change: transform;
}

.hero__veil {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(180deg, rgba(12, 18, 32, 0.35) 0%, rgba(12, 18, 32, 0.15) 35%, rgba(12, 18, 32, 0.72) 100%),
		linear-gradient(90deg, rgba(8, 90, 122, 0.35), transparent 55%);
}

.hero__frame {
	position: relative;
	z-index: 1;
	width: min(1180px, calc(100% - 2.5rem));
	margin: 0 auto;
	padding: calc(var(--header-h) + 1.5rem) 0 2.25rem;
	display: grid;
	grid-template-rows: auto 1fr auto;
	min-height: 100svh;
	min-width: 0;
	max-width: 100%;
	box-sizing: border-box;
	container-type: inline-size;
	container-name: hero;
}

.hero__meta {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 1rem;
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	opacity: 0;
	animation: rise 0.9s var(--ease) 0.15s forwards;
	min-width: 0;
	max-width: 100%;
	overflow: visible;
}

.hero__loc {
	min-width: 0;
	flex: 1 1 auto;
	overflow: visible;
	white-space: normal;
	max-width: 100%;
	line-height: 1.35;
}

.hero__year {
	flex: 0 0 auto;
	padding: 0.35rem 0.7rem;
	background: var(--lime);
	color: var(--ink);
	letter-spacing: 0.12em;
}

.hero__title {
	align-self: end;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	/* Fit longest brand word (~7 glyphs) into the hero frame */
	font-size: clamp(2.35rem, 10.5vw, 8rem);
	font-size: clamp(2.35rem, min(18cqi, 10.5vw), 8rem);
	text-transform: uppercase;
	padding-bottom: 0.08em;
	letter-spacing: -0.025em;
	overflow: visible;
}

.hero__line {
	display: block;
	overflow: hidden;
	opacity: 0;
	transform: translateY(110%);
	animation: title-in 1s var(--ease) forwards;
	max-width: 100%;
}

.hero__line-inner {
	display: block;
	max-width: 100%;
	white-space: nowrap;
	overflow: visible;
}

.hero__line--a {
	animation-delay: 0.25s;
}

.hero__line--b {
	color: var(--lime);
	animation-delay: 0.42s;
}

.hero__line--b .hero__line-inner {
	display: inline-flex;
	align-items: center;
	gap: 0.12em;
}

.hero__slash {
	display: inline-block;
	width: 0.45em;
	height: 0.08em;
	background: currentColor;
	transform: rotate(-18deg);
	flex: 0 0 auto;
}

.hero__footer {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 1.25rem;
	flex-wrap: wrap;
	padding-top: 1.5rem;
	border-top: 1px solid rgba(255, 255, 255, 0.22);
	opacity: 0;
	animation: rise 0.9s var(--ease) 0.7s forwards;
	min-width: 0;
	max-width: 100%;
}

.hero__tagline {
	font-size: clamp(0.9rem, 2vw, 1.2rem);
	font-weight: 500;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	max-width: none;
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

/* Marquee */
.marquee {
	overflow: hidden;
	background: var(--ink);
	color: var(--lime);
	border-block: 1px solid rgba(200, 245, 66, 0.25);
	padding: 0.85rem 0;
}

.marquee__track {
	display: flex;
	gap: 1.25rem;
	width: max-content;
	animation: marquee 28s linear infinite;
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 1.05rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	white-space: nowrap;
}

.marquee__sep {
	color: var(--water);
}

/* About */
.about {
	position: relative;
	padding: clamp(4.5rem, 11vw, 8rem) 0;
	overflow: hidden;
}

.about__bg {
	position: absolute;
	inset: 10% -10% auto auto;
	width: min(55vw, 620px);
	height: min(55vw, 620px);
	border-radius: 50%;
	background: radial-gradient(circle, rgba(13, 126, 168, 0.18), transparent 68%);
	pointer-events: none;
}

.about__grid {
	position: relative;
	display: grid;
	grid-template-columns: 0.35fr 1fr;
	gap: clamp(1.5rem, 5vw, 4rem);
	align-items: start;
}

.about__index span {
	display: block;
	font-family: var(--font-display);
	font-size: var(--h-num);
	font-weight: 800;
	line-height: 0.8;
	color: transparent;
	-webkit-text-stroke: 1.5px rgba(12, 18, 32, 0.22);
	margin-bottom: 1rem;
}

.about__heading {
	font-size: var(--h-display);
	line-height: 1.05;
	white-space: pre-line;
	margin-bottom: 1.5rem;
	max-width: none;
	overflow-wrap: normal;
	word-break: normal;
	hyphens: manual;
}

.about__text {
	max-width: 38rem;
	font-size: 1.12rem;
	color: var(--ink-soft);
	border-left: 3px solid var(--lime);
	padding-left: 1.25rem;
}

/* Events */
.events {
	padding: clamp(4rem, 9vw, 7rem) 0 0;
	background:
		linear-gradient(180deg, var(--paper-2), var(--paper) 30%);
}

.events__list {
	display: grid;
	gap: 0;
}

.event-row {
	display: grid;
	grid-template-columns: 1.05fr 0.95fr;
	min-height: min(78vh, 720px);
	background: var(--white);
}

.event-row--flip {
	grid-template-columns: 0.95fr 1.05fr;
}

.event-row--flip .event-row__media {
	order: 2;
}

.event-row--flip .event-row__body {
	order: 1;
}

.event-row__media {
	margin: 0;
	overflow: hidden;
	background: var(--ink);
}

.event-row__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	min-height: 420px;
	transition: transform 1s var(--ease);
}

.event-row:hover .event-row__media img {
	transform: scale(1.05);
}

.event-row__body {
	padding: clamp(2rem, 5vw, 4rem);
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 1.25rem;
	background:
		linear-gradient(145deg, rgba(200, 245, 66, 0.12), transparent 40%),
		var(--white);
}

.event-row__index {
	font-family: var(--font-display);
	font-size: 1rem;
	font-weight: 700;
	letter-spacing: 0.18em;
	color: var(--water);
}

.event-row__body h3 {
	font-size: var(--h-card);
	max-width: none;
	overflow-wrap: normal;
	word-break: normal;
	line-height: 1.05;
}

.event-row__text {
	white-space: pre-line;
	color: var(--ink-soft);
	font-size: 1.05rem;
	max-width: 28rem;
}

/* Features */
.features {
	padding: clamp(4.5rem, 10vw, 7.5rem) 0 0;
	background: var(--ink);
	color: var(--white);
}

.features__stack {
	display: grid;
	grid-template-columns: repeat(12, 1fr);
	gap: 0.75rem;
	width: min(1240px, calc(100% - 1.5rem));
	margin: 0 auto 0.75rem;
}

.feature-panel {
	position: relative;
	min-height: clamp(280px, 42vw, 460px);
	overflow: hidden;
	grid-column: span 4;
}

.feature-panel:nth-child(1) {
	grid-column: span 5;
}

.feature-panel:nth-child(2) {
	grid-column: span 7;
	margin-top: 3rem;
}

.feature-panel:nth-child(3) {
	grid-column: 3 / span 8;
	min-height: clamp(260px, 36vw, 400px);
}

.feature-panel img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.9s var(--ease);
	filter: saturate(1.05);
}

.feature-panel:hover img {
	transform: scale(1.06);
}

.feature-panel__copy {
	position: absolute;
	inset: auto 0 0;
	padding: 1.5rem;
	background: linear-gradient(to top, rgba(12, 18, 32, 0.92), transparent);
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 1rem;
}

.feature-panel__copy span {
	font-size: 0.8rem;
	letter-spacing: 0.16em;
	color: var(--lime);
}

.feature-panel__copy h3 {
	font-size: var(--h-card);
}

.features__wide {
	position: relative;
	margin: 0;
	overflow: hidden;
	max-height: 520px;
}

.features__wide img {
	width: 100%;
	height: 520px;
	object-fit: cover;
	filter: contrast(1.05);
}

.features__wide figcaption {
	position: absolute;
	inset: auto 0 8% 0;
	text-align: center;
	font-family: var(--font-display);
	font-weight: 800;
	font-size: clamp(3rem, 12vw, 9rem);
	letter-spacing: -0.05em;
	line-height: 0.85;
	color: transparent;
	-webkit-text-stroke: 2px rgba(247, 250, 252, 0.75);
	text-transform: uppercase;
	pointer-events: none;
}

/* Footer */
.site-footer {
	background: var(--lime);
	color: var(--ink);
	padding: clamp(3.5rem, 8vw, 5.5rem) 0 1.5rem;
	width: 100%;
	overflow: visible;
}

.site-footer__inner {
	display: grid;
	gap: 1.5rem;
	max-width: 100%;
	min-width: 0;
}

.site-footer .eyebrow {
	color: var(--water-deep);
}

.site-footer__cta {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	font-family: var(--font-display);
	font-weight: 800;
	font-size: clamp(1.75rem, 6vw, 4.2rem);
	letter-spacing: -0.04em;
	line-height: 1;
	max-width: 100%;
	border-bottom: 4px solid var(--ink);
	padding-bottom: 0.15em;
	transition: gap 0.4s var(--ease), color 0.3s ease;
}

.site-footer__cta span:first-child {
	min-width: 0;
	overflow-wrap: anywhere;
}

.site-footer__cta:hover {
	gap: 1.25rem;
	color: var(--water-deep);
}

.site-footer__brand {
	font-family: var(--font-display);
	font-weight: 800;
	font-size: clamp(1.15rem, 8.5vw, 6.5rem);
	line-height: 1;
	letter-spacing: -0.04em;
	text-transform: uppercase;
	opacity: 0.22;
	margin: 1.25rem 0 0;
	padding-inline: max(1rem, env(safe-area-inset-left)) max(1rem, env(safe-area-inset-right));
	user-select: none;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	white-space: nowrap;
	overflow: hidden;
	text-align: left;
}

.site-footer__bar {
	margin-top: 2rem;
	padding-top: 1rem;
	border-top: 1px solid rgba(12, 18, 32, 0.18);
	font-size: 0.9rem;
	font-weight: 500;
}

.content-fallback {
	padding: 8rem 0 4rem;
}

/* Motion */
.reveal {
	opacity: 0;
	transform: translateY(36px);
	transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.reveal.is-visible {
	opacity: 1;
	transform: none;
}

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

@keyframes title-in {
	from {
		opacity: 0;
		transform: translateY(110%);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

@keyframes marquee {
	from {
		transform: translateX(0);
	}
	to {
		transform: translateX(-50%);
	}
}

@keyframes pulse-dot {
	0% {
		box-shadow: 0 0 0 0 rgba(200, 245, 66, 0.55);
	}
	70% {
		box-shadow: 0 0 0 12px rgba(200, 245, 66, 0);
	}
	100% {
		box-shadow: 0 0 0 0 rgba(200, 245, 66, 0);
	}
}

/* Responsive */
@media (max-width: 980px) {
	.about__grid,
	.event-row,
	.event-row--flip {
		grid-template-columns: 1fr;
	}

	.event-row--flip .event-row__media,
	.event-row--flip .event-row__body {
		order: initial;
	}

	.feature-panel,
	.feature-panel:nth-child(1),
	.feature-panel:nth-child(2),
	.feature-panel:nth-child(3) {
		grid-column: span 12;
		margin-top: 0;
		min-height: 280px;
	}

	.hero__title {
		font-size: clamp(2.5rem, 11vw, 5.5rem);
		font-size: clamp(2.5rem, min(17cqi, 11vw), 5.5rem);
	}

	.event-row__body {
		padding: 1.75rem 1.35rem;
		min-width: 0;
	}

	.event-row__body h3 {
		max-width: none;
	}

	.event-row__media img {
		min-height: 280px;
	}

	.features__stack,
	.features__wide {
		width: min(1240px, calc(100% - 1.5rem));
		max-width: 100%;
	}

	.features__wide figcaption {
		font-size: clamp(2rem, 10vw, 5rem);
	}

	.site-footer__cta {
		font-size: clamp(1.6rem, 5.5vw, 3.2rem);
	}

	.archive-grid,
	.media-grid__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 900px) {
	.nav-toggle {
		display: block;
		flex: 0 0 auto;
	}

	.site-nav {
		flex: 0 0 auto;
	}

	.site-brand {
		flex: 1 1 auto;
		max-width: calc(100% - 3.5rem);
	}

	.site-brand__text {
		font-size: 0.95rem;
	}

	.site-menu {
		position: absolute;
		top: calc(var(--header-h) + 0.35rem);
		right: max(0.75rem, env(safe-area-inset-right));
		left: max(0.75rem, env(safe-area-inset-left));
		flex-direction: column;
		align-items: stretch;
		gap: 0.2rem;
		padding: 0.6rem;
		background: var(--paper);
		color: var(--ink);
		border: 1px solid var(--line);
		opacity: 0;
		pointer-events: none;
		transform: translateY(-8px);
		transition: opacity 0.3s ease, transform 0.3s ease;
		z-index: 120;
		max-width: none;
	}

	.site-menu.is-open {
		opacity: 1;
		pointer-events: auto;
		transform: none;
	}

	.site-menu a {
		padding: 0.85rem 1rem;
	}

	.site-menu__cta {
		text-align: center;
	}
}

@media (max-width: 760px) {
	.hero {
		min-height: 100svh;
	}

	.hero__frame {
		width: min(1180px, calc(100% - 1.5rem));
		padding: calc(var(--header-h) + 1rem) 0 1.5rem;
		min-height: 100svh;
	}

	.hero__title {
		font-size: clamp(2.15rem, 12.5vw, 3.4rem);
		font-size: clamp(2.15rem, calc((100cqi - 0.25rem) / 5.6), 3.4rem);
		letter-spacing: -0.03em;
	}

	.hero__line--b .hero__line-inner {
		gap: 0.08em;
	}

	.hero__slash {
		width: 0.38em;
	}

	.hero__meta {
		flex-direction: column;
		align-items: flex-start;
	}

	.hero__footer {
		flex-direction: column;
		align-items: stretch;
	}

	.hero__tagline {
		max-width: none;
	}

	.hero__actions {
		width: 100%;
	}

	.hero__actions .btn {
		flex: 1 1 auto;
		min-width: 0;
		justify-content: center;
		padding: 0.9rem 1rem;
		font-size: 0.82rem;
	}

	.btn {
		justify-content: center;
		max-width: 100%;
	}

	.section-head {
		flex-direction: column;
		align-items: start;
		gap: 0.35rem;
	}

	.section-head h2 {
		white-space: normal;
		font-size: clamp(1.5rem, 5vw, 1.85rem);
	}

	.about__heading,
	.page-hero h1,
	.register-card h2,
	.tournament-single__head h1 {
		font-size: clamp(1.65rem, 5.5vw, 2.1rem);
		line-height: 1.05;
		max-width: none;
	}

	.about {
		overflow-x: clip;
		overflow-y: visible;
		padding: 3.5rem 0;
	}

	.about__bg {
		width: min(70vw, 320px);
		height: min(70vw, 320px);
		inset: 5% -20% auto auto;
	}

	.about__text {
		font-size: 1rem;
		padding-left: 1rem;
	}

	.about__chips {
		gap: 0.45rem;
	}

	.chip {
		max-width: 100%;
		overflow-wrap: anywhere;
	}

	.event-row__media img {
		min-height: 220px;
	}

	.features__stack,
	.features__wide {
		width: calc(100% - 1rem);
		margin-inline: auto;
	}

	.feature-panel {
		min-height: 240px;
	}

	.feature-panel__copy h3 {
		font-size: clamp(1.4rem, 7vw, 2rem);
	}

	.feature-panel__copy {
		padding: 1rem;
	}

	.features__wide {
		min-height: 220px;
	}

	.features__wide figcaption {
		font-size: clamp(1.6rem, 11vw, 3rem);
		inset: auto 0 6% 0;
		padding-inline: 0.5rem;
	}

	.site-footer {
		padding: 3rem 0 calc(1.25rem + env(safe-area-inset-bottom));
	}

	.site-footer__cta {
		font-size: clamp(1.45rem, 8vw, 2.4rem);
		border-bottom-width: 3px;
		max-width: 100%;
	}

	.site-footer__brand {
		font-size: clamp(1.1rem, calc((100vw - 2rem) / 9.8), 2.4rem);
		padding-inline: 1rem;
	}

	.site-brand__org {
		max-width: none;
		font-size: 0.58rem;
		letter-spacing: 0.04em;
	}

	.container {
		width: min(1180px, calc(100% - 1.5rem));
	}

	.archive-grid,
	.media-grid__list {
		grid-template-columns: 1fr;
	}

	.page-shell {
		padding-top: calc(var(--header-h) + 1.25rem);
		overflow-x: clip;
	}

	.filter-bar,
	.chip-row {
		display: flex;
		flex-wrap: wrap;
		gap: 0.45rem;
	}

	.media-block__head,
	.register-card {
		flex-direction: column;
		align-items: flex-start;
	}
}

@media (max-width: 420px) {
	.hero__title {
		font-size: clamp(1.95rem, 11.5vw, 2.6rem);
		font-size: clamp(1.95rem, calc((100cqi - 0.1rem) / 5.85), 2.6rem);
	}

	.site-footer__cta span:first-child {
		overflow-wrap: anywhere;
		white-space: normal;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation: none !important;
		transition: none !important;
	}

	.reveal,
	.hero__meta,
	.hero__footer,
	.hero__line {
		opacity: 1 !important;
		transform: none !important;
	}
}

/* Chips / links */
.chip {
	display: inline-flex;
	align-items: center;
	padding: 0.45rem 0.85rem;
	border: 1px solid var(--line);
	background: rgba(255, 255, 255, 0.7);
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.04em;
}

.chip--link {
	cursor: pointer;
	transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s var(--ease);
}

.chip--link:hover,
.chip.is-active,
a.chip:hover {
	background: var(--lime);
	border-color: var(--lime);
	transform: translateY(-2px);
}

.about__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.55rem;
	margin-top: 1.5rem;
}

.events,
.event-row,
#taching-open,
#bvv-turnier {
	scroll-margin-top: calc(var(--header-h) + 1rem);
}

.text-link {
	font-weight: 700;
	letter-spacing: 0.04em;
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

.event-row__actions,
.events__more,
.archive-teaser__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1rem;
}

.events__more {
	padding: 2rem 0 3.5rem;
}

/* Archive */
.archive-teaser {
	padding: clamp(4rem, 9vw, 6.5rem) 0;
	background: var(--paper-2);
}

.archive-teaser__lead {
	max-width: 40rem;
	margin-bottom: 2rem;
	color: var(--ink-soft);
}

.archive-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1rem;
}

.archive-grid--page {
	padding-bottom: 4rem;
}

.archive-card {
	background: var(--white);
	overflow: hidden;
	min-width: 0;
}

.archive-card a {
	display: grid;
	height: 100%;
}

.archive-card img {
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
}

.archive-card__meta {
	padding: 1.1rem 1.15rem 1.3rem;
}

.archive-card__meta span {
	display: block;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--water);
	margin-bottom: 0.45rem;
}

.archive-card__meta h2,
.archive-card__meta h3 {
	font-size: var(--h-card);
}

.archive-card__meta p {
	margin-top: 0.5rem;
	color: var(--ink-soft);
	font-size: 0.92rem;
}

.archive-empty {
	padding: 1.5rem;
	border: 1px dashed var(--line);
	background: rgba(255, 255, 255, 0.5);
}

.archive-teaser__actions {
	margin-top: 2rem;
}

/* Pages */
.page-shell {
	padding-top: calc(var(--header-h) + 2rem);
}

.page-hero {
	padding-bottom: 2.5rem;
}

.page-hero h1 {
	font-size: var(--h-display);
	max-width: none;
	overflow-wrap: normal;
	word-break: normal;
	line-height: 1.05;
}

.page-hero__lead {
	margin-top: 1rem;
	max-width: 40rem;
	color: var(--ink-soft);
}

.filter-bar {
	display: flex;
	flex-wrap: wrap;
	gap: 0.55rem;
	margin-top: 1.5rem;
}

.register-list {
	display: grid;
	gap: 1rem;
	padding-bottom: 4rem;
}

.register-card {
	display: flex;
	justify-content: space-between;
	align-items: end;
	gap: 1.5rem;
	flex-wrap: wrap;
	padding: 1.5rem;
	background: var(--white);
	border: 1px solid var(--line);
}

.register-card h2 {
	font-size: var(--h-card);
	margin: 0.35rem 0 0.75rem;
}

.page-extra {
	padding-bottom: 4rem;
}

.tournament-single {
	padding-bottom: 4rem;
}

.tournament-single__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 0.5rem;
}

#mediathek {
	scroll-margin-top: calc(var(--header-h) + 1rem);
	padding-bottom: 2rem;
}

.tournament-single__head h1 {
	font-size: var(--h-display);
	line-height: 1.05;
	max-width: none;
}

.tournament-single__dates {
	white-space: pre-line;
	color: var(--ink-soft);
}

.tournament-single__poster {
	margin: 0 0 2rem;
	overflow: hidden;
}

.tournament-single__poster img {
	width: 100%;
	max-height: 640px;
	object-fit: cover;
}

.tournament-single__content {
	max-width: 42rem;
	margin-bottom: 3rem;
}

.tournament-single__back {
	margin-top: 2.5rem;
}

/* Mediathek */
.media-block {
	margin-bottom: 3rem;
}

.media-block__head {
	display: flex;
	justify-content: space-between;
	align-items: end;
	gap: 1rem;
	flex-wrap: wrap;
	margin-bottom: 1rem;
}

.media-block__head h2 {
	font-size: var(--h-card);
}

.media-grid h2 {
	font-size: var(--h-section);
	margin-bottom: 1rem;
}

.media-grid__list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0.75rem;
}

.media-grid__item {
	overflow: hidden;
	background: var(--ink);
	min-width: 0;
}

.media-grid__item img {
	width: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	transition: transform 0.6s var(--ease);
}

.media-grid__item:hover img {
	transform: scale(1.04);
}

.site-footer__links {
	display: flex;
	flex-wrap: wrap;
	gap: 1.25rem;
	font-weight: 700;
}

.lightbox {
	position: fixed;
	inset: 0;
	z-index: 2000;
	background: rgba(12, 18, 32, 0.92);
	display: grid;
	place-items: center;
	padding: 2rem;
}

.lightbox[hidden] {
	display: none;
}

.lightbox img {
	max-width: min(1100px, 100%);
	max-height: 85vh;
	object-fit: contain;
}

.lightbox__close {
	position: absolute;
	top: 1rem;
	right: 1rem;
	width: 48px;
	height: 48px;
	border: 0;
	background: var(--lime);
	color: var(--ink);
	font-size: 1.8rem;
	cursor: pointer;
}

/* ---- Final responsive overrides (must stay last — earlier rules define grids below) ---- */
@media (max-width: 980px) {
	.archive-grid,
	.media-grid__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 760px) {
	.archive-grid,
	.media-grid__list {
		grid-template-columns: 1fr;
	}

	.section-head h2,
	.about__heading,
	.page-hero h1,
	.tournament-single__head h1,
	.register-card h2,
	.media-block__head h2,
	.media-grid h2 {
		white-space: normal;
		overflow-wrap: break-word;
		word-break: normal;
		hyphens: manual;
		max-width: 100%;
	}

	.site-brand {
		max-width: calc(100% - 3.25rem);
	}

	.site-brand__org,
	.hero__loc,
	.hero__tagline,
	.about__text,
	.event-row__text,
	.archive-teaser__lead,
	.page-hero__lead,
	.archive-card__meta,
	.archive-card__meta span,
	.archive-card__meta h2,
	.archive-card__meta h3,
	.archive-card__meta p,
	.feature-panel__copy h3,
	.eyebrow {
		overflow: visible;
		text-overflow: unset;
		white-space: normal;
		max-width: 100%;
	}

	.site-footer__cta {
		white-space: normal;
		font-size: clamp(1.35rem, 7.5vw, 2.1rem);
	}

	.site-footer__cta span:first-child {
		white-space: normal;
		overflow-wrap: break-word;
	}

	.site-footer__brand {
		font-size: clamp(1rem, 7vw, 2rem);
		overflow: hidden;
		letter-spacing: -0.03em;
	}

	.hero__loc {
		letter-spacing: 0.04em;
		font-size: 0.68rem;
	}

	.hero__meta {
		letter-spacing: 0.04em;
	}

	.archive-card__meta {
		min-width: 0;
	}
}

