/* ═══════════════════════════════════════════════════
   inventor.css — The Egg of All Eggs
   External stylesheet extracted for CSP hardening
   (INIT-002: Remove unsafe-inline)
   ═══════════════════════════════════════════════════ */

*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}

:root{
  --void:#050505;
  --shell:#f2f0ed;
  --yolk:#fbbf24;
  --glow:#06b6d4;
  --halo:rgba(6,182,212,0.08);
  --muted:rgba(242,240,237,0.35);
  --dim:rgba(242,240,237,0.12);
}

html{
  background:var(--void);
  scroll-behavior:smooth;
  overflow-x:hidden;
  scrollbar-width:thin;
  scrollbar-color:#1a1a1a var(--void);
}

body{
  font-family:'Inter',-apple-system,BlinkMacSystemFont,sans-serif;
  color:var(--shell);
  background:var(--void);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  overflow-x:hidden;
  line-height:1.65;
}

::selection{background:rgba(6,182,212,0.3);color:var(--shell)}

/* ── Skip link ───────────────────────────────────── */
.skip-link{
  position:absolute;left:-9999px;top:auto;width:1px;height:1px;overflow:hidden;
  z-index:9999;padding:12px 24px;background:var(--glow);color:var(--void);
  font-weight:600;text-decoration:none;font-size:1rem;border-radius:0 0 6px 0;
}
.skip-link:focus{position:fixed;left:0;top:0;width:auto;height:auto;overflow:visible}

/* ── Back link ───────────────────────────────────── */
.back{
  position:fixed;top:1.5rem;left:1.5rem;z-index:100;
  font-size:.7rem;letter-spacing:.1em;text-transform:uppercase;
  color:var(--muted);text-decoration:none;transition:color .3s;
}
.back:hover{color:var(--shell)}
.back:focus-visible{outline:2px solid var(--glow);outline-offset:3px;border-radius:2px}

/* ── Canvas layer ────────────────────────────────── */
#cosmos{
  position:fixed;top:0;left:0;width:100%;height:100%;z-index:0;
  will-change:transform;
}

/* ── Scroll container ────────────────────────────── */
.scroll{position:relative;z-index:1}

/* ── Sections ────────────────────────────────────── */
.void-section{
  min-height:100vh;
  display:flex;align-items:center;justify-content:center;
  padding:4rem 2rem;
  position:relative;
}

