:root {
	--logo-size: 34;
}

@media only screen and (max-width: 734px) {
	:root {
		--logo-size: 50;
	}
}

.image-hero-wrapper {
	position: relative;
	height: 0;
	/* using variable if need smaller than 100% width */
	padding-top: calc((950 / 950 * 100%) * (var(--logo-size) / 100));
	display: grid;
	place-items: center;
}

@media only screen and (max-width: 734px) {
	.image-hero-wrapper {
		/* using variable if need smaller than 100% width */
		padding-top: calc((950 / 950 * 100%) * (var(--logo-size) / 100));
	}
}

.ssc-logo {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	max-width: 100%;
	height: auto;
	width: calc(var(--logo-size) * 1%);
}

@media only screen and (min-width: 1300px) {
	.section-content.section-content-larger {
		width: 1250px;
	}
}

/* body[data-color-scheme="light"] .bg-alt {
	background-color: #fafafa;
} */

/* ========== Hero Image ========== */

.section-hero-img {
	max-height: 650px;
	overflow: hidden;
}

@media only screen and (max-width: 1068px) {
	.section-hero-img {
		max-height: 700px;
		margin-bottom: -10px;
	}
}

@media only screen and (max-width: 734px) {
	.section-hero-img {
		max-height: 800px;
	}
}

.figure-img-container {
	width: 100%;
	margin: 0 auto;
}

.figure-aspect {
	--figure-width: 1960;
	--figure-height: 1306;
	position: relative;
	height: 0;
	padding-top: calc(var(--figure-height) / var(--figure-width) * 100%);
}

.figure-aspect img {
	position: absolute;
	top: 0px;
	left: 0;
	max-width: 100%;
	height: auto;
}

@media only screen and (max-width: 1500px) {
	.figure-aspect {
		height: unset;
		padding-top: unset;
	}

	.figure-aspect img {
		position: inherit;
		top: unset;
		left: unset;
		max-width: 100%;
		height: auto;
	}
}

/* On wide screens the hero crops from the top and hides the winners.
   Anchor the image to the bottom so the people stay in frame, and give it
   a bit more height to show more of the group. */
@media only screen and (min-width: 1501px) {
	.section-hero-img {
		max-height: 800px;
	}

	.section-hero-img .figure-aspect {
		height: 800px;
		padding-top: 0;
	}

	.section-hero-img .figure-aspect img {
		position: absolute;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		object-fit: cover;
		object-position: center bottom;
	}
}

.section-news .row + * {
	margin-top: 1.5em;
}

/* ========== End Hero Image ========== */

/* Super-mild hero gradient — a faint brand-tinted glow at the top that
   fades into the base background. Kept subtle so text stays readable. */
body[data-color-scheme="light"] .section-hero {
	background-color: #ffffff;
	background-image: radial-gradient(
		130% 100% at 50% -10%,
		#c3ccf1 0%,
		#dfe4f8 40%,
		#ffffff 75%
	);
}

body[data-color-scheme="dark"] .section-hero {
	background-color: #000000;
	background-image: radial-gradient(
		130% 100% at 50% -10%,
		#1e2036 0%,
		#101120 40%,
		#000000 75%
	);
}

.section-hero [aria-hidden="true"] img {
	visibility: hidden;
}

.hero-spacer-img {
	width: 480px;
	height: 480px;
}

@media only screen and (max-width: 734px) {
	.hero-spacer-img {
		width: 330px;
		height: 330px;
	}
}

/* body[data-color-scheme="light"] .section-hero.theme-dark,
body[data-color-scheme="dark"] .section-hero.theme-dark {
	background:
		radial-gradient(
			circle at 50% -10%,
			#46e0ff 0%,
			#211d60 43%,
			rgba(11, 8, 33, 0.45) 80%,
			transparent 85%
		),
		linear-gradient(to bottom, transparent 90%, #000 100%);
	background-repeat: no-repeat;
	background-size: 100% 100%;
	background-color: #000;
} */

/* .hero-year {
	position: absolute;
	font-family:
		"SF Pro Display",
		-apple-system,
		BlinkMacSystemFont,
		sans-serif;
	font-size: 610px;
	font-weight: 700;
	color: #fff;
	opacity: 0.25;
	z-index: 0;
	top: 30%;
	left: 50%;
	transform: translate(-50%, -50%);
	line-height: 1;
	pointer-events: none;
	mix-blend-mode: overlay;
} */

