<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<title>F2,6BP ‑ The Hype Molecule ⚡️</title>
<!-- VARIABLE FONT -->
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap" rel="stylesheet"/>
<style>
/* ---------- COLOR CONSTANTS ---------- */
:root{
--anchor-r:13; /* #0D0D0D */
--anchor-g:13;
--anchor-b:13;
/* will be overwritten by JS */
--bg-r:13;
--bg-g:13;
--bg-b:13;
/* Golden-ratio padding grid (1 : 1.618) */
--base-size:16px; /* recalculated from device-PPI */
--pad-long:calc(var(--base-size)*1.618);
--pad-short:var(--base-size);
/* Shadow “σ” & luminance-pop */
--sigma:12px;
--pop-factor:1;
}
/* ---------- GLOBAL CANVAS ---------- */
html,body{
height:100%;
margin:0;
background:rgb(var(--bg-r),var(--bg-g),var(--bg-b));
font-family:"Inter",system-ui,sans-serif;
font-size:clamp(14pt,1vw+14pt,16pt);
color:#fafafa;
display:flex;
justify-content:center;
align-items:center;
overflow:hidden;
touch-action:pan-y pinch-zoom;
}
/* ---------- STORY CAROUSEL ---------- */
#carousel{
display:flex;
gap:2rem;
overflow-x:auto;
scroll-snap-type:x mandatory;
padding:var(--pad-short);
width:100%;
height:100%;
box-sizing:border-box;
}
.card{
position:relative;
min-width:80vw;
max-width:480px;
scroll-snap-align:center;
background:rgba(255,255,255,0.035);
backdrop-filter:blur(2px);
border-radius:1rem;
padding:var(--pad-long) var(--pad-short);
cursor:grab;
user-select:none;
transition:transform .3s cubic-bezier(.25,.46,.45,.94);
/* Micro luminance pop injector */
animation:pop 0.1s linear var(--pop-factor) 1 backwards paused;
}
/* radial “ground-shadow” */
.card::before{
content:"";
position:absolute;
inset:0;
background:radial-gradient(ellipse at 50% 120%,rgba(0,0,0,0.64) 0%,transparent 70%);
transform:translateY(calc(var(--sigma)*0.4));
pointer-events:none;
}
/* headline */
.card h2{
margin-top:0;
font-variation-settings:"opsz" 14;
transition:transform .2s;
}
.card:hover h2{
transform:translateY(0.02em);
}
/* paragraphs */
.card p{
line-height:1.55;
}
/* ---------- MICRO POP (4-frame, 60 fps) ---------- */
@keyframes pop{
0% {filter:brightness(1);}
33% {filter:brightness(1.20);} /* +6 cd/m² ≈ +20 % */
66% {filter:brightness(1.10);}
100% {filter:brightness(1);}
}
/* ---------- SCROLLBAR NIX ---------- */
::-webkit-scrollbar{display:none;}
</style>
</head>
<body>
<div id="carousel">
<!-- CARD 1 : F2,6BP -->
<div class="card" id="f26bp">
<h2>F2,6BP 🔥 The Spark</h2>
<p>
Meet <strong>Fructose-2,6-bisphosphate</strong>, the ultimate hype molecule.
Like a super-charged cheerleader, it amps up glycolysis by
<b>allosterically igniting PFK-1</b>. One tiny squirt of F2,6BP and the cell’s
sugar-burning engine redlines. ⚡️
</p>
</div>
<!-- CARD 2 : PFK-1 -->
<div class="card" id="pfk1">
<h2>PFK-1 🏎️ The Engine</h2>
<p>
<strong>Phosphofructokinase-1</strong> is the rate-limiting turbo of glycolysis.
It slams <em>fructose-6-phosphate</em> into
<em>fructose-1,6-bisphosphate</em>, flooring the gas pedal that
converts sugar straight into ATP-fuel. With F2,6BP screaming in the
intake, PFK-1 shifts from sluggish sedan to drag racer.
</p>
</div>
<!-- CARD 3 : PFK-2 -->
<div class="card" id="pfk2">
<h2>PFK-2 🧙 The Wizard</h2>
<p>
<strong>Phosphofructokinase-2</strong> quietly brews the hype
molecule backstage, crafting (or dismantling) F2,6BP as conditions
change. It’s bifunctional: kinase on one face, phosphatase on the
other, toggling the spark so glycolysis revs or relaxes seamlessly.
</p>
</div>
</div>
<script>
/* ========= 1. Gaussian-jittered background (#0D0D0D ±2 %) ========= */
const jitter = () => Math.max(0,
13 + Math.round((Math.random()*2-1)*0.02*255)); // ±2 % of 255 ≈ ±5
['--bg-r','--bg-g','--bg-b'].forEach(v=>
document.documentElement.style
.setProperty(v,jitter()) );
/* ========= 2. Golden-ratio base padding / device-PPI ========= */
function updateBaseSize(){
const ppi = window.devicePixelRatio || 1;
document.documentElement.style.setProperty('--base-size',(14*ppi)+'px');
}
updateBaseSize();
window.addEventListener('resize',updateBaseSize);
/* ========= 3. Swipe momentum → shadow σ modulation ========= */
let startX = 0, startT = 0;
const cards = document.querySelectorAll('.card');
cards.forEach(card=>{
card.addEventListener('pointerdown',e=>{
startX = e.clientX; startT = performance.now();
card.setPointerCapture(e.pointerId);
card.style.cursor='grabbing';
});
card.addEventListener('pointerup',e=>{
card.releasePointerCapture(e.pointerId);
card.style.cursor='grab';
const dx = e.clientX - startX;
const dt = performance.now() - startT;
const velocity = Math.min(Math.abs(dx/dt),2); // px/ms, clamp
const sigma = 12 + velocity*20; // base 12 → 32px
document.documentElement.style
.setProperty('--sigma',sigma+'px');
/* trigger luminance pop */
card.style.animationPlayState='running';
// reset animation so consecutive pops work
setTimeout(()=>card.style.animation='none',120);
setTimeout(()=>card.style.animation='',150);
});
});
/* ========= 4. Prevent retinal adaptation (jitter every 10 s) ========= */
setInterval(()=>{
['--bg-r','--bg-g','--bg-b'].forEach(v=>
document.documentElement.style.setProperty(v,jitter()));
},10000);
</script>
</body>
</html>