/* lagra.net: one black screen. The mark drawn as the path of least action among faint alternatives, the wordmark, the
   principle, one button, "by General Intuition". Palette: #000 ground, #fff mark, #86A1B6 slate, #EBFF0A the one dot
   (brand kit 2026-10-17). The face is Inter, as the rest of lagra.net and the IDE (ide/src/brand/fonts). */
@font-face { font-family: 'Newsreader'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/Newsreader-Regular.woff2') format('woff2'); }
@font-face { font-family: 'Newsreader'; font-style: italic; font-weight: 400; font-display: swap; src: url('fonts/Newsreader-Italic.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('brand/fonts/Inter-Regular.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('brand/fonts/Inter-Medium.woff2') format('woff2'); }
:root { color-scheme: dark; --ink: #ffffff; --slate: #86a1b6; --dot: #ebff0a; --ground: #000000;
        --ease-out: cubic-bezier(.16, 1, .3, 1); --ease-draw: cubic-bezier(.45, 0, .15, 1); }
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; max-width: 100%; overflow-x: hidden; background: var(--ground); color: var(--ink); }
.graph { position: fixed; inset: 0; z-index: 0; display: block; }
.stage, .foot { position: relative; z-index: 1; }
body { font-family: 'Inter', system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif; -webkit-font-smoothing: antialiased; display: flex; flex-direction: column; min-height: 100vh; }
.stage { flex: 1; width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; }
.action { margin: 0; width: min(46vw, 420px, 36vh); }
.action svg { width: 100%; height: auto; display: block; overflow: visible; }

/* the figure: alternatives, the glow twin, the path, the two points */
.alt { fill: none; stroke: var(--slate); stroke-width: 3; stroke-linecap: round; opacity: 0; }
.least, .glow { fill: none; stroke: var(--ink); stroke-width: 34; stroke-linecap: round; stroke-linejoin: round; }
.least { stroke-dasharray: var(--len, 1400); stroke-dashoffset: var(--len, 1400); will-change: stroke-dashoffset; }
.glow { stroke-width: 44; opacity: 0; will-change: opacity; }
.start { fill: var(--slate); opacity: 0; }
.end { fill: var(--dot); opacity: 0; transform-origin: 738px 442px; transform: scale(.6); will-change: transform, opacity; }
.bloom { fill: none; stroke: var(--dot); stroke-width: 3; opacity: 0; transform-origin: 738px 442px; transform: scale(1); }

/* the words */
.wordmark { margin: 26px 0 0; line-height: 0; opacity: 0; transform: translateY(14px); will-change: opacity, transform; }
.wordmark-svg { width: clamp(120px, 15vw, 190px); height: auto; display: block; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.principle { margin: 20px 0 0; font-family: 'Newsreader', Georgia, serif; font-size: clamp(17px, 2vw, 23px); letter-spacing: .28em; color: var(--slate); opacity: 0; transform: translateY(8px); }
.feynman { margin: 34px 0 0; width: auto; max-width: min(46ch, 100%); padding: 0 6px; font-family: 'Newsreader', Georgia, 'Times New Roman', serif; font-size: clamp(18px, 1.6vw, 22px); line-height: 1.55; color: rgba(190,205,216,.92); text-align: center; text-wrap: pretty; opacity: 0; transform: translateY(8px); }
.cta { margin: 36px 0 0; opacity: 0; transform: translateY(8px); }
.request { display: inline-block; padding: 12px 24px; border: 1px solid rgba(255,255,255,.32); border-radius: 999px; color: var(--ink); text-decoration: none;
           font-weight: 500; font-size: 14px; letter-spacing: .02em; transition: border-color .6s var(--ease-out), background .6s var(--ease-out); }
.request:hover, .request:focus-visible { border-color: var(--dot); outline: none; background: rgba(235,255,10,.06); }

/* by General Intuition */
.foot { padding: 22px 18px 26px; display: flex; justify-content: center; opacity: 0; }
.by { display: inline-flex; align-items: center; gap: 10px; color: rgba(134,161,182,.9); text-decoration: none; transition: color .6s var(--ease-out); }
.by:hover, .by:focus-visible { color: var(--ink); outline: none; }
.by-word { font-size: 13px; letter-spacing: .01em; }
.gi-logo { height: 15px; width: auto; display: block; opacity: .85; transition: opacity .6s var(--ease-out); }
.gi-logo path { fill: currentColor; }
.by:hover .gi-logo { opacity: 1; }

/* the sequence: the alternatives whisper in and out, the one path draws itself (its length set by landing.mjs), the dot
   lands, the name rises, the principle, the door, the maker. Every entrance is opacity and transform only. */
@keyframes whisper { 0% { opacity: 0 } 30% { opacity: .55 } 100% { opacity: .08 } }
@keyframes draw { from { stroke-dashoffset: var(--len, 1400) } to { stroke-dashoffset: 0 } }
@keyframes land { 0% { opacity: 0; transform: scale(.6) } 100% { opacity: 1; transform: scale(1) } }
@keyframes bloom { 0% { opacity: .9; transform: scale(1) } 100% { opacity: 0; transform: scale(2.6) } }
@keyframes rise { to { opacity: 1; transform: translateY(0) } }
@keyframes appear { to { opacity: 1 } }
@keyframes breathe { 0%, 100% { opacity: .10 } 50% { opacity: .42 } }
@keyframes pulse { 0%, 100% { transform: scale(1) } 50% { transform: scale(1.07) } }
@keyframes flicker { 0%, 100% { opacity: .08 } 20% { opacity: .5 } 35% { opacity: .1 } 55% { opacity: .45 } 70% { opacity: .05 } 85% { opacity: .3 } }

.start { animation: appear 1.2s .2s forwards; }
.a1 { animation: whisper 3.2s .6s forwards; } .a2 { animation: whisper 3.2s .9s forwards; } .a3 { animation: whisper 3.2s 1.2s forwards; }
.a4 { animation: whisper 3.2s 1.5s forwards; } .a5 { animation: whisper 3.2s 1.8s forwards; }
.least { animation: draw 3s 2.2s var(--ease-draw) both; }
.glow { animation: appear 1.2s 4.6s forwards, breathe 7s 5.8s ease-in-out infinite; }
.end { animation: land 1.1s 4.9s var(--ease-out) forwards, pulse 6s 6s ease-in-out infinite; }
.bloom { animation: bloom 1.6s 5s var(--ease-out) forwards; }
.wordmark { animation: rise 1.8s 5.3s var(--ease-out) forwards; }
.principle { animation: rise 1.8s 5.9s var(--ease-out) forwards; }
.feynman { animation: rise 2.2s 6.4s var(--ease-out) forwards; }
.cta { animation: rise 1.8s 7.2s var(--ease-out) forwards; }
.foot { animation: appear 2s 7.8s forwards; }
.least.retrace { animation: draw 2.6s var(--ease-draw) both; }
.action.haunt .alt { animation: flicker 1.4s linear forwards; }

@media (prefers-reduced-motion: reduce) {
  .alt, .least, .glow, .start, .end, .wordmark, .principle, .feynman, .cta, .foot { animation: none; opacity: 1; transform: none; }
  .alt { opacity: .08; } .glow { opacity: .2; } .bloom { display: none; } .graph { display: none; }
  .least { stroke-dasharray: none; stroke-dashoffset: 0; }
}
@media (max-width: 600px) { .action { width: 62vw; } .request { font-size: 13.5px; } .feynman { font-size: 17px; line-height: 1.5; } }