.section-hero .section-content {
	position: relative;
	z-index: 1;
}

@media only screen and (max-width: 1068px) {
	.hero-year {
		font-size: 550px;
		top: 28%;
	}
}

@media only screen and (max-width: 734px) {
	.hero-year {
		font-size: 500px;
		top: 25%;
	}
}

@media only screen and (max-width: 480px) {
	.hero-year {
		font-size: 400px;
		top: 22%;
	}
}

.doodle-hero-1 {
	position: absolute;
	bottom: -80px;
	right: -80px;
}

@media only screen and (max-width: 1068px) {
	.doodle-hero-1 {
		display: none;
	}
}

.badge.badge-reduced {
	color: #000;
	border-color: #000;
	vertical-align: middle;
}

body[data-color-scheme="dark"] .badge.badge-reduced {
	color: #fff;
	border-color: #fff;
}

/* .doodle-hero-2 {
	position: absolute;
	top: 50%;
	left: -70px;
} */
.doodle-parent {
	position: relative;
}

.doodle-3 {
	position: absolute;
	top: -10px;
	left: -18px;
}

.doodle-4 {
	position: absolute;
	bottom: -10px;
	right: -18px;
}

.section-news .row + * {
	margin-top: 2em;
}

@media only screen and (max-width: 734px) {
	.section-news .row + * {
		margin-top: 1.5em;
	}
}

hr {
	margin-top: 3em;
	margin-bottom: 3em;
	border-top-width: medium;
	/* border-color: black; */
}

.accent-get-ready {
	position: absolute;
	top: -28px;
	left: -42px;
	width: 265px;
}

.accent-get-ready-line {
	position: absolute;
	top: 44px;
	left: -11px;
	width: 205px;
}

.accent-distinguished-winners {
	position: absolute;
	top: -18px;
	left: -82px;
	width: 76px;
	transform: rotate(-5deg);
}

.accent-learn {
	position: absolute;
	top: 2px;
	left: -72px;
	width: 49px;
	transform: rotate(-8deg);
}

.accent-next-steps {
	position: absolute;
	top: -33px;
	left: -34px;
	width: 233px;
}

@media only screen and (max-width: 1068px) {
	.accent-get-ready {
		position: absolute;
		top: -28px;
		left: -24px;
		width: 200px;
	}

	.accent-get-ready-line {
		position: absolute;
		top: 37px;
		left: -11px;
		width: 173px;
	}

	.accent-distinguished-winners {
		position: absolute;
		top: -18px;
		left: -82px;
		width: 76px;
		transform: rotate(-5deg);
	}

	.accent-learn {
		position: absolute;
		top: 2px;
		left: -72px;
		width: 49px;
		transform: rotate(-8deg);
	}

	.accent-next-steps {
		position: absolute;
		top: -27px;
		left: -32px;
		width: 196px;
	}
}

@media only screen and (max-width: 850px) {
	.accent-distinguished-winners,
	.accent-learn {
		display: none;
	}
}

@media only screen and (max-width: 734px) {
	.accent-get-ready {
		position: absolute;
		top: -28px;
		left: -20px;
		width: 180px;
	}

	accent-get-ready-line {
		position: absolute;
		top: 35px;
		left: -11px;
		width: 152px;
	}

	.accent-next-steps {
		position: absolute;
		top: -21px;
		left: -19px;
		width: 160px;
	}
}

.section-todo h2 {
	margin-bottom: 0.8em;
}

.section-caption {
	padding: 1em 0;
}

/* Animation */
/* 2026 */
.hero-spacer {
	height: 320px;
}

@media only screen and (max-width: 1068px) {
	.hero-spacer {
		height: 260px;
	}
}

@media only screen and (max-width: 734px) {
	.hero-spacer {
		height: 200px;
	}
}

.page-wrapper {
	position: relative; /* establishes a positioning context */
	z-index: 0; /* creates stacking context so child z-index: -1 videos are visible above the section background */
}

