/* StreetText Summit (/event/summit): self-contained landing page.
   Brand v2 on its dark surface: Midnight anchor, Sky Blue identity, Volt Yellow as a small spark.
   Mobile first; min-width queries scale up. JS binds to _hooks only. */
:root {
	--midnight: #10243E;
	--night: #0A1220;
	--night-2: #0F1724;
	--sky-blue: #10B7DB;
	--sky-bright: #22D3EE;
	--teal-mint: #3BBFA0;
	--volt-yellow: #F7D800;
	--ink: #0A1220;
	--text: #E9F2F8;
	--text-soft: #A9BCCD;
	--line: rgba(233, 242, 248, .12);
	--line-strong: rgba(233, 242, 248, .24);
	--glass: rgba(255, 255, 255, .04);
	--glass-strong: rgba(255, 255, 255, .07);
	--gradient-sky: linear-gradient(135deg, #0BA8C8 0%, #1ABFE0 50%, #5ECFBE 100%);
	--gradient-text: linear-gradient(100deg, #E9F2F8 0%, #22D3EE 55%, #5ECFBE 100%);

	--font: "Reddit Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
	--wrap: 1120px;
	--gutter: 16px;
	--space-1: 8px;
	--space-2: 16px;
	--space-3: 24px;
	--space-4: 32px;
	--space-5: 56px;
	--space-6: 96px;
	--radius-sm: 10px;
	--radius-md: 16px;
	--radius-lg: 24px;
	--radius-pill: 999px;
	--space-half: 4px;
	--space-tight: 6px;
	--space-snug: 12px;
	--text-xs: 13px;
	--text-sm: 14px;
	--text-base: 17px;
	--text-md: 18px;
	--text-lg: 20px;
	--text-xl: 22px;
	--text-hero: clamp(36px, 7.5vw, 68px);
	--text-display: clamp(34px, 7vw, 60px);
	--text-display-lg: clamp(34px, 7vw, 64px);
	--mask: #000;
	--error: #FF8A80;
	--control-h: 52px;
	--glow: 0 0 0 1px rgba(34, 211, 238, .35), 0 12px 40px rgba(16, 183, 219, .35);
	--volt-yellow-hover: #FFE433;
	--glow-volt: 0 0 0 1px rgba(247, 216, 0, .45), 0 12px 40px rgba(247, 216, 0, .28);
	--glow-volt-hover: 0 0 0 1px rgba(247, 216, 0, .7), 0 16px 48px rgba(247, 216, 0, .4);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 64px; }
body {
	margin: 0;
	background: var(--night);
	color: var(--text);
	font-family: var(--font);
	font-size: var(--text-base);
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3 { margin: 0; line-height: 1.05; letter-spacing: -.02em; }
p { margin: 0; }

.wrap {
	max-width: var(--wrap);
	margin: 0 auto;
	padding: 0 var(--gutter);
}
@media (min-width: 768px) {
	:root { --gutter: 32px; }
}

/* Ambient backdrop: a perspective grid and two soft light sources. Decorative only. */
.backdrop {
	position: fixed;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	background:
		radial-gradient(60% 50% at 80% 0%, rgba(16, 183, 219, .28), transparent 70%),
		radial-gradient(50% 40% at 0% 30%, rgba(59, 191, 160, .16), transparent 70%),
		var(--night);
}
.backdrop::after {
	content: "";
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(var(--line) 1px, transparent 1px),
		linear-gradient(90deg, var(--line) 1px, transparent 1px);
	background-size: 56px 56px;
	mask-image: radial-gradient(70% 60% at 50% 0%, var(--mask) 20%, transparent 80%);
	-webkit-mask-image: radial-gradient(70% 60% at 50% 0%, var(--mask) 20%, transparent 80%);
	opacity: .5;
}

/* Top bar */
.topbar {
	position: sticky;
	top: 0;
	z-index: 10;
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	background: rgba(10, 18, 32, .6);
	border-bottom: 1px solid var(--line);
}
.topbar .wrap {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 64px;
}
.topbar .brand img { height: 26px; width: auto; }
.topbar .links { display: none; gap: var(--space-3); font-size: var(--text-sm); color: var(--text-soft); }
.topbar .links a { text-decoration: none; }
.topbar .links a:hover { color: var(--text); }
@media (min-width: 768px) {
	.topbar .links { display: flex; }
}

/* Buttons */
.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--space-1);
	min-height: var(--control-h);
	padding: 0 var(--space-3);
	border: 0;
	border-radius: var(--radius-pill);
	font: 700 16px/1 var(--font);
	text-decoration: none;
	cursor: pointer;
	transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.button.primary {
	/* StreetText Volt Yellow. Always dark text on yellow (about 11:1); white fails. */
	background: var(--volt-yellow);
	color: var(--ink);
	box-shadow: var(--glow-volt);
}
.button.primary:hover { transform: translateY(-1px); background: var(--volt-yellow-hover); box-shadow: var(--glow-volt-hover); }
.button.ghost {
	background: var(--glass);
	color: var(--text);
	border: 1px solid var(--line-strong);
}
.button.ghost:hover { background: var(--glass-strong); }
.button.small { min-height: 40px; padding: 0 var(--space-2); font-size: var(--text-sm); }
.button:focus-visible, input:focus-visible { outline: 2px solid var(--sky-bright); outline-offset: 3px; }

/* Eyebrow / pill label */
.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: var(--space-1);
	padding: var(--space-tight) var(--space-snug);
	border: 1px solid var(--line-strong);
	border-radius: var(--radius-pill);
	background: var(--glass);
	font: 500 13px/1.2 var(--mono);
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--text-soft);
}
.eyebrow .dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--volt-yellow);
	box-shadow: 0 0 12px var(--volt-yellow);
	animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: .35; } }

