/* The front door: a calm field of small shiny things from the sciences (field.js), the scene of a tutor and a learner at
   work on one sheet (tutor.css, tutor.js), and the one experiment behind it, drawn in the tutor's hand (why.js). House look: .claude/skills/astor-look */
:root { --cream: #fbf8f2; --dim: rgba(251, 248, 242, 0.74); --faint: rgba(251, 248, 242, 0.46); }

.kicker { margin: 0 0 18px; font: 500 11.5px/1.4 var(--futura); letter-spacing: 0.3em; text-transform: uppercase; color: var(--cyan); }
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 15px 26px; border-radius: 999px; text-decoration: none; white-space: nowrap;
  font: 500 12.5px/1 var(--futura); letter-spacing: 0.16em; text-transform: uppercase; color: #fff;
  background: rgba(255, 255, 255, 0.09); border: 1px solid rgba(255, 255, 255, 0.24);
  -webkit-backdrop-filter: blur(16px) saturate(1.5); backdrop-filter: blur(16px) saturate(1.5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 10px 30px rgba(0, 0, 0, 0.35); transition: background 0.25s, border-color 0.25s, transform 0.25s; }
.pill .ast { color: var(--orange); font-size: 15px; letter-spacing: 0; }
.pill:hover { background: rgba(255, 255, 255, 0.16); border-color: rgba(255, 255, 255, 0.45); transform: translateY(-1px); }
.pill:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; }

/* ---------------------------------------------------------------- the hero */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 600px; overflow: hidden; background: #050407; isolation: isolate; }
.field { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 1.4s ease; }
.hero.ready .field { opacity: 1; }
.hero.still { background: radial-gradient(60% 50% at 30% 30%, rgba(255, 47, 179, 0.18), transparent 70%),
  radial-gradient(50% 50% at 75% 70%, rgba(28, 76, 214, 0.25), transparent 70%), radial-gradient(40% 40% at 70% 20%, rgba(247, 200, 30, 0.14), transparent 70%), #050407; }
/* a little dark at the top for the nav, and at the foot into the night */
.hero::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(rgba(5, 4, 7, 0.55), transparent 16%, transparent 78%, var(--night)); }
.hero-words { position: absolute; z-index: 2; left: 50%; top: 50%; width: min(1100px, calc(100% - 40px)); transform: translate(-50%, -52%); text-align: center; }
/* each line is only as wide as its words, so the stars can come right up to them (field.js measures these) */
.hero-words > * { width: fit-content; max-width: 100%; margin-left: auto; margin-right: auto; }
.hero-kicker { margin: 0 auto clamp(18px, 2.6vh, 30px); font: 500 12px/1.4 var(--futura); letter-spacing: 0.34em; text-transform: uppercase; color: rgba(251, 248, 242, 0.72); }
.hero h1 { margin: 0 auto; font: 430 clamp(60px, 9.4vw, 160px)/0.92 var(--mast); font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 0; letter-spacing: -0.025em;
  color: var(--cream); text-shadow: 0 2px 40px rgba(5, 4, 7, 0.55); }
.hero-lede { max-width: 31em; margin: clamp(22px, 3.2vh, 34px) auto 0; font: 400 clamp(18px, 1.55vw, 22px)/1.5 var(--body); color: var(--dim); text-wrap: balance;
  text-shadow: 0 1px 18px rgba(5, 4, 7, 0.8); }
.hero-cta { display: flex; gap: 22px; align-items: center; justify-content: center; flex-wrap: wrap; margin-top: clamp(28px, 4.4vh, 44px); }
.hero-soon { font: 500 11.5px/1 var(--futura); letter-spacing: 0.22em; text-transform: uppercase; color: var(--faint); }
.hero-fine { margin: 16px auto 0; font: 500 10px/1 var(--futura); letter-spacing: 0.22em; text-transform: uppercase; color: rgba(251, 248, 242, 0.36); }
.hero-down { position: absolute; z-index: 2; left: 50%; bottom: clamp(20px, 4vh, 38px); transform: translateX(-50%); white-space: nowrap; text-decoration: none;
  font: italic 400 16px/1 var(--body); color: rgba(251, 248, 242, 0.58); transition: color 0.3s; }