.hero-winner-confetti-anim {
	position: absolute;
	top: -1px;
	left: 50%;
	transform: translateX(-50%);
	width: 1960px;
	height: 700px;
}

.hero-winner-confetti-anim {
	width: 2156px;
}

@media only screen and (max-width: 734px) {
	.hero-winner-confetti-anim {
		width: 1200px;
		height: auto;
	}
}

#hero-video-light,
#hero-video-dark {
	z-index: -1;
}

#video-end-frame-light,
#video-end-frame-dark {
	z-index: -2;
	-webkit-clip-path: inset(1px 1px);
	clip-path: inset(1px 1px);
}

body[data-color-scheme="light"] .dark-version {
	display: none;
}

body[data-color-scheme="dark"] .light-version {
	display: none;
}

video:focus {
	outline: none;
}
video {
	transform: translateZ(0);
	-webkit-transform: translateZ(0);
}
video,
hero-winner-confetti-anim {
	-webkit-clip-path: inset(1px 1px);
	clip-path: inset(1px 1px);
}

/* ========== SSC27 Hero ========== */

/* The video is dark-only artwork with the logo baked in, so the hero stays dark in both
   color schemes. The background matches the bottom edge of the video so it blends if the
   copy runs longer than the creative. */
body[data-color-scheme] .section-hero.section-hero-ssc27 {
	position: relative;
	overflow: hidden;
	background: #070420;
}

#main section.section.section-hero-ssc27 {
	padding-top: 0;
}

.hero-ssc27-media {
	position: absolute;
	top: 0;
	left: 50%;
	transform: translateX(-50%);
	/* 1960px until the viewport is wider, then it fills edge to edge on ultrawides. */
	width: max(1960px, 100vw);
	aspect-ratio: 3920 / 2163;
	z-index: 0;
}

.hero-ssc27-video,
.hero-ssc27-still,
.hero-ssc27-still img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top center;
}

/* Undo the 1px clip from the confetti-era video rule above. It exposes the section background
   as a dark line along the bright top edge of this creative. */
.hero-ssc27-video {
	-webkit-clip-path: none;
	clip-path: none;
}

.hero-ssc27-media .is-hidden {
	display: none;
}

/* Pushes the copy below the baked-in logo. Scales with the video past 1960px (470 / 1960 = 24vw). */
.section-hero-ssc27 .section-content {
	position: relative;
	z-index: 1;
	padding-top: max(470px, 24vw);
}

.section-hero-ssc27 h1,
.section-hero-ssc27 p {
	color: #fff;
}

.hero-ssc27-devices {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 56px;
	margin: 72px 0 0;
	list-style: none;
	font-size: 64px;
	line-height: 1;
}

.hero-ssc27-devices li {
	margin: 0;
}

.hero-ssc27-devices sf-symbol {
	display: inline-flex;
}

.hero-ssc27-devices .device-watch {
	color: #5e74f6;
}

.hero-ssc27-devices .device-ipad {
	color: #8544f5;
}

.hero-ssc27-devices .device-iphone {
	color: #ff8000;
}

.hero-ssc27-devices .device-mac {
	color: #e95ee5;
}

.hero-ssc27-devices .device-vision {
	color: #00d4ff;
}

.hero-ssc27-devices .device-tv {
	color: #00cb8b;
}

@media only screen and (max-width: 1068px) {
	.hero-ssc27-media {
		width: 1470px;
	}

	.section-hero-ssc27 .section-content {
		padding-top: 350px;
	}

	.hero-ssc27-devices {
		gap: 40px;
		margin-top: 56px;
		font-size: 48px;
	}
}

/* Mobile swaps to the tall creative, which scales with the viewport width. */
@media only screen and (max-width: 734px) {
	body[data-color-scheme] .section-hero.section-hero-ssc27 {
		background: #05031d;
	}

	.hero-ssc27-media {
		left: 0;
		transform: none;
		width: 100%;
		aspect-ratio: 1080 / 1920;
	}

	.section-hero-ssc27 .section-content {
		padding-top: 66vw;
	}

	.hero-ssc27-devices {
		gap: 20px;
		margin-top: 40px;
		font-size: 30px;
	}
}

/* ========== End SSC27 Hero ========== */