/* ── The Egg (CSS) ───────────────────────────────── */
.egg-wrap{
  position:relative;
  width:clamp(200px,40vw,400px);
  height:clamp(260px,52vw,520px);
}
.egg{
  width:100%;height:100%;
  background:radial-gradient(ellipse 60% 55% at 45% 40%, rgba(255,255,255,0.12), transparent),
             radial-gradient(ellipse 100% 100% at 50% 50%, #1a1918 0%, #0d0c0b 70%, var(--void) 100%);
  border-radius:50% 50% 50% 50% / 60% 60% 40% 40%;
  box-shadow:
    0 0 80px rgba(6,182,212,0.06),
    0 0 160px rgba(6,182,212,0.03),
    inset 0 -40px 80px rgba(0,0,0,0.5),
    inset 0 20px 60px rgba(255,255,255,0.03);
  transition:box-shadow 1.88s ease;
  position:relative;
  overflow:hidden;
}
.egg::before{
  content:'';position:absolute;
  top:15%;left:20%;width:60%;height:35%;
  background:radial-gradient(ellipse at 50% 50%, rgba(255,255,255,0.06), transparent);
  border-radius:50%;
  filter:blur(10px);
}
.egg::after{
  content:'';position:absolute;
  top:0;left:0;right:0;bottom:0;
  border-radius:inherit;
  border:1px solid rgba(242,240,237,0.04);
}

/* ── Egg pulse on hover ──────────────────────────── */
.egg-wrap:hover .egg{
  box-shadow:
    0 0 120px rgba(251,191,36,0.12),
    0 0 240px rgba(6,182,212,0.06),
    inset 0 -40px 80px rgba(0,0,0,0.4),
    inset 0 20px 60px rgba(251,191,36,0.04);
}

/* ── Halo ring ───────────────────────────────────── */
.halo{
  position:absolute;
  top:50%;left:50%;
  width:140%;height:140%;
  transform:translate(-50%,-50%);
  border-radius:50%;
  border:1px solid rgba(6,182,212,0.04);
  animation:halo-breathe 8s ease-in-out infinite;
  pointer-events:none;
}
.halo:nth-child(2){
  width:180%;height:180%;
  border-color:rgba(6,182,212,0.02);
  animation-delay:-3s;
  animation-duration:12s;
}
.halo:nth-child(3){
  width:220%;height:220%;
  border-color:rgba(251,191,36,0.02);
  animation-delay:-6s;
  animation-duration:16s;
}

@keyframes halo-breathe{
  0%,100%{transform:translate(-50%,-50%) scale(1);opacity:1}
  50%{transform:translate(-50%,-50%) scale(1.05);opacity:.5}
}

/* ── Text sections ───────────────────────────────── */
.verse{
  max-width:680px;
  margin:0 auto;
  text-align:center;
  padding:0 2rem;
}

.verse-tag{
  font-family:'Inter',sans-serif;
  font-size:.65rem;letter-spacing:.25em;text-transform:uppercase;
  color:var(--muted);
  margin-bottom:1rem;
}

.verse-h{
  font-family:'Bebas Neue',sans-serif;
  font-size:clamp(2.5rem,7vw,5.5rem);
  letter-spacing:.04em;
  line-height:.95;
  margin-bottom:1.5rem;
}
.verse-h span{color:var(--glow)}
.verse-h .gold{color:var(--yolk)}

.verse-body{
  font-size:clamp(.95rem,1.5vw,1.1rem);
  color:var(--muted);
  line-height:1.8;
  max-width:540px;
  margin:0 auto;
}
.verse-body em{color:var(--shell);font-style:normal;font-weight:400}

.verse-quote{
  font-size:clamp(.85rem,1.3vw,1rem);
  color:var(--dim);
  font-style:italic;
  margin-top:2.5rem;
  border-left:2px solid rgba(251,191,36,0.2);
  padding-left:1.2rem;
  text-align:left;
  max-width:480px;
  margin-left:auto;
  margin-right:auto;
  line-height:1.7;
}
.verse-quote cite{
  display:block;
  margin-top:.5rem;
  font-style:normal;
  font-size:.75rem;
  letter-spacing:.05em;
  color:rgba(242,240,237,0.15);
}

/* ── Reveal animation ────────────────────────────── */
.r{opacity:0;transform:translateY(30px);transition:opacity 1s ease,transform 1s ease}
.r.v{opacity:1;transform:none}
.r1{transition-delay:.2s}.r2{transition-delay:.4s}.r3{transition-delay:.6s}.r4{transition-delay:.8s}

/* ── The Crack — interactive ─────────────────────── */
.crack-line{
  position:absolute;
  top:50%;left:50%;
  width:0;height:2px;
  background:linear-gradient(90deg,transparent,var(--yolk),transparent);
  transform:translate(-50%,-50%);
  border-radius:1px;
  opacity:0;
  transition:width 1.88s cubic-bezier(0.16,1,0.3,1),opacity .5s ease;
  pointer-events:none;
  z-index:2;
}
.egg-wrap.cracked .crack-line{
  width:80%;
  opacity:1;
}
.egg-wrap.cracked .egg{
  box-shadow:
    0 0 160px rgba(251,191,36,0.25),
    0 0 320px rgba(251,191,36,0.08),
    inset 0 0 100px rgba(251,191,36,0.05);
}

/* ── Send-it section ─────────────────────────────── */
.send-it{
  font-family:'Bebas Neue',sans-serif;
  font-size:clamp(1rem,2.5vw,1.8rem);
  letter-spacing:.08em;
  color:var(--dim);
  text-align:center;
  padding:2rem;
}

/* ── CTA glow ────────────────────────────────────── */
.cta-egg{
  display:inline-block;
  margin-top:2rem;
  padding:1rem 2.5rem;
  border-radius:100px;
  border:1px solid rgba(6,182,212,0.2);
  color:var(--glow);
  font-family:'Inter',sans-serif;
  font-size:.8rem;
  letter-spacing:.06em;
  text-decoration:none;
  transition:all .4s ease;
  cursor:pointer;
  background:transparent;
}
.cta-egg:hover{
  border-color:rgba(6,182,212,0.5);
  box-shadow:0 0 40px rgba(6,182,212,0.15);
  color:var(--shell);
}
.cta-egg:focus-visible{outline:2px solid var(--glow);outline-offset:3px}

/* ── Separator ───────────────────────────────────── */
.sep{
  width:1px;height:80px;
  background:linear-gradient(to bottom,transparent,rgba(6,182,212,0.12),transparent);
  margin:0 auto;
}

/* ── Footer zone ─────────────────────────────────── */
.origin-footer{
  text-align:center;
  padding:4rem 2rem 3rem;
  color:var(--dim);
  font-size:.65rem;
  letter-spacing:.08em;
}

/* ── Utility classes (replacing inline styles) ───── */
.mt-gap{margin-top:1.5rem}
.mt-gap-lg{margin-top:2rem}
.text-shell{color:var(--shell)}
.text-dim{color:var(--dim)}
.text-dim-italic{color:var(--dim);font-style:italic}
.text-whisper{color:rgba(242,240,237,0.08);font-size:.75rem;letter-spacing:.1em}
.section-short{min-height:60vh}

/* ── Reduced motion ──────────────────────────────── */
@media(prefers-reduced-motion:reduce){
  .r{opacity:1!important;transform:none!important;transition:none!important}
  .halo{animation:none!important}
  .crack-line{transition:none!important}
  #cosmos{display:none}
}

/* ── Mobile ──────────────────────────────────────── */
@media(max-width:640px){
  .void-section{padding:3rem 1.5rem;min-height:80vh}
  .verse{padding:0 1rem}
  .egg-wrap{width:clamp(160px,55vw,280px);height:clamp(208px,71.5vw,364px)}
}