.gradient-text {
	background: var(--gradient-text);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

/* Hero */
.hero {
	padding: var(--space-5) 0 var(--space-5);
	text-align: center;
}
.hero h1 {
	margin: var(--space-3) auto var(--space-2);
	max-width: 18ch;
	font-size: var(--text-hero);
	font-weight: 800;
}
.hero .lede {
	max-width: 560px;
	margin: 0 auto;
	font-size: var(--text-md);
	color: var(--text-soft);
}
.hero .facts {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: var(--space-1) var(--space-3);
	margin: var(--space-3) 0 var(--space-4);
	font: 500 14px/1.4 var(--mono);
	color: var(--text);
}
.hero .facts span::before {
	content: "";
	display: inline-block;
	width: 6px;
	height: 6px;
	margin-right: var(--space-snug);
	vertical-align: middle;
	border-radius: 50%;
	background: var(--sky-bright);
}
.hero .proof {
	margin-top: var(--space-2);
	font-size: var(--text-sm);
	color: var(--text-soft);
}
@media (min-width: 768px) {
	.hero { padding: var(--space-6) 0; }
	.hero .lede { font-size: var(--text-lg); }
}

/* Signup card: first + last name, email + mobile, then the button. Stacks on phones. */
.signup {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--space-1);
	max-width: 620px;
	margin: 0 auto;
	padding: var(--space-snug);
	border: 1px solid var(--line-strong);
	border-radius: var(--radius-lg);
	background: rgba(15, 23, 36, .7);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
}
.signup input {
	width: 100%;
	min-width: 0;
	height: var(--control-h);
	padding: 0 var(--space-2);
	border: 1px solid var(--line);
	border-radius: var(--radius-pill);
	background: var(--glass);
	color: var(--text);
	font: 400 16px var(--font);
}
.signup input::placeholder { color: var(--text-soft); }
.signup select {
	width: 100%;
	height: var(--control-h);
	padding: 0 var(--space-2);
	border: 1px solid var(--line);
	border-radius: var(--radius-pill);
	background: var(--glass);
	color: var(--text);
	font: 400 16px var(--font);
	grid-column: 1 / -1;
}
.signup select:has(option[value=""]:checked) { color: var(--text-soft); }
.signup .hint { grid-column: 1 / -1; padding: 0 var(--space-2); font-size: var(--text-sm); color: var(--text-soft); }
.signup select option { color: var(--ink); }
.signup select[aria-invalid="true"] { border-color: var(--error); }
.signup input[aria-invalid="true"] { border-color: var(--error); }
.signup .button { width: 100%; grid-column: 1 / -1; }
/* Two fields share a row; the mobile number takes the full row below them. */
.signup input[type="tel"] { grid-column: 1 / -1; }
.signup[hidden], .confirmation[hidden], .countdown[hidden], .signup .error[hidden] { display: none; }
.signup .error { grid-column: 1 / -1; padding: 0 var(--space-2); font-size: var(--text-sm); color: var(--error); text-align: left; }
/* Honeypot: off screen, not display:none, so naive bots still fill it. */
.signup .trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (min-width: 560px) {
	.signup { grid-template-columns: 1fr 1fr; }
}
.confirmation {
	max-width: 520px;
	margin: 0 auto;
	padding: var(--space-3);
	border: 1px solid rgba(59, 191, 160, .5);
	border-radius: var(--radius-lg);
	background: rgba(59, 191, 160, .1);
}
.confirmation h3 { font-size: var(--text-xl); margin-bottom: var(--space-tight); }
.confirmation p { color: var(--text-soft); }

