/*
 * 33Science custom homepage styles
 * Everything scoped under body.t33-home — no bleed into other pages.
 *
 * Tokens, shared primitives, card internals and the transparent→solid
 * header were moved to css/t33-theme.css (June 2026), which loads on
 * every page (this file depends on it). Only homepage-section styles
 * remain here.
 */

/* ---------------------------------------- */
/* A. Hero                                  */
/* ---------------------------------------- */

body.t33-home .t33-hero {
	position: relative;
	overflow: hidden;
	background:
		radial-gradient(1100px 520px at 82% -10%, rgba(108, 91, 123, 0.35), transparent 60%),
		radial-gradient(900px 480px at 8% 110%, rgba(53, 92, 125, 0.5), transparent 65%),
		linear-gradient(165deg, var(--t33-navy-1) 0%, var(--t33-navy-2) 55%, var(--t33-navy-3) 100%);
	padding: 150px 0 170px;
}

body.t33-home .t33-hero-bg {
	position: absolute;
	inset: 0;
	pointer-events: none;
}

body.t33-home .t33-hero-nebula {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	opacity: 0.38;
	mix-blend-mode: screen;
}

/* The hero starfield canvas (ID — distinct from the .t33-stars class) */
body.t33-home #t33-stars {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

body.t33-home .t33-hero-glow {
	position: absolute;
	border-radius: 50%;
	filter: blur(90px);
	opacity: 0.5;
}

body.t33-home .t33-hero-glow-1 {
	width: 480px;
	height: 480px;
	right: -120px;
	top: -140px;
	background: radial-gradient(circle, rgba(43, 200, 232, 0.28), transparent 70%);
	animation: t33-drift 14s ease-in-out infinite alternate;
}

body.t33-home .t33-hero-glow-2 {
	width: 420px;
	height: 420px;
	left: -140px;
	bottom: -160px;
	background: radial-gradient(circle, rgba(246, 114, 128, 0.20), transparent 70%);
	animation: t33-drift 18s ease-in-out infinite alternate-reverse;
}

@keyframes t33-drift {
	from { transform: translate3d(0, 0, 0) scale(1); }
	to   { transform: translate3d(40px, 30px, 0) scale(1.12); }
}

body.t33-home .t33-hero-inner {
	position: relative;
	z-index: 2;
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.85fr);
	gap: 64px;
	align-items: center;
}

body.t33-home .t33-hero-copy {
	animation: t33-rise 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}

body.t33-home .t33-hero-feature {
	animation: t33-rise 0.9s 0.25s cubic-bezier(0.16, 1, 0.3, 1) both;
}

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

body.t33-home .t33-hero-title {
	font-size: clamp(2.4rem, 5.4vw, 4rem);
	font-weight: 900;
	letter-spacing: -0.03em;
	line-height: 1.08;
	color: #fff;
	margin: 0 0 22px;
}

body.t33-home .t33-hero-sub {
	font-size: clamp(1rem, 1.6vw, 1.18rem);
	line-height: 1.65;
	color: rgba(232, 238, 252, 0.78);
	max-width: 540px;
	margin: 0 0 30px;
}

/* Hero search — restyle the theme's search form */
body.t33-home .t33-hero-search {
	max-width: 520px;
	margin-bottom: 26px;
}

body.t33-home .t33-hero-search .search-form {
	position: relative;
	display: flex;
	margin: 0;
}

body.t33-home .t33-hero-search .search-field {
	width: 100%;
	background: rgba(255, 255, 255, 0.08);
	border: 1.5px solid rgba(255, 255, 255, 0.22);
	border-radius: 999px;
	color: #fff;
	font-size: 1rem;
	padding: 16px 60px 16px 26px;
	transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}

body.t33-home .t33-hero-search .search-field::placeholder {
	color: rgba(232, 238, 252, 0.55);
}

body.t33-home .t33-hero-search .search-field:focus {
	outline: none;
	border-color: var(--t33-cyan);
	background: rgba(255, 255, 255, 0.12);
	box-shadow: 0 0 0 4px rgba(43, 200, 232, 0.18);
}

