/* SciFact Landing — self-contained styles. Fonts are self-hosted (no Google requests). */

@font-face { font-family: "Baloo 2"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/baloo-2-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Baloo 2"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/baloo-2-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Baloo 2"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/baloo-2-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Baloo 2"; font-style: normal; font-weight: 800; font-display: swap; src: url("fonts/baloo-2-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Space Mono"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/space-mono-latin-700-normal.woff2") format("woff2"); }

:root {
	--sf-ink: #F6F2FF;
	--sf-ink-soft: #DCD5F5;
	--sf-ink-mute: #B9B0E0;
	--sf-night: #100B32;
	--sf-indigo: #211B5B;
	--sf-panel: #2A2471;
	--sf-panel-2: #30297D;
	--sf-line: #4A429A;
	--sf-yellow: #FED065;
	--sf-teal: #3CD5CF;
	--sf-pink: #FF78AA;
	--sf-red: #CC0000;
	--sf-dark: #16103C;
	--sf-display: "Baloo 2", system-ui, -apple-system, "Segoe UI", sans-serif;
	--sf-mono: "Space Mono", ui-monospace, Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body.scifact-landing {
	margin: 0;
	min-height: 100vh;
	background-color: #18124A;
	background-image:
		radial-gradient(circle at 12% 18%, rgba(246,242,255,.55) 0 1.5px, transparent 2px),
		radial-gradient(circle at 78% 9%,  rgba(246,242,255,.4) 0 1px, transparent 1.6px),
		radial-gradient(circle at 44% 63%, rgba(246,242,255,.35) 0 1.5px, transparent 2px),
		radial-gradient(circle at 91% 71%, rgba(246,242,255,.5) 0 1px, transparent 1.6px),
		radial-gradient(circle at 27% 88%, rgba(246,242,255,.4) 0 1.2px, transparent 1.8px),
		radial-gradient(circle at 63% 34%, rgba(246,242,255,.3) 0 1px, transparent 1.6px);
	background-size: 340px 340px, 260px 260px, 420px 420px, 300px 300px, 380px 380px, 220px 220px;
	color: var(--sf-ink);
	font-family: var(--sf-display);
	font-weight: 500;
	line-height: 1.4;
	overflow-x: hidden;
}
.scifact-landing img { max-width: 100%; height: auto; display: block; }
/* Lock text colours so site-wide heading/paragraph CSS can't darken them */
body.scifact-landing h1, body.scifact-landing h2, body.scifact-landing h3,
body.scifact-landing p, body.scifact-landing small, body.scifact-landing strong { color: var(--sf-ink) !important; font-family: var(--sf-display) !important; text-shadow: none !important; }
body.scifact-landing .sf-lede, body.scifact-landing .sf-ask p, body.scifact-landing .sf-trust-card p, body.scifact-landing .sf-follow p { color: var(--sf-ink-soft) !important; }
body.scifact-landing .sf-foot-brand small { color: var(--sf-ink-mute) !important; }
body.scifact-landing .sf-hi, body.scifact-landing .sf-foot-brand strong span { color: var(--sf-yellow) !important; }
body.scifact-landing h1, body.scifact-landing h2, body.scifact-landing h3 { letter-spacing: normal; text-transform: none !important; }
.scifact-landing a { color: var(--sf-yellow); }
.scifact-landing a:hover { color: #FFE3A3; }
.scifact-landing a:focus-visible { outline: 3px solid var(--sf-teal); outline-offset: 3px; border-radius: 12px; }
.sf-skip { position: absolute; left: -9999px; top: 8px; z-index: 10; background: var(--sf-ink); color: var(--sf-dark) !important; padding: 10px 16px; border-radius: 999px; font-weight: 800; }
.sf-skip:focus { left: 16px; }

.sf-wrap { max-width: 1200px; margin: 0 auto; }
.sf-section { padding: 88px 20px 0; }
.sf-kicker { font-family: var(--sf-mono); font-weight: 700; font-size: 14px; letter-spacing: 1.5px; color: var(--sf-teal); text-transform: uppercase; }
.sf-h2 { margin: 0; font-weight: 800; font-size: clamp(32px, 3.6vw, 48px); line-height: 1.05; }
.sf-hi { color: var(--sf-yellow); }
.sf-head { display: flex; flex-direction: column; gap: 6px; }
.sf-row-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; }
.sf-more { font-weight: 700; font-size: 18px; min-height: 44px; display: inline-flex; align-items: center; }

/* Buttons */
.sf-btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 60px; padding: 0 30px; border-radius: 999px; text-decoration: none; font-weight: 800; font-size: 20px; line-height: 1.1; transition: transform .15s ease, filter .15s ease; }
.sf-btn:hover { transform: translateY(-2px); filter: brightness(1.08); }
.sf-btn svg { flex: 0 0 auto; }
.scifact-landing .sf-btn-yt, .scifact-landing .sf-btn-yt:hover { background: var(--sf-red); color: #fff; }
.scifact-landing .sf-btn-ghost, .scifact-landing .sf-btn-ghost:hover { background: transparent; box-shadow: inset 0 0 0 3px var(--sf-ink); color: var(--sf-ink); }
.scifact-landing .sf-btn-light, .scifact-landing .sf-btn-light:hover { background: var(--sf-ink); color: var(--sf-dark); min-height: 52px; font-size: 18px; padding: 0 26px; }
.scifact-landing .sf-btn-plat, .scifact-landing .sf-btn-plat:hover { background: var(--sf-panel-2); color: var(--sf-ink); min-height: 64px; }
.sf-icon-btn { width: 48px; height: 48px; border-radius: 50%; background: var(--sf-panel-2); display: inline-flex; align-items: center; justify-content: center; transition: transform .15s ease; }
.sf-icon-btn:hover { transform: translateY(-2px); }

/* Hero */
.sf-hero { position: relative; overflow: hidden; padding: 0 20px 64px; background: linear-gradient(180deg, var(--sf-indigo) 0%, rgba(33,27,91,0) 100%); }
.sf-topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; position: relative; z-index: 2; }
.scifact-landing .sf-wordmark { text-decoration: none; font-weight: 800; font-size: 30px; line-height: 1; color: var(--sf-ink); letter-spacing: -.5px; }
.sf-wordmark span { color: var(--sf-yellow); }
.sf-topbar-right { display: flex; align-items: center; gap: 16px; }
.sf-handle { font-family: var(--sf-mono); font-weight: 700; font-size: 13px; letter-spacing: 1.5px; color: var(--sf-teal); }
.scifact-landing .sf-sub-mini, .scifact-landing .sf-sub-mini:hover { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; background: var(--sf-red); color: #fff; text-decoration: none; font-weight: 800; font-size: 16px; }
.sf-hero-grid { display: flex; flex-direction: row-reverse; flex-wrap: wrap; align-items: center; justify-content: center; gap: 24px 56px; position: relative; z-index: 1; }
.sf-hero-art { flex: 1 1 260px; display: flex; justify-content: center; }
.sf-sci { width: clamp(170px, 36vh, 420px); max-width: 100%; height: auto; aspect-ratio: 1 / 1; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 10px var(--sf-panel), 0 0 80px 10px rgba(60,213,207,.18); }
.sf-hero-copy { flex: 999 1 520px; display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.sf-pill { font-family: var(--sf-mono); font-weight: 700; font-size: 14px; letter-spacing: 1.5px; color: var(--sf-dark); background: var(--sf-yellow); padding: 8px 18px; border-radius: 999px; }
.sf-h1 { margin: 0; font-weight: 800; font-size: clamp(40px, 5.6vw, 80px); line-height: 1.02; letter-spacing: -1px; }
.sf-lede { margin: 0; font-size: clamp(18px, 1.7vw, 23px); max-width: 560px; color: var(--sf-ink-soft); }
.sf-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 16px; width: 100%; }
.sf-also { display: flex; gap: 10px; align-items: center; }
.sf-also span { font-size: 15px; color: var(--sf-ink-mute); font-weight: 600; }
.sf-float { position: absolute; z-index: 2; pointer-events: none; }
.sf-float-modem { width: clamp(80px, 8vw, 116px); right: 4%; top: 96px; }
/* Cloud and microwave are pinned to Sci, so they move with him at every width */
.sf-sci-wrap { position: relative; display: inline-block; }
.sf-float-cloud { width: 34%; left: -22%; top: -2%; }
.sf-float-micro { width: 30%; left: -16%; bottom: 2%; }

/* Proof */
.sf-proof { padding: 0 20px; margin-top: -24px; position: relative; }
.sf-proof-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.sf-stat { background: var(--sf-panel-2); border-radius: 32px; padding: 26px 28px; display: flex; flex-direction: column; gap: 2px; }
.sf-stat-n { font-weight: 800; font-size: 52px; line-height: 1; }
.sf-stat-l { font-weight: 600; font-size: 18px; color: var(--sf-ink); }
.sf-c-yellow { color: var(--sf-yellow); } .sf-c-teal { color: var(--sf-teal); } .sf-c-pink { color: var(--sf-pink); }

/* Shorts */
.sf-stack { display: flex; flex-direction: column; gap: 28px; }
.sf-shorts { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; }
.sf-short { display: block; aspect-ratio: 9 / 16; border-radius: 22px; overflow: hidden; background: var(--sf-panel); box-shadow: 0 0 0 2px var(--sf-panel-2); transition: transform .2s ease; }
.sf-short:hover { transform: translateY(-4px); }
.sf-short img { width: 100%; height: 100%; object-fit: cover; }

/* Series */
.sf-series { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.scifact-landing .sf-pl { text-decoration: none; color: var(--sf-ink); background: var(--sf-panel); border-radius: 28px; overflow: hidden; display: flex; flex-direction: column; transition: transform .2s ease; }
.sf-pl:hover { transform: translateY(-4px); }
.sf-pl.sf-c-yellow { box-shadow: 0 0 0 2px var(--sf-yellow); } .sf-pl.sf-c-teal { box-shadow: 0 0 0 2px var(--sf-teal); } .sf-pl.sf-c-pink { box-shadow: 0 0 0 2px var(--sf-pink); }
.sf-pl img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.sf-pl-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 22px; min-height: 44px; font-weight: 800; font-size: 18px; color: var(--sf-ink); }

/* Ask */
.sf-ask { background: var(--sf-panel); border-radius: 40px; padding: clamp(28px, 4vw, 56px); display: flex; flex-wrap: wrap; align-items: center; gap: 28px 48px; }
.sf-ask img { width: 150px; height: 150px; flex: 0 0 auto; }
.sf-ask-copy { flex: 999 1 420px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.sf-ask h2 { font-size: clamp(30px, 3.2vw, 44px); }
.sf-ask p { margin: 0; font-size: 19px; line-height: 1.45; color: var(--sf-ink-soft); max-width: 620px; }

/* Parents & teachers */
.sf-trust { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.sf-trust-card { border: 2px solid var(--sf-line); border-radius: 28px; padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.sf-trust-card h3 { margin: 0; font-weight: 800; font-size: 23px; }
.sf-trust-card p { margin: 0; font-size: 17px; line-height: 1.45; color: var(--sf-ink-soft); }

/* Follow */
.sf-follow { display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center; }
.sf-follow .sf-h2 { font-size: clamp(34px, 4vw, 56px); }
.sf-follow p { margin: 0; font-size: 19px; color: var(--sf-ink-soft); }
.sf-follow p span { font-family: var(--sf-mono); font-weight: 700; color: var(--sf-teal); }
.sf-plats { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; width: 100%; max-width: 1000px; }

/* Footer */
.sf-foot { margin-top: 112px; padding: 40px 20px 48px; border-top: 2px solid var(--sf-panel); background: var(--sf-night); }
.sf-foot-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; }
.sf-foot-brand { display: flex; flex-direction: column; gap: 4px; }
.sf-foot-brand strong { font-weight: 800; font-size: 26px; line-height: 1; }
.sf-foot-brand strong span { color: var(--sf-yellow); }
.sf-foot-brand small { font-size: 16px; color: var(--sf-ink-mute); }
.sf-foot nav { display: flex; flex-wrap: wrap; gap: 4px 24px; font-size: 16px; font-weight: 600; }
.sf-foot nav a { min-height: 44px; display: inline-flex; align-items: center; }

/* Motion: gentle, and off for anyone who prefers reduced motion */
@keyframes sf-drift { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-14px) rotate(3deg); } }
@keyframes sf-pop { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: scale(1); } }
.sf-drift { animation: sf-drift 7s ease-in-out infinite; }
.sf-drift-b { animation: sf-drift 9s ease-in-out -3s infinite; }
.sf-hero-art { animation: sf-pop .7s cubic-bezier(.34,1.56,.64,1) both; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.scifact-landing *, .scifact-landing *::before, .scifact-landing *::after { animation: none !important; transition: none !important; }
}

/* Phones */
@media (max-width: 600px) {
	.sf-section { padding-top: 64px; }
	.sf-handle { display: none; }
	.sf-wordmark { font-size: 26px; }
	.sf-hero { padding-bottom: 48px; }
	/* keep the whole hero, buttons included, on one phone screen */
	.sf-sci { width: clamp(140px, 24vh, 240px); }
	.scifact-landing .sf-float-micro, .scifact-landing .sf-float-modem { display: none; }
	.sf-hero-grid { gap: 16px; }
	.sf-hero-copy { gap: 14px; }
	.sf-pill { display: none; }
	.sf-h1 { font-size: 36px; }
	.sf-lede { font-size: 17px; }
	.sf-cta { gap: 10px; }
	.sf-btn { width: 100%; }
	.sf-also { width: 100%; justify-content: center; }
	.sf-shorts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.sf-stat-n { font-size: 44px; }
	.sf-ask img { width: 110px; height: 110px; }
	.sf-foot { margin-top: 80px; }
}