/* Countdown */
.countdown {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: var(--space-1);
	max-width: 420px;
	margin: var(--space-5) auto 0;
}
.countdown .unit {
	padding: var(--space-2) 0 var(--space-snug);
	border: 1px solid var(--line);
	border-radius: var(--radius-md);
	background: var(--glass);
}
.countdown b {
	display: block;
	font: 700 30px/1 var(--mono);
	font-variant-numeric: tabular-nums;
}
.countdown small {
	display: block;
	margin-top: var(--space-tight);
	font: 500 11px/1 var(--mono);
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--text-soft);
}

/* Sections */
.section { padding: var(--space-5) 0; }
.section .head { margin-bottom: var(--space-4); text-align: center; }
.section .head h2 {
	margin-top: var(--space-2);
	font-size: var(--text-display);
	font-weight: 800;
}
.section .head p { max-width: 560px; margin: var(--space-2) auto 0; color: var(--text-soft); }
@media (min-width: 768px) {
	.section { padding: var(--space-6) 0; }
}

/* Speakers */
.grid.speakers {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--space-2);
}
@media (min-width: 900px) {
	.grid.speakers { grid-template-columns: repeat(4, 1fr); gap: var(--space-3); }
}
.card.speaker {
	position: relative;
	padding: var(--space-1);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	background: var(--glass);
	transition: transform .25s ease, border-color .25s ease;
}
.card.speaker:hover { transform: translateY(-4px); border-color: rgba(34, 211, 238, .5); }
.card.speaker .portrait {
	position: relative;
	display: grid;
	place-items: center;
	aspect-ratio: 4 / 5;
	border-radius: var(--radius-md);
	overflow: hidden;
	background: linear-gradient(160deg, var(--midnight), var(--night-2));
	font: 800 44px/1 var(--font);
	color: rgba(233, 242, 248, .85);
}
.card.speaker .portrait::before {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(80% 60% at 50% 110%, rgba(16, 183, 219, .55), transparent 70%);
}
.card.speaker .portrait span { position: relative; }
/* Speaker photo fills the portrait; the brand glow sits on top of it. */
.card.speaker .portrait img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	/* Anchor to the top so the crop takes the chin and shoulders, never the head. */
	object-position: top center;
}
.card.speaker .portrait::before { z-index: 1; }
.card.speaker .body { padding: var(--space-2) var(--space-1) var(--space-1); }
.card.speaker h3 { font-size: var(--text-md); }
.card.speaker .role { margin-top: var(--space-half); font-size: var(--text-sm); color: var(--text-soft); }
.card.speaker .topic {
	margin-top: var(--space-snug);
	font: 500 12px/1.4 var(--mono);
	color: var(--sky-bright);
}
/* Placeholder card while speakers are still confirming. */
.card.speaker.pending { border-style: dashed; border-color: var(--line-strong); background: transparent; }
.card.speaker.pending:hover { transform: none; border-color: var(--line-strong); }
.card.speaker.pending .portrait { background: var(--glass); color: var(--sky-bright); font-size: var(--text-hero); font-weight: 400; }
.card.speaker.pending .portrait::before { opacity: .4; }
/* Keynote frame on the overlay layer, so a speaker photo cannot cover it. */
.card.speaker.featured .portrait::before { box-shadow: inset 0 0 0 2px var(--volt-yellow); border-radius: inherit; }
.card.speaker .tag {
	position: absolute;
	top: var(--space-2);
	left: var(--space-2);
	z-index: 1;
	padding: var(--space-half) var(--space-snug);
	border-radius: var(--radius-pill);
	background: var(--volt-yellow);
	color: var(--ink);
	font: 700 11px/1.2 var(--mono);
	letter-spacing: .06em;
	text-transform: uppercase;
}

/* Schedule */
.list.schedule {
	max-width: 820px;
	margin: 0 auto;
	padding: 0;
	list-style: none;
	border-top: 1px solid var(--line);
}
.list.schedule li {
	display: grid;
	grid-template-columns: 76px 1fr;
	gap: var(--space-2);
	padding: var(--space-3) 0;
	border-bottom: 1px solid var(--line);
}
.list.schedule time {
	font: 500 15px/1.5 var(--mono);
	color: var(--sky-bright);
}
.list.schedule h3 { font-size: var(--text-lg); line-height: 1.3; letter-spacing: -.01em; }
.list.schedule .who { margin-top: var(--space-tight); font-size: var(--text-sm); color: var(--text-soft); }
.list.schedule .badge {
	display: inline-block;
	margin-left: var(--space-1);
	padding: var(--space-half) var(--space-snug);
	border-radius: var(--radius-pill);
	vertical-align: middle;
	background: rgba(247, 216, 0, .14);
	color: var(--volt-yellow);
	font: 700 11px/1.3 var(--mono);
	letter-spacing: .06em;
	text-transform: uppercase;
}
@media (min-width: 768px) {
	.list.schedule li { grid-template-columns: 120px 1fr auto; align-items: baseline; padding: var(--space-3) var(--space-2); }
	.list.schedule li:hover { background: var(--glass); }
	.list.schedule .length { font: 500 13px var(--mono); color: var(--text-soft); }
}
.list.schedule .length { display: none; }
@media (min-width: 768px) {
	.list.schedule .length { display: block; }
}
.zones {
	margin-top: var(--space-3);
	text-align: center;
	font: 500 13px/1.6 var(--mono);
	color: var(--text-soft);
}