.hero-down:hover { color: var(--cream); }
.hero-down span { display: inline-block; animation: nudge 2.6s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateY(4px); } }
/* the words arrive after the stars have bloomed out */
.hero-words > * { opacity: 0; transform: translateY(14px); }
.hero.ready .hero-words > * { animation: rise 1.3s cubic-bezier(0.2, 0.7, 0.2, 1) forwards; }
.hero.ready .hero-words > :nth-child(1) { animation-delay: 0.5s; }
.hero.ready .hero-words > :nth-child(2) { animation-delay: 0.75s; }
.hero.ready .hero-words > :nth-child(3) { animation-delay: 1.1s; }
.hero.ready .hero-words > :nth-child(4) { animation-delay: 1.35s; }
.hero.ready .hero-words > :nth-child(5) { animation-delay: 1.5s; }
@keyframes rise { to { opacity: 1; transform: none; } }
.hero.still .hero-words > * { opacity: 1; transform: none; }

/* (the scene between the hero and the science is tutor.css) */
.sci h2 { margin: 0; font: 450 clamp(42px, 5.6vw, 86px)/1.02 var(--mast); font-variation-settings: "opsz" 144, "SOFT" 100;
  letter-spacing: -0.02em; color: var(--cream); text-wrap: balance; }
.ls-n { margin: 0 0 14px; font: 500 11.5px/1.4 var(--futura); letter-spacing: 0.28em; text-transform: uppercase; color: var(--cyan); }

/* ---------------------------------------------------------------- the science */
.sci { background: var(--night); padding: clamp(110px, 16vh, 190px) 24px clamp(110px, 17vh, 200px); }
.sci-in { max-width: 1080px; margin: 0 auto; text-align: center; }
.sci h2 em { font-style: normal; padding: 0 4px; margin: 0 -4px;
  background: linear-gradient(transparent 64%, rgba(247, 200, 30, 0.85) 64%, rgba(247, 200, 30, 0.85) 88%, transparent 88%) no-repeat 0 0 / 0% 100%;
  transition: background-size 1.3s cubic-bezier(0.3, 0.6, 0.2, 1) 0.4s; }
.sci.on h2 em { background-size: 100% 100%; }
.sci-chart { max-width: 700px; margin: clamp(48px, 8vh, 80px) auto 0; }
.sci-paper { padding: 26px 26px 14px; background: var(--paper); border-radius: 3px; transform: rotate(-0.7deg);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(0, 0, 0, 0.1); }
.sci-svg { display: block; width: 100%; height: auto; overflow: visible; }
.sci-svg text { font-family: var(--tutor); }
.sci-svg .fade { opacity: 0; transition: opacity 0.7s ease; }
.sci.on .sci-svg .fade { opacity: 1; }
.sci-chart figcaption { margin-top: 24px; font: 500 10.5px/1.8 var(--futura); letter-spacing: 0.18em; text-transform: uppercase; color: rgba(251, 248, 242, 0.6); }
.sci-chart figcaption i { font: italic 400 13px/1 var(--body); letter-spacing: 0; text-transform: none; }
.sci-three { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 56px); list-style: none; margin: clamp(60px, 10vh, 100px) 0 0; padding: 0; text-align: left; }
.sci-three li { padding-top: 18px; border-top: 1px solid rgba(251, 248, 242, 0.16); }
.sci-three li:nth-child(2) .ls-n { color: var(--yellow); }
.sci-three li:nth-child(3) .ls-n { color: #ff6ec7; }
.sci-three p:last-child { margin: 0; font: 400 18px/1.55 var(--body); color: var(--dim); }
@media (max-width: 760px) { .sci-three { grid-template-columns: 1fr; } .sci-paper { padding: 16px 12px 8px; } }

.soon .after .pill { margin-top: 4px; }

@media (prefers-reduced-motion: reduce) {
  .hero-words > * { opacity: 1 !important; transform: none !important; animation: none !important; }
  .hero-down span { animation: none; }
}