body.t33-home .t33-hero-search .search-submit {
	position: absolute;
	right: 7px;
	top: 50%;
	transform: translateY(-50%);
	width: 44px;
	height: 44px;
	border: none;
	border-radius: 50%;
	background: linear-gradient(120deg, #0a90ae, var(--t33-cyan));
	color: #fff;
	font-size: 1rem;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

body.t33-home .t33-hero-search .search-submit:hover {
	transform: translateY(-50%) scale(1.06);
	box-shadow: 0 6px 18px rgba(43, 200, 232, 0.5);
}

body.t33-home .t33-hero-links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	font-size: 0.88rem;
}

body.t33-home .t33-hero-links-label {
	color: rgba(232, 238, 252, 0.55);
	font-weight: 700;
}

body.t33-home .t33-hero-links a {
	color: #dbe6fb;
	background: rgba(255, 255, 255, 0.07);
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 999px;
	padding: 6px 16px;
	text-decoration: none;
	font-weight: 700;
	transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

body.t33-home .t33-hero-links a:hover {
	background: rgba(43, 200, 232, 0.18);
	border-color: var(--t33-cyan);
	color: #fff;
}

/* Hero featured card */
body.t33-home .t33-hero-card {
	display: flex;
	flex-direction: column;
	gap: 0;
	background: rgba(255, 255, 255, 0.07);
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: var(--t33-radius);
	overflow: hidden;
	text-decoration: none;
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
	transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

body.t33-home .t33-hero-card:hover {
	transform: translateY(-6px);
	border-color: rgba(43, 200, 232, 0.5);
	box-shadow: 0 32px 70px rgba(0, 0, 0, 0.45);
}

body.t33-home .t33-hero-card-label {
	font-size: 0.68rem;
	font-weight: 800;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--t33-cyan);
	padding: 14px 22px 10px;
}

body.t33-home .t33-hero-card-media {
	display: block;
	overflow: hidden;
}

body.t33-home .t33-hero-card-media img {
	display: block;
	width: 100%;
	height: 220px;
	object-fit: cover;
	transition: transform 0.5s ease;
}

body.t33-home .t33-hero-card:hover .t33-hero-card-media img {
	transform: scale(1.05);
}

body.t33-home .t33-hero-card-body {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 18px 22px 22px;
}

body.t33-home .t33-hero-card-title {
	font-size: 1.25rem;
	font-weight: 800;
	line-height: 1.3;
	color: #fff;
}

body.t33-home .t33-hero-card-excerpt {
	font-size: 0.9rem;
	line-height: 1.6;
	color: rgba(232, 238, 252, 0.7);
}

/* ---------------------------------------- */
/* B. Latest strip (overlapping hero)       */
/* ---------------------------------------- */

body.t33-home .t33-strip {
	position: relative;
	z-index: 5;
	margin-top: -110px;
	padding-bottom: 30px;
}

body.t33-home .t33-strip-row {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 22px;
}

body.t33-home .t33-strip-card {
	background: var(--t33-paper);
	border-radius: var(--t33-radius);
	overflow: hidden;
	box-shadow: var(--t33-shadow);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

body.t33-home .t33-strip-card:hover {
	transform: translateY(-5px);
	box-shadow: var(--t33-shadow-lift);
}

body.t33-home .t33-strip-link {
	display: flex;
	flex-direction: column;
	height: 100%;
	text-decoration: none;
}

/* Card-internal hover compounds (base internals live in t33-theme.css) */
body.t33-home .t33-strip-card:hover .t33-card-media img,
body.t33-home .t33-latest-card:hover .t33-card-media img,
body.t33-home .t33-picks-lead:hover .t33-card-media img {
	transform: scale(1.06);
}

body.t33-home .t33-strip-link:hover .t33-card-title,
body.t33-home .t33-latest-link:hover .t33-card-title {
	color: #0a90ae;
}

/* ---------------------------------------- */
/* C. Explore by field                      */
/* ---------------------------------------- */

body.t33-home .t33-fields {
	padding: 70px 0 90px;
}

body.t33-home .t33-fields-grid {
	display: grid;
	grid-template-columns: repeat(10, minmax(0, 1fr));
	gap: 22px;
}

/* Asymmetric editorial layout: 2 large on top row, 3 below */
body.t33-home .t33-field-card:nth-child(1),
body.t33-home .t33-field-card:nth-child(2) {
	grid-column: span 5;
	min-height: 300px;
}

body.t33-home .t33-field-card:nth-child(n+3) {
	grid-column: span 10;
	min-height: 240px;
}

@media (min-width: 821px) {
	body.t33-home .t33-field-card:nth-child(n+3) {
		grid-column: span 3;
	}
	body.t33-home .t33-field-card:nth-child(3) {
		grid-column: span 4;
	}
}

body.t33-home .t33-field-card {
	position: relative;
	display: flex;
	border-radius: var(--t33-radius);
	overflow: hidden;
	text-decoration: none;
	box-shadow: var(--t33-shadow);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	/* Per-field gradient fallback always present under the image */
	background: linear-gradient(160deg, var(--t33-navy-3), var(--t33-navy-1));
}

body.t33-home .t33-field--biology   { background: linear-gradient(160deg, #14402c, #071a10); }
body.t33-home .t33-field--chemistry { background: linear-gradient(160deg, #2a1d4e, #0d0a22); }
body.t33-home .t33-field--earth     { background: linear-gradient(160deg, #4e2a18, #1c0d06); }
body.t33-home .t33-field--space     { background: linear-gradient(160deg, #16213f, #070b1a); }
body.t33-home .t33-field--physics   { background: linear-gradient(160deg, #103c4e, #06141c); }

body.t33-home .t33-field-card:hover {
	transform: translateY(-6px);
	box-shadow: var(--t33-shadow-lift);
}

body.t33-home .t33-field-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s ease;
}

body.t33-home .t33-field-card:hover .t33-field-img {
	transform: scale(1.06);
}

body.t33-home .t33-field-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(185deg, rgba(7, 11, 26, 0) 30%, rgba(7, 11, 26, 0.55) 62%, rgba(7, 11, 26, 0.92) 100%);
	transition: background 0.3s ease;
}

body.t33-home .t33-field-body {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	gap: 5px;
	padding: 24px;
	width: 100%;
}

body.t33-home .t33-field-name {
	font-size: 1.5rem;
	font-weight: 900;
	letter-spacing: -0.01em;
	color: #fff;
}

body.t33-home .t33-field-desc {
	font-size: 0.88rem;
	color: rgba(232, 238, 252, 0.75);
}

body.t33-home .t33-field-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 10px;
}

body.t33-home .t33-field-count {
	font-size: 0.8rem;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--t33-cyan);
}

body.t33-home .t33-field-meta .t33-arrow {
	color: #fff;
	font-size: 1.2rem;
}

body.t33-home .t33-field-card:hover .t33-arrow {
	transform: translateX(5px);
}

/* ---------------------------------------- */
/* D. Editor's picks                        */
/* ---------------------------------------- */

body.t33-home .t33-picks {
	background: var(--t33-paper-soft);
	padding: 80px 0 90px;
}

body.t33-home .t33-picks-layout {
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
	gap: 36px;
	align-items: start;
}

body.t33-home .t33-picks-lead {
	background: var(--t33-paper);
	border-radius: var(--t33-radius);
	overflow: hidden;
	box-shadow: var(--t33-shadow);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

body.t33-home .t33-picks-lead:hover {
	transform: translateY(-5px);
	box-shadow: var(--t33-shadow-lift);
}

body.t33-home .t33-picks-lead-link {
	display: flex;
	flex-direction: column;
	text-decoration: none;
}

body.t33-home .t33-picks-lead .t33-card-media img {
	height: 330px;
}

body.t33-home .t33-picks-lead-title {
	font-size: 1.55rem;
	font-weight: 900;
	line-height: 1.25;
	letter-spacing: -0.015em;
	color: var(--t33-ink);
}

body.t33-home .t33-picks-lead-excerpt {
	font-size: 0.95rem;
	line-height: 1.65;
	color: var(--t33-ink-soft);
}

body.t33-home .t33-picks-list {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

body.t33-home .t33-picks-row {
	background: var(--t33-paper);
	border-radius: var(--t33-radius);
	box-shadow: 0 4px 14px rgba(7, 11, 26, 0.06);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

body.t33-home .t33-picks-row:hover {
	transform: translateX(6px);
	box-shadow: var(--t33-shadow);
}

body.t33-home .t33-picks-row-link {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 14px 18px;
	text-decoration: none;
}

body.t33-home .t33-picks-num {
	font-size: 1.5rem;
	font-weight: 900;
	color: rgba(43, 200, 232, 0.55);
	min-width: 42px;
	letter-spacing: -0.03em;
}

body.t33-home .t33-picks-thumb {
	flex: 0 0 64px;
}

body.t33-home .t33-picks-thumb img {
	display: block;
	width: 64px;
	height: 64px;
	object-fit: cover;
	border-radius: 10px;
}

body.t33-home .t33-picks-row-body {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

body.t33-home .t33-picks-row-title {
	font-size: 0.98rem;
	font-weight: 800;
	line-height: 1.35;
	color: var(--t33-ink);
	transition: color 0.2s ease;
}

body.t33-home .t33-picks-row-link:hover .t33-picks-row-title {
	color: #0a90ae;
}

body.t33-home .t33-picks-row-cat {
	font-size: 0.74rem;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #0a7e9c;
}

/* ---------------------------------------- */
/* E. Trending topics                       */
/* (chip styles live in t33-theme.css)      */
/* ---------------------------------------- */

body.t33-home .t33-topics {
	padding: 60px 0;
}

body.t33-home .t33-topics-inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 20px;
}

body.t33-home .t33-topics-label {
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: #0e96b2;
	margin: 0;
}

body.t33-home .t33-topics-chips {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	max-width: 860px;
}

/* ---------------------------------------- */
/* F. Latest articles grid                  */
/* ---------------------------------------- */

body.t33-home .t33-latest {
	padding: 30px 0 90px;
}

body.t33-home .t33-latest-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 26px;
}

body.t33-home .t33-latest-card {
	background: var(--t33-paper);
	border: 1px solid #edf0f6;
	border-radius: var(--t33-radius);
	overflow: hidden;
	box-shadow: 0 4px 16px rgba(7, 11, 26, 0.05);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

body.t33-home .t33-latest-card:hover {
	transform: translateY(-5px);
	box-shadow: var(--t33-shadow-lift);
}

body.t33-home .t33-latest-link {
	display: flex;
	flex-direction: column;
	height: 100%;
	text-decoration: none;
}

body.t33-home .t33-latest-card .t33-card-media img {
	height: 200px;
}

body.t33-home .t33-latest-more {
	text-align: center;
	margin-top: 48px;
}

/* ---------------------------------------- */
/* G. Mission band                          */
/* (.t33-mission-stars twinkle layer is     */
/* defined once in t33-theme.css)           */
/* ---------------------------------------- */

body.t33-home .t33-mission {
	position: relative;
	overflow: hidden;
	background:
		radial-gradient(900px 420px at 90% 0%, rgba(108, 91, 123, 0.3), transparent 60%),
		radial-gradient(800px 420px at 5% 100%, rgba(53, 92, 125, 0.4), transparent 65%),
		linear-gradient(160deg, var(--t33-navy-2) 0%, var(--t33-navy-1) 100%);
	padding: 90px 0;
	margin-bottom: 0;
}

@media (prefers-reduced-motion: reduce) {
	body.t33-home .t33-hero-glow-1,
	body.t33-home .t33-hero-glow-2 {
		animation: none;
	}
}

body.t33-home .t33-mission-inner {
	position: relative;
	z-index: 2;
	text-align: center;
	max-width: 760px;
	margin: 0 auto;
}

body.t33-home .t33-mission-title {
	font-size: clamp(1.9rem, 3.8vw, 2.8rem);
	font-weight: 900;
	letter-spacing: -0.02em;
	color: #fff;
	margin: 0 0 18px;
}

body.t33-home .t33-mission-text {
	font-size: 1.05rem;
	line-height: 1.7;
	color: rgba(232, 238, 252, 0.75);
	margin: 0 0 44px;
}

body.t33-home .t33-mission-stats {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
	margin-bottom: 44px;
}

body.t33-home .t33-stat {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 22px 10px;
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: var(--t33-radius);
}

body.t33-home .t33-stat-num {
	font-size: clamp(1.9rem, 3.4vw, 2.7rem);
	font-weight: 900;
	letter-spacing: -0.02em;
	color: var(--t33-cyan);
	line-height: 1.1;
}

body.t33-home .t33-stat-label {
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: rgba(232, 238, 252, 0.6);
}

/* ---------------------------------------- */
/* Responsive                               */
/* ---------------------------------------- */

@media (max-width: 1060px) {
	/* Below this width the theme switches to .mobile-header */
	body.t33-home .t33-hero {
		padding: 120px 0 150px;
	}
}

@media (max-width: 900px) {
	body.t33-home .t33-hero-inner {
		grid-template-columns: 1fr;
		gap: 40px;
	}

	body.t33-home .t33-hero-feature {
		max-width: 560px;
	}

	body.t33-home .t33-strip-row {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	body.t33-home .t33-picks-layout {
		grid-template-columns: 1fr;
	}

	body.t33-home .t33-latest-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 820px) {
	body.t33-home .t33-fields-grid {
		grid-template-columns: 1fr 1fr;
	}

	body.t33-home .t33-field-card:nth-child(1),
	body.t33-home .t33-field-card:nth-child(2) {
		grid-column: span 1;
		min-height: 230px;
	}

	body.t33-home .t33-field-card:nth-child(n+3) {
		grid-column: span 1;
		min-height: 200px;
	}

	body.t33-home .t33-field-card:nth-child(5) {
		grid-column: span 2;
	}
}

@media (max-width: 600px) {
	body.t33-home .t33-hero {
		padding: 100px 0 140px;
	}

	body.t33-home .t33-hero-feature {
		display: none;
	}

	body.t33-home .t33-strip {
		margin-top: -100px;
	}

	/* Horizontal scroll-snap strip on phones */
	body.t33-home .t33-strip-row {
		display: flex;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		gap: 14px;
		padding-bottom: 12px;
		-webkit-overflow-scrolling: touch;
	}

	body.t33-home .t33-strip-card {
		flex: 0 0 78%;
		scroll-snap-align: start;
	}

	body.t33-home .t33-fields-grid {
		grid-template-columns: 1fr;
	}

	body.t33-home .t33-field-card:nth-child(5) {
		grid-column: span 1;
	}

	body.t33-home .t33-latest-grid {
		grid-template-columns: 1fr;
	}

	body.t33-home .t33-mission-stats {
		grid-template-columns: 1fr;
	}

	body.t33-home .t33-picks-lead .t33-card-media img {
		height: 220px;
	}
}