/* Final CTA */
.panel.finale {
	position: relative;
	overflow: hidden;
	padding: var(--space-5) var(--space-3);
	border: 1px solid rgba(34, 211, 238, .35);
	border-radius: var(--radius-lg);
	background:
		radial-gradient(80% 120% at 50% 0%, rgba(16, 183, 219, .35), transparent 70%),
		var(--midnight);
	text-align: center;
}
.panel.finale h2 { font-size: var(--text-display-lg); font-weight: 800; }
.panel.finale p { max-width: 520px; margin: var(--space-2) auto var(--space-4); color: var(--text-soft); }
.panel.finale .fine { margin: var(--space-2) auto 0; font-size: var(--text-sm); }

.colophon {
	padding: var(--space-4) 0 var(--space-5);
	text-align: center;
	font-size: var(--text-sm);
	color: var(--text-soft);
}

/* Reveal on scroll. Content stays visible if JS never runs. */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.shown { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.eyebrow .dot { animation: none; }
	.button, .card.speaker, .js .reveal { transition: none; }
	.js .reveal { opacity: 1; transform: none; }
}

/* Screen-reader-only label */
.visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

/* Line above the form when a visitor arrives with an invite. */
.seat-line { margin: 0 auto var(--space-2); font-weight: 700; font-size: var(--text-lg); color: var(--volt-yellow); }
.seat-line[hidden] { display: none; }

/* "You're in" screen: calendar, invites to share, optional follow-up. */
.confirmation.welcome { max-width: 620px; text-align: left; }
.confirmation.welcome h3 { font-size: var(--text-xl); }
.confirmation .step { margin: var(--space-3) 0 var(--space-1); font-weight: 700; color: var(--text); }
.confirmation .actions { display: flex; flex-wrap: wrap; gap: var(--space-1); }
.signup.details { max-width: none; margin-top: var(--space-2); padding: 0; border: 0; background: transparent; }
.signup.details .step { grid-column: 1 / -1; margin-top: var(--space-1); }
.signup.details .button { grid-column: 1 / -1; justify-self: center; width: auto; min-width: 160px; }
.signup [hidden], .signup.details [hidden] { display: none; }

/* Long-form story sections ("Why it matters", "Why this event?"). */
.prose { max-width: 680px; margin: 0 auto; }
.prose h2 { margin-bottom: var(--space-3); font-size: var(--text-display); font-weight: 800; }
.prose p { margin: 0 0 var(--space-2); font-size: var(--text-md); color: var(--text-soft); }
.prose .kicker { margin-top: var(--space-3); font-size: var(--text-xl); font-weight: 800; color: var(--text); }

/* "What you'll learn" grid. */
.grid.topics { display: grid; grid-template-columns: 1fr; gap: var(--space-2); }
@media (min-width: 560px) { .grid.topics { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .grid.topics { grid-template-columns: repeat(3, 1fr); gap: var(--space-3); } }
.card.topic { padding: var(--space-3); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--glass); }
.card.topic h3 { font-size: var(--text-lg); }
.card.topic .who { margin-top: var(--space-1); font: 500 var(--text-sm)/1.4 var(--mono); color: var(--sky-bright); }
.section .outcome { max-width: 680px; margin: var(--space-4) auto 0; text-align: center; color: var(--text-soft); }

/* Face row: overlapping speaker photos with a short label, linking to the speakers. */
.avatars {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	gap: var(--space-1);
	margin: 0 auto var(--space-3);
	text-decoration: none;
}
.avatars .stack { display: flex; }
.avatars img {
	width: 52px;
	height: 52px;
	margin-left: calc(var(--space-snug) * -1);
	border: 2px solid var(--night);
	border-radius: 50%;
	object-fit: cover;
	object-position: top center;
	box-shadow: 0 0 0 1px var(--line-strong);
}
.avatars img:first-child { margin-left: 0; }
.avatars .label { font-size: var(--text-sm); color: var(--text-soft); }
.avatars:hover .label { color: var(--text); }
@media (min-width: 560px) {
	.avatars { flex-direction: row; gap: var(--space-2); }
	.avatars img { width: 60px; height: 60px; }
}

/* Event name under the invite pill. */
.hero .event-name {
	margin: var(--space-2) 0 0;
	font: 700 var(--text-sm)/1.4 var(--mono);
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--sky-bright);
}

/* A field that takes the whole row (open-ended questions). */
.signup .wide { grid-column: 1 / -1; }
