/* ==========================================================================
   Night theme for the links page, matched to WIA: warm dark, serif type,
   brass accents, a living sky behind everything. Loaded after LittleLink's
   own stylesheets so it wins without touching them.
   ========================================================================== */

:root {
  --bg-main: #0b0a09;
  --bg-card: rgba(20, 18, 15, 0.72);
  --bg-card-hover: rgba(30, 26, 21, 0.86);
  --border-color: #2a2520;
  --text-main: #e9e3d5;
  --text-muted: #9c9585;
  --accent: #c8a45c;
  --accent-soft: #e6cf98;
  --wine: #9a3443;
  --wine-soft: #c46a74;
  --font-display: 'Iowan Old Style', 'Palatino Linotype', Palatino, 'Book Antiqua', 'Source Serif Pro', Georgia, 'Times New Roman', serif;
  --font-ui: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* @property lets the door's border glow actually rotate (falls back to a still glow). */
@property --ang { syntax: '<angle>'; inherits: false; initial-value: 0deg; }

html { color-scheme: dark; overflow-x: clip; }
:root.theme-dark body, :root.theme-auto body, :root.theme-light body, body {
  background: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-display);
  min-height: 100vh;
  overflow-x: clip;
}

/* ---------- The sky ---------- */
.night { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.night canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
/* Slow drifting haze: gold, wine, and a cold violet, never quite still. */
.night .haze { position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.9; will-change: transform; }
.night .h1 { width: 60vmax; height: 60vmax; left: -18vmax; top: -22vmax; background: radial-gradient(circle, rgba(200, 164, 92, 0.13), transparent 62%); animation: haze1 46s ease-in-out infinite alternate; }
.night .h2 { width: 55vmax; height: 55vmax; right: -20vmax; top: 30vh; background: radial-gradient(circle, rgba(154, 52, 67, 0.2), transparent 62%); animation: haze2 58s ease-in-out infinite alternate; }
.night .h3 { width: 48vmax; height: 48vmax; left: 10vw; bottom: -26vmax; background: radial-gradient(circle, rgba(70, 60, 120, 0.16), transparent 62%); animation: haze3 64s ease-in-out infinite alternate; }
@keyframes haze1 { to { transform: translate(8vmax, 6vmax) scale(1.08); } }
@keyframes haze2 { to { transform: translate(-7vmax, -5vmax) scale(1.12); } }
@keyframes haze3 { to { transform: translate(6vmax, -6vmax) scale(0.94); } }
.night .vignette { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 38%, transparent 50%, rgba(0, 0, 0, 0.6) 100%); }
/* A fine grain, like film at night. */
.night .grain { position: absolute; inset: -50%; opacity: 0.05; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); animation: grain 1.2s steps(4) infinite; }
@keyframes grain { 25% { transform: translate(-3%, 2%); } 50% { transform: translate(2%, -3%); } 75% { transform: translate(-2%, -1%); } }

.container { position: relative; z-index: 1; padding-top: 3.5rem; }

/* ---------- Header ---------- */
.avatar-wrap { position: relative; width: 8.5rem; height: 8.5rem; margin: 2.2rem auto 2.6rem; }
.avatar-wrap .avatar { position: relative; z-index: 1; width: 100%; height: 100%; margin: 0; filter: saturate(0.9) contrast(1.04); transition: filter 1.2s ease; }
/* The halo: an astrolabe that turns around the photo. */
.halo { position: absolute; inset: -45px; width: calc(100% + 90px); height: calc(100% + 90px); overflow: visible; pointer-events: none; }
.halo-back { z-index: 0; }
.halo-front { z-index: 3; }
.halo .ticks { fill: none; stroke: rgba(200, 164, 92, 0.45); stroke-width: 2.2; stroke-dasharray: 0.5 4.5; transform-origin: 50px 50px; animation: spin 120s linear infinite; opacity: 0; animation: spin 120s linear infinite, fade-in 2s ease 1.6s forwards; }
.halo .signs { transform-origin: 50px 50px; animation: spin 80s linear infinite reverse; }
.halo .signs .cross { fill: none; stroke: rgba(200, 164, 92, 0.2); stroke-width: 0.4; stroke-dasharray: 1 3; opacity: 0; animation: fade-in 2s ease 2.6s forwards; }
/* Each sign in its own light: a soft aura, a dark disc with a bright rim, and the glyph, kept upright as the wheel turns. */
.halo .sign { color: #ffd58a; opacity: 0; animation: fade-in 1.4s ease forwards; }
.halo .sign .upright { transform-origin: 0 0; animation: spin 80s linear infinite; }
.halo .sign .aura { fill: url(#sign-aura); transform-origin: 0 0; animation: sign-aura 8s ease-in-out infinite; }
.halo .sign .disc { fill: rgba(11, 10, 9, 0.82); stroke: currentColor; stroke-width: 0.55; filter: drop-shadow(0 0 1.5px currentColor); }
.halo .sign text { font-family: var(--font-display); font-size: 8.4px; text-anchor: middle; fill: #fff3d2; filter: drop-shadow(0 0 1.2px currentColor) drop-shadow(0 0 3.5px currentColor); animation: sign-pulse 8s ease-in-out infinite; }
@keyframes sign-aura { 0%, 100% { transform: scale(0.8); opacity: 0.7; } 12% { transform: scale(1.3); opacity: 1; } 30% { transform: scale(0.85); opacity: 0.7; } }
.halo .s-taurus { animation-delay: 1.8s; } .halo .s-taurus .aura, .halo .s-taurus text { animation-delay: 2s; }
.halo .s-leo { animation-delay: 2.1s; } .halo .s-leo .aura, .halo .s-leo text { animation-delay: 4s; }
.halo .s-scorpio { animation-delay: 2.4s; color: #e0707e; } .halo .s-scorpio .aura, .halo .s-scorpio text { animation-delay: 6s; } .halo .s-scorpio text { fill: #ffd9de; }
.halo .s-aquarius { animation-delay: 2.7s; } .halo .s-aquarius .aura, .halo .s-aquarius text { animation-delay: 8s; }
/* Taurus is the Sun's sign: larger, whiter, and never dim. */
.halo .s-taurus .upright { scale: 1.28; } .halo .s-taurus { color: #ffe9b0; } .halo .s-taurus .disc { stroke-width: 0.8; }
/* Black Moon Lilith belongs to Scorpio: a dark crescent that circles its sign on a faint track. */
.halo .lilith { transform-origin: 0 0; animation: spin 7s linear infinite; transition: opacity 0.5s ease; }
.halo .lm-dark { fill: #050303; stroke: rgba(224, 112, 126, 0.75); stroke-width: 0.35; }
.halo .lm-horn { fill: #ff8d9b; filter: drop-shadow(0 0 1.5px #e0707e); }
.halo .lilith-path { fill: none; stroke: rgba(224, 112, 126, 0.3); stroke-width: 0.3; stroke-dasharray: 0.8 1.6; }
/* The godhead: a nimbus, rays that turn and breathe, and his titles going round the rim. */
.halo .nimbus { opacity: 0; transform-origin: 50px 50px; animation: fade-in 2.4s ease 0.8s forwards, nimbus 7s ease-in-out 3.2s infinite; }
@keyframes nimbus { 50% { transform: scale(1.07); opacity: 0.72; } }
.halo .rays { transform-origin: 50px 50px; opacity: 0; animation: spin 200s linear infinite, rays-in 2.6s ease 1.2s forwards; transition: scale 0.9s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.9s ease; }
.halo .rays line { stroke-width: 0.5; stroke-linecap: round; animation: ray 6s ease-in-out infinite; }
.halo .rays line:nth-child(3n + 1) { stroke-width: 0.9; animation-delay: -2s; } .halo .rays line:nth-child(3n + 2) { animation-delay: -4s; }
@keyframes rays-in { to { opacity: 0.75; } }
@keyframes ray { 50% { opacity: 0.35; } }
.halo .inscription { font-family: var(--font-ui); font-size: 3.1px; letter-spacing: 0.3px; fill: rgba(230, 207, 152, 0.62); transform-origin: 50px 50px; opacity: 0; animation: spin 110s linear infinite, fade-in 2s ease 2.2s forwards; }
/* Look at him directly and it all turns up. */
.avatar-wrap:hover .rays { scale: 1.14; filter: drop-shadow(0 0 2px #ffd58a); }
.avatar-wrap:hover .inscription { fill: #fff0c4; }
.avatar-wrap:hover .sign .aura { animation-duration: 2.4s; }
.halo .orbit { fill: none; stroke: rgba(230, 207, 152, 0.28); stroke-width: 0.6; stroke-dasharray: 1.5 2.5; opacity: 0; animation: fade-in 2s ease 2.4s forwards; }
.halo .planet { fill: #ffd9a0; filter: drop-shadow(0 0 3px #ffb35a) drop-shadow(0 0 6px rgba(255, 140, 60, 0.7)); opacity: 0; animation: fade-in 1s ease 2.8s forwards; }
.halo .ring { fill: none; stroke: var(--accent); stroke-width: 1.2; stroke-dasharray: 1; stroke-dashoffset: 1; filter: drop-shadow(0 0 5px rgba(200, 164, 92, 0.6)); animation: ring-draw 2.2s cubic-bezier(0.6, 0, 0.2, 1) 0.3s forwards, ring-breathe 6s ease-in-out 2.6s infinite; }
.halo .corona { fill: none; stroke: #ffd9a0; stroke-width: 0; opacity: 0; transform-origin: 50px 50px; }
.halo .blackmoon { opacity: 0; }
.halo .tether { fill: none; stroke: #e0707e; stroke-width: 0.5; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0; filter: drop-shadow(0 0 2px #e0707e); }
.halo .blackmoon circle { fill: #030202; stroke: rgba(196, 106, 116, 0.5); stroke-width: 0.5; }
.halo .blackmoon path { fill: #c46a74; filter: drop-shadow(0 0 2px #c46a74); }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fade-in { to { opacity: 1; } }
@keyframes ring-draw { to { stroke-dashoffset: 0; } }
@keyframes ring-breathe { 50% { filter: drop-shadow(0 0 11px rgba(200, 164, 92, 0.9)); } }

/* The eclipse: Black Moon Lilith drifts across the face, the light dims, and the ring flares into a corona. */
.avatar-wrap.eclipse .blackmoon { animation: moon-fade 4.2s linear forwards; }
@keyframes moon-fade { 0% { opacity: 0; } 12%, 88% { opacity: 1; } 100% { opacity: 0; } }
.avatar-wrap.eclipse .avatar { animation: dim 4.2s ease-in-out; }
/* While she is away from it, the wheel stops; Scorpio burns, and a thread runs from the sign to the moon. */
.avatar-wrap.eclipse .signs, .avatar-wrap.eclipse .sign .upright { animation-play-state: paused; }
.avatar-wrap.eclipse .lilith { opacity: 0; }
.avatar-wrap.eclipse .tether { animation: tether 4.2s ease-in-out; }
@keyframes tether { 0% { opacity: 0; stroke-dashoffset: 1; } 10% { opacity: 0.9; } 46%, 54% { opacity: 0.9; stroke-dashoffset: 0; } 90% { opacity: 0.9; } 100% { opacity: 0; stroke-dashoffset: 1; } }
.avatar-wrap.eclipse .s-scorpio .aura { animation: scorpio-burn 4.2s ease-in-out; }
@keyframes scorpio-burn { 0%, 100% { transform: scale(0.9); } 20%, 80% { transform: scale(1.9); opacity: 1; } }
@keyframes dim { 50% { filter: saturate(0.4) brightness(0.45) contrast(1.15); } }
.avatar-wrap.eclipse .corona { animation: corona 4.2s ease-in-out; }
@keyframes corona {
  0%, 30%, 72%, 100% { opacity: 0; stroke-width: 0; transform: scale(1); }
  50% { opacity: 0.9; stroke-width: 3.2; transform: scale(1.06); filter: blur(1.4px) drop-shadow(0 0 8px #ffb35a) drop-shadow(0 0 18px rgba(255, 120, 50, 0.8)); }
  58% { opacity: 0.5; stroke-width: 6; transform: scale(1.14); } }

/* The glitch: for a blink the photo splits into red and cyan and tears sideways, then snaps back. */
.avatar-wrap .ghost { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; margin: 0; border-radius: 50%; object-fit: cover; opacity: 0; mix-blend-mode: screen; pointer-events: none; }
.avatar-wrap .ghost-r { filter: sepia(1) saturate(8) hue-rotate(-45deg) brightness(0.8); }
.avatar-wrap .ghost-c { filter: sepia(1) saturate(8) hue-rotate(150deg) brightness(0.8); }
.avatar-wrap.glitch .ghost-r { animation: tear-r 0.34s steps(1) forwards; }
.avatar-wrap.glitch .ghost-c { animation: tear-c 0.34s steps(1) forwards; }
.avatar-wrap.glitch .avatar { animation: tear 0.34s steps(1); }
@keyframes tear-r { 0% { opacity: 0.8; transform: translate(-5px, 0); clip-path: inset(10% 0 55% 0); } 25% { transform: translate(4px, 1px); clip-path: inset(48% 0 20% 0); } 50% { transform: translate(-3px, -1px); clip-path: inset(0 0 70% 0); } 75% { transform: translate(6px, 0); clip-path: inset(70% 0 5% 0); } 100% { opacity: 0; } }
@keyframes tear-c { 0% { opacity: 0.8; transform: translate(5px, 0); clip-path: inset(30% 0 40% 0); } 25% { transform: translate(-4px, 0); clip-path: inset(5% 0 75% 0); } 50% { transform: translate(3px, 1px); clip-path: inset(60% 0 15% 0); } 75% { transform: translate(-6px, 0); clip-path: inset(20% 0 60% 0); } 100% { opacity: 0; } }
@keyframes tear { 0% { transform: translate(2px, 0) skewX(-3deg); } 25% { transform: translate(-2px, 0); } 50% { transform: translate(1px, 0) skewX(2deg); } 75% { transform: none; } }

.container h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(2.2rem, 7vw, 3.3rem); letter-spacing: 0.01em; color: var(--text-main); margin-bottom: 0.4rem; text-shadow: 0 0 30px rgba(200, 164, 92, 0.12); }

/* The video, framed like a window at night. */
.reel { background: #000; position: relative; width: min(100%, 22rem); aspect-ratio: 16 / 9; margin: 0 auto 0.5rem; border-radius: 12px; overflow: hidden; border: 1px solid rgba(200, 164, 92, 0.35); box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.6), 0 18px 40px -18px rgba(0, 0, 0, 0.9), 0 0 30px -10px rgba(200, 164, 92, 0.3); }
.reel iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }


.container h2.label, .container h3 { font-family: var(--font-ui); font-weight: 500; font-size: 0.7rem; letter-spacing: 0.32em; text-transform: uppercase; color: var(--text-muted); margin: 2.4rem 0 1rem; display: flex; align-items: center; gap: 0.9rem; }
.container h2.label::before, .container h2.label::after, .container h3::before, .container h3::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--border-color)); }
.container h2.label::after, .container h3::after { background: linear-gradient(90deg, var(--border-color), transparent); }
.container br { display: none; }
.button-stack h3 { align-self: stretch; }

/* ---------- Buttons: dark glass, brass edge on hover, a sheen that passes over ---------- */
.button-stack { display: flex; flex-direction: column; align-items: center; }
.container .button {
  position: relative; overflow: hidden; isolation: isolate;
  width: min(100%, 20rem); min-height: 3.1rem; margin-bottom: 0.8rem;
  background: var(--bg-card) !important; background-image: none !important;
  color: var(--text-main) !important; border: 1px solid var(--border-color) !important; border-radius: 12px;
  font-family: var(--font-display); font-weight: 400; font-size: 1.08rem; letter-spacing: 0.02em;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: border-color 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease, background-color 0.35s ease;
}
.container .button .icon { opacity: 0.8; transition: opacity 0.3s ease, filter 0.3s ease; }
.container .button::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(105deg, transparent 35%, rgba(230, 207, 152, 0.14) 50%, transparent 65%); transform: translateX(-120%); transition: transform 0.9s ease; }
.container .button:hover, .container .button:focus-visible {
  background: var(--bg-card-hover) !important; border-color: rgba(200, 164, 92, 0.6) !important; transform: translateY(-2px);
  box-shadow: 0 10px 28px -14px rgba(0, 0, 0, 0.9), 0 0 22px -8px rgba(200, 164, 92, 0.45);
}
.container .button:hover::after, .container .button:focus-visible::after { transform: translateX(120%); }
.container .button:hover .icon { opacity: 1; filter: drop-shadow(0 0 4px rgba(230, 207, 152, 0.6)); }
:root.theme-dark :focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- The door to WIA ---------- */
.wia-door {
  --ang: 0deg;
  position: relative; display: flex; align-items: center; gap: 1rem;
  width: min(100%, 22rem); margin: 0.2rem auto 0; padding: 1.15rem 1.3rem 1.15rem 1.15rem;
  border-radius: 16px; text-decoration: none; text-align: left; color: var(--text-main) !important;
  background: #070605; isolation: isolate; overflow: hidden;
  box-shadow: 0 20px 50px -24px rgba(0, 0, 0, 1), 0 0 40px -18px rgba(200, 164, 92, 0.5);
  transition: transform 0.25s ease-out, box-shadow 0.5s ease;
}
/* The edge: a thin seam of light that slowly travels around the door. */
.wia-door::before {
  content: ''; position: absolute; inset: 0; z-index: 3; border-radius: inherit; padding: 1px; pointer-events: none;
  background: conic-gradient(from var(--ang), rgba(200, 164, 92, 0.18) 0deg, rgba(200, 164, 92, 0.18) 250deg, #e6cf98 300deg, #c46a74 330deg, rgba(200, 164, 92, 0.18) 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: seam 7s linear infinite;
}
@keyframes seam { to { --ang: 360deg; } }
.wia-door-sky { position: absolute; inset: 0; z-index: 0; }
.wia-door-sky canvas { width: 100%; height: 100%; display: block; }
.wia-door::after { content: ''; position: absolute; inset: 0; z-index: 1; background: radial-gradient(120% 140% at 0% 50%, rgba(7, 6, 5, 0.85) 25%, rgba(7, 6, 5, 0.2) 70%, transparent); pointer-events: none; }
.wia-door > :not(.wia-door-sky) { position: relative; z-index: 2; }
.wia-door-glyph {
  flex-shrink: 0; width: 3rem; height: 3rem; display: grid; place-items: center; border-radius: 50%;
  font-size: 1.5rem; line-height: 1; color: var(--accent);
  border: 1px solid rgba(200, 164, 92, 0.4);
  background: radial-gradient(circle at 50% 40%, rgba(200, 164, 92, 0.18), rgba(0, 0, 0, 0.3) 70%);
  text-shadow: 0 0 12px rgba(200, 164, 92, 0.8);
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.6s ease, color 0.6s ease;
}
.wia-door-text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.wia-door-title { font-family: var(--font-display); font-size: 1.75rem; line-height: 1; letter-spacing: 0.22em; }
.wia-door-title .i { color: var(--accent); font-style: italic; display: inline-block; transform: rotate(4deg); }
.wia-door-sub { font-family: var(--font-display); font-style: italic; font-size: 0.92rem; color: var(--text-muted); margin-top: 0.4rem; line-height: 1.35; }
.wia-door-arrow { font-family: var(--font-ui); font-size: 1.1rem; color: var(--accent); opacity: 0.7; transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.4s ease; }
.wia-door { transform: perspective(700px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transform-style: preserve-3d; }
.wia-door:hover, .wia-door:focus-visible { transform: perspective(700px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-3px) scale(1.015); box-shadow: 0 26px 60px -26px rgba(0, 0, 0, 1), 0 0 60px -14px rgba(200, 164, 92, 0.7), 0 0 90px -30px rgba(196, 106, 116, 0.6); }
.wia-door:hover::before, .wia-door:focus-visible::before { animation-duration: 2.4s; }
.wia-door:hover .wia-door-glyph, .wia-door:focus-visible .wia-door-glyph { transform: rotate(-12deg) scale(1.08); color: #f3e2b3; box-shadow: 0 0 24px rgba(200, 164, 92, 0.6), inset 0 0 12px rgba(200, 164, 92, 0.3); }
.wia-door:hover .wia-door-arrow, .wia-door:focus-visible .wia-door-arrow { transform: translateX(5px); opacity: 1; }
.wia-door:hover .wia-door-sub { color: #bdb5a2; }
/* A glare that follows the pointer across the glass. */
.wia-door-glare { position: absolute !important; inset: 0; z-index: 2; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity 0.4s ease;
  background: radial-gradient(220px circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 236, 200, 0.16), transparent 60%); mix-blend-mode: screen; }
.wia-door:hover .wia-door-glare { opacity: 1; }
/* Every few seconds the seal sends a ripple out across the door. */
.wia-door-glyph { position: relative; }
.wia-door-glyph::before, .wia-door-glyph::after { content: ''; position: absolute; inset: -1px; border-radius: 50%; border: 1px solid rgba(200, 164, 92, 0.7); opacity: 0; animation: ripple 6s cubic-bezier(0.2, 0.6, 0.3, 1) infinite; animation-delay: 2.5s; pointer-events: none; }
.wia-door-glyph::after { animation-delay: 2.9s; border-color: rgba(196, 106, 116, 0.6); }
@keyframes ripple { 0% { opacity: 0.9; transform: scale(1); } 40%, 100% { opacity: 0; transform: scale(5.5); } }
.wia-door:hover .wia-door-glyph::before, .wia-door:hover .wia-door-glyph::after { animation-duration: 1.6s; animation-delay: 0s, 0.25s; }
/* The title tears in red and cyan, briefly, as you arrive. */
.wia-door-title { position: relative; }
.wia-door-title::before, .wia-door-title::after { content: attr(data-text); position: absolute; left: 0; top: 0; opacity: 0; letter-spacing: inherit; pointer-events: none; }
.wia-door-title::before { color: #ff5a6a; }
.wia-door-title::after { color: #5ae0ff; }
.wia-door:hover .wia-door-title::before { animation: title-tear-r 0.5s steps(1) 1; }
.wia-door:hover .wia-door-title::after { animation: title-tear-c 0.5s steps(1) 1; }
@keyframes title-tear-r { 0% { opacity: 0.7; transform: translate(-3px, 0); clip-path: inset(0 0 60% 0); } 33% { transform: translate(2px, 0); clip-path: inset(50% 0 0 0); } 66% { transform: translate(-1px, 0); clip-path: inset(20% 0 40% 0); } 100% { opacity: 0; } }
@keyframes title-tear-c { 0% { opacity: 0.7; transform: translate(3px, 0); clip-path: inset(55% 0 0 0); } 33% { transform: translate(-2px, 0); clip-path: inset(0 0 55% 0); } 66% { transform: translate(1px, 0); clip-path: inset(40% 0 20% 0); } 100% { opacity: 0; } }

/* ---------- Footer ---------- */
footer { position: relative; z-index: 1; font-family: var(--font-ui); font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; }
:root.theme-dark footer a:not(.button), footer a { color: var(--text-muted) !important; text-decoration: none; border-bottom: 1px solid transparent; transition: color 0.3s ease, border-color 0.3s ease; }
:root.theme-dark footer a:not(.button):hover, footer a:hover { color: var(--accent) !important; border-color: rgba(200, 164, 92, 0.5); }

/* ---------- Arrival: everything rises in, one after another ---------- */
.rise { animation: rise 1s cubic-bezier(0.2, 0.7, 0.2, 1) backwards; animation-delay: calc(0.25s + var(--i, 0) * 0.09s); }
@keyframes rise { from { opacity: 0; transform: translateY(12px); filter: blur(4px); } }

/* ---------- Privacy page ---------- */
.container-left { position: relative; z-index: 1; color: var(--text-main); }
.container-left h1, .container-left h2 { font-family: var(--font-display); font-weight: 400; }
.container-left h3 { font-family: var(--font-display); font-weight: 400; color: var(--accent); }
:root a:not(.button):not(.wia-door) { color: var(--accent); }
:root a:not(.button):not(.wia-door):hover { color: var(--accent-soft); }

/* The name, cast in gold. It starts as a faint engraving. A point of white-hot light crosses it once,
   left to right, and the letters behind it fill with gold that cools to ivory. The name never moves,
   stretches or blurs: it stays set in place and legible the whole time. */
html.js .container h1[data-forge].rise:not(.forge) { animation-delay: 1.4s, 3.4s; }   /* held back so the casting gets there first */
.container h1.forge { animation: none; opacity: 1; cursor: pointer; -webkit-tap-highlight-color: transparent; }
/* One wide gradient, three times the width of the name: cooled ivory, then warm gold, then the white
   tip, then the faint engraving. Sliding it across is the whole effect. */
.container h1.forge.cast {
  background: linear-gradient(90deg,
    var(--text-main) 0%, var(--text-main) 40%,
    #e9d3a0 45.5%, #f3dfae 48%, #fff8e6 49.4%,
    rgba(233, 227, 213, 0.1) 49.7%, rgba(233, 227, 213, 0.1) 100%) 74.25% 0 / 300% 100% no-repeat;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 10px rgba(243, 223, 174, 0.28));
}
.container h1.forge.cast.pour { animation: name-cast 1.9s cubic-bezier(0.45, 0.05, 0.3, 1) forwards; }
/* 74.25% puts the white tip on the name's left edge; 10% carries the last of the gold off its right. */
@keyframes name-cast { from { background-position: 74.25% 0; } to { background-position: 10% 0; } }
.container h1.forge.done { animation: name-sheen 9s ease-in-out 2s infinite; }
.forge-sparks { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 5; pointer-events: none; }

/* PTG-IRL: a terminal, not a card. Same footprint as the other buttons, its own screen. */
.container .button.button-ptg {
  justify-content: flex-start; padding-left: 1.1rem; padding-right: 1.1rem;
  background: #080712 !important; border-color: rgba(157, 140, 255, 0.32) !important; border-radius: 8px;
  font-family: ui-monospace, 'SF Mono', 'Cascadia Mono', Menlo, Consolas, 'Liberation Mono', monospace; font-size: 0.86rem; letter-spacing: 0.01em;
  box-shadow: inset 0 0 22px rgba(120, 100, 255, 0.1);
}
/* Scanlines over the screen in place of the gold sheen the other buttons have. */
.container .button.button-ptg::after { transform: none; transition: none; z-index: 1; pointer-events: none; opacity: 0.55; background: repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 3px); }
.container .button.button-ptg::before { content: ''; position: absolute; left: 0; right: 0; top: -40%; height: 40%; z-index: 1; pointer-events: none; background: linear-gradient(180deg, transparent, rgba(157, 140, 255, 0.1), transparent); animation: ptg-sweep 6.5s linear infinite; }
@keyframes ptg-sweep { to { top: 120%; } }
.button-ptg .ptg-icon { fill: none; stroke: #9d8cff; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; opacity: 0.95; margin-right: 0.7rem; }
.button-ptg .ptg-screen { display: inline-flex; align-items: center; min-width: 0; white-space: nowrap; color: #d7d2f5; text-shadow: 0 0 8px rgba(157, 140, 255, 0.45); }
.button-ptg .ptg-prompt { color: #9d8cff; margin-right: 0.55em; }
.button-ptg .ptg-cursor { display: inline-block; width: 0.55em; height: 1.05em; margin-left: 0.12em; background: #e6cf98; box-shadow: 0 0 8px rgba(230, 207, 152, 0.7); animation: ptg-blink 1.05s steps(1) infinite; }
@keyframes ptg-blink { 50% { opacity: 0; } }
.container .button.button-ptg:hover, .container .button.button-ptg:focus-visible {
  background: #0c0a1c !important; border-color: rgba(157, 140, 255, 0.85) !important;
  box-shadow: 0 10px 28px -14px rgba(0, 0, 0, 0.9), 0 0 26px -6px rgba(157, 140, 255, 0.6), inset 0 0 26px rgba(120, 100, 255, 0.2);
}
.container .button.button-ptg:hover .ptg-icon { filter: drop-shadow(0 0 5px rgba(157, 140, 255, 0.9)); }
.container .button.button-ptg:hover .ptg-screen, .container .button.button-ptg:focus-visible .ptg-screen { color: #fff; }
.container .button.button-ptg:hover .ptg-prompt { color: #e6cf98; }

/* The Stellar Method Inc.: three stars, three lines of work. Each star lights as its service is named;
   on hover all three are lit, the lines between them are drawn, and the whole list shows. */
.container .button.button-tsm {
  justify-content: flex-start; min-height: 3.9rem; padding: 0.55rem 1.1rem; text-align: left;
  background: linear-gradient(135deg, #1b1724 0%, #120f19 60%, #17131f 100%) !important; border-color: rgba(116, 105, 134, 0.6) !important;
}
.container .button.button-tsm::after { background: linear-gradient(105deg, transparent 35%, rgba(214, 205, 232, 0.16) 50%, transparent 65%); }
.button-tsm .tsm-mark { width: 2.3rem; height: 2.3rem; margin-right: 0.85rem; overflow: visible; opacity: 1; }
.button-tsm .tsm-line { fill: none; stroke: #a99bc4; stroke-width: 0.9; stroke-linejoin: round; opacity: 0.3; stroke-dasharray: 1; stroke-dashoffset: 0; transition: opacity 0.5s ease; }
.button-tsm .tsm-star { fill: #8d80a6; transform-box: fill-box; transform-origin: center; animation: tsm-star 9s ease-in-out infinite; }
.button-tsm .tsm-star.s2 { animation-delay: 3s; }
.button-tsm .tsm-star.s3 { animation-delay: 6s; }
/* A third of the loop each: up, held, and back down. */
@keyframes tsm-star { 0%, 36%, 100% { fill: #8d80a6; transform: scale(0.72); filter: none; } 5%, 29% { fill: #f4f0fb; transform: scale(1.25) rotate(45deg); filter: drop-shadow(0 0 3px #cfc3e6) drop-shadow(0 0 7px rgba(169, 155, 196, 0.9)); } }
.button-tsm .tsm-text { display: flex; flex-direction: column; min-width: 0; }
.button-tsm .tsm-name { font-family: var(--font-display); font-size: 1.08rem; line-height: 1.2; color: #f1edf7; white-space: nowrap; }
.button-tsm .tsm-inc { font-style: italic; font-size: 0.86em; color: #b9aecb; }
.button-tsm .tsm-services { position: relative; display: block; height: 1.15rem; margin-top: 0.12rem; font-family: var(--font-ui); font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase; color: #b9aecb; }
.button-tsm .sv { position: absolute; left: 0; top: 0; line-height: 1.15rem; white-space: nowrap; opacity: 0; animation: tsm-word 9s ease-in-out infinite; }
.button-tsm .sv.s2 { animation-delay: 3s; }
.button-tsm .sv.s3 { animation-delay: 6s; }
.button-tsm .sv.all { animation: none; letter-spacing: 0.14em; transition: opacity 0.35s ease; }
@keyframes tsm-word { 0%, 35%, 100% { opacity: 0; transform: translateY(4px); } 5%, 29% { opacity: 1; transform: none; } }
/* Hover: the whole method at once. */
.container .button.button-tsm:hover, .container .button.button-tsm:focus-visible {
  background: linear-gradient(135deg, #231d30 0%, #171320 60%, #1e1929 100%) !important; border-color: rgba(169, 155, 196, 0.9) !important;
  box-shadow: 0 10px 28px -14px rgba(0, 0, 0, 0.9), 0 0 24px -8px rgba(169, 155, 196, 0.6);
}
.button-tsm:hover .tsm-line, .button-tsm:focus-visible .tsm-line { opacity: 0.95; animation: tsm-draw 0.9s ease both; }
@keyframes tsm-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.button-tsm:hover .tsm-star, .button-tsm:focus-visible .tsm-star { animation: none; fill: #f4f0fb; transform: scale(1.15) rotate(45deg); filter: drop-shadow(0 0 3px #cfc3e6) drop-shadow(0 0 7px rgba(169, 155, 196, 0.9)); transition: transform 0.4s cubic-bezier(0.2, 1.6, 0.4, 1), fill 0.3s; }
.button-tsm:hover .tsm-mark, .button-tsm:focus-visible .tsm-mark { filter: none; }
.button-tsm:hover .sv:not(.all), .button-tsm:focus-visible .sv:not(.all) { animation: none; opacity: 0; }
.button-tsm:hover .sv.all, .button-tsm:focus-visible .sv.all { opacity: 1; color: #e2daf0; }

/* The crown: self-made, so it sits a little crooked, slips now and then, and never stays straight for long. */
.crown { all: unset; position: absolute; z-index: 4; left: 50%; top: -1.7rem; width: 3.5rem; margin-left: -1.75rem; cursor: pointer; opacity: 0; transform: translateY(-3.5rem) rotate(-30deg); transform-origin: 50% 100%; -webkit-tap-highlight-color: transparent; filter: drop-shadow(0 0 6px rgba(243, 223, 174, 0.45)); }
.crown svg { display: block; width: 100%; height: auto; overflow: visible; }
.crown-body { fill: rgba(200, 164, 92, 0.2); stroke: var(--accent); stroke-width: 2.4; stroke-linejoin: round; }
.crown-band { fill: none; stroke: var(--accent); stroke-width: 1.6; }
.crown-jewel { fill: #f3dfae; }
.crown-gem { fill: #c46a74; } .crown-gem.g2 { fill: #8cc7c0; }
.crown:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 6px; }
.crown.on { opacity: 1; transform: rotate(-9deg); animation: crown-drop 1.1s cubic-bezier(0.3, 1.5, 0.5, 1) backwards, crown-slip 17s ease-in-out 6s infinite; }
@keyframes crown-drop { 0% { opacity: 0; transform: translateY(-3.5rem) rotate(-30deg); } 55% { opacity: 1; transform: translateY(0.2rem) rotate(4deg); } 75% { transform: translateY(-0.12rem) rotate(-13deg); } 100% { opacity: 1; transform: rotate(-9deg); } }
/* Every so often it slides, hangs there a moment, and is nudged back. Nearly. */
@keyframes crown-slip { 0%, 78%, 100% { transform: rotate(-9deg); } 84% { transform: translate(-0.34rem, 0.22rem) rotate(-21deg); } 90% { transform: translate(-0.36rem, 0.24rem) rotate(-22deg); } 95% { transform: translate(0.05rem, -0.05rem) rotate(-5deg); } }
/* Set straight by hand: it rises, sits true, gleams, and then settles back to crooked. */
.crown.on.set { animation: crown-set 3.4s cubic-bezier(0.3, 1.2, 0.4, 1) forwards; }
@keyframes crown-set { 0% { transform: rotate(-9deg); } 14% { transform: translateY(-0.6rem) rotate(3deg) scale(1.12); filter: drop-shadow(0 0 16px #f3dfae); } 26%, 70% { transform: rotate(0deg) scale(1.06); filter: drop-shadow(0 0 12px rgba(243, 223, 174, 0.9)); } 100% { transform: rotate(-9deg); } }

/* The styles and titles under the name change places quietly. */
.container .tagline[data-titles] { min-height: 1.6em; transition: opacity 0.6s ease, filter 0.6s ease, transform 0.6s ease; }
.container .tagline[data-titles].swap { opacity: 0 !important; filter: blur(4px); transform: translateY(4px); }
.container .tagline[data-titles].said { color: var(--accent); }

/* The wards: three sigils in the footer that draw themselves in, then keep watch. */
.wards { display: flex; justify-content: center; align-items: center; gap: 2.2rem; margin: 0 auto 1.8rem; }
.ward { width: 54px; height: 54px; overflow: visible; color: var(--accent); opacity: 0.55; transition: opacity 0.5s, filter 0.5s, transform 0.5s; }
.ward-rune { width: 46px; height: 46px; color: #c46a74; }
.ward:hover { opacity: 1; filter: drop-shadow(0 0 6px currentColor); transform: scale(1.12); }
.ward path, .ward circle { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ward-bound circle { stroke-width: 1.2; }
.ward-bound path { stroke-width: 1.6; opacity: 0; }
.ward-mark path, .ward-mark circle, .ward-bound circle { stroke-dasharray: 1; stroke-dashoffset: 1; }
.wards.drawn .ward-mark path, .wards.drawn .ward-mark circle { animation: ward-draw 1.1s cubic-bezier(0.4, 0, 0.2, 1) forwards; animation-delay: calc(0.2s + var(--s) * 0.35s); }
.wards.drawn .ward-bound circle { animation: ward-draw 1.8s ease forwards 0.9s; }
.wards.drawn .ward-bound path { animation: ward-fade 1s ease forwards 2.4s; }
@keyframes ward-draw { to { stroke-dashoffset: 0; } }
@keyframes ward-fade { to { opacity: 1; } }
.wards.drawn .ward-bound { transform-origin: 50px 50px; animation: ward-turn 90s linear infinite 3s; }
@keyframes ward-turn { to { transform: rotate(360deg); } }
.wards.drawn .ward-mirror .ward-mark { transform-origin: 50px 50px; animation: ward-breathe 7s ease-in-out infinite 3.5s; }
@keyframes ward-breathe { 50% { transform: scaleX(1.08); } }
.wards.drawn .ward-rune { animation: ward-flare 11s ease-in-out infinite 4s; }
@keyframes ward-flare { 0%, 86%, 100% { filter: none; opacity: 0.55; } 92% { filter: drop-shadow(0 0 7px currentColor); opacity: 1; } }

/* The quiet link under the WIA door. */
.container .about-link { margin: 1rem 0 0; font-family: var(--font-display); font-style: italic; font-size: 1rem; }

/* The line under the name. */
.container .tagline { font-family: var(--font-display); font-style: italic; font-size: 1.05rem; color: var(--text-muted); margin: 0 0 1.4rem; }

/* A slow band of gold light crossing the name. */
.container h1 { background: linear-gradient(100deg, var(--text-main) 42%, #f3dfae 50%, var(--text-main) 58%) 100% 0 / 280% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.container h1.rise { animation: rise 1s cubic-bezier(0.2, 0.7, 0.2, 1) backwards, name-sheen 9s ease-in-out 2.2s infinite; animation-delay: calc(0.25s + var(--i, 0) * 0.09s), 2.2s; }
@keyframes name-sheen { 0%, 55% { background-position: 100% 0; } 85%, 100% { background-position: 0% 0; } }

/* Moving between pages (and into /wia): the old page lifts away, the new one settles in. */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out 0.28s ease-in both; }
::view-transition-new(root) { animation: vt-in 0.55s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-10px) scale(0.99); filter: blur(3px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(14px); filter: blur(4px); } }

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  .container h1.rise { animation: none; }
  .crown, .crown.on, .crown.on.set { opacity: 1; transform: rotate(-9deg); animation: none; }
  .container .button.button-ptg::before, .button-ptg .ptg-cursor { animation: none; }
  .button-tsm .tsm-star, .button-tsm .sv, .button-tsm .tsm-line { animation: none !important; }
  .button-tsm .tsm-star { fill: #e2daf0; transform: none; }
  .button-tsm .sv.all { opacity: 1; }
  .container .tagline[data-titles] { transition: none; }
  .ward-mark path, .ward-mark circle, .ward-bound circle { stroke-dashoffset: 0 !important; animation: none !important; }
  .ward-bound path { opacity: 1 !important; animation: none !important; }
  .wards.drawn .ward-bound, .wards.drawn .ward-mirror .ward-mark, .wards.drawn .ward-rune { animation: none !important; }
  .rise { animation: none; }
  .night .haze, .night .grain, .wia-door::before { animation: none; }
  .halo .ring { animation: none; stroke-dashoffset: 0; }
  .halo .ticks, .halo .signs, .halo .signs text, .halo .orbit, .halo .planet { animation: none; opacity: 1; }
  .halo .sign, .halo .sign *, .halo .lilith, .halo .nimbus, .halo .rays, .halo .rays line, .halo .inscription, .halo .signs .cross { animation: none; opacity: 1; }
  .halo .rays { opacity: 0.6; }
  .halo .planet { display: none; }
  .wia-door-glyph::before, .wia-door-glyph::after, .wia-door-title::before, .wia-door-title::after { animation: none !important; }
  .wia-door { transform: none !important; }
  .container .button, .wia-door, .wia-door-glyph, .wia-door-arrow { transition: none; }
}

/* ---------- The hidden way into /firmament/ ----------
   Seven faint stars up and to the right of Aldebaran (which night.js draws at 80% across, 16% down).
   They look like part of the sky until the pointer or the keyboard finds them. */
.sky-egg { position: fixed; z-index: 2; left: min(calc(80vw + 11vmin), calc(100vw - 50px)); top: max(calc(16vh - 9vmin), 8px); width: 44px; height: 44px; margin: -22px 0 0 -22px; display: block; border-radius: 50%; -webkit-tap-highlight-color: transparent; }
.sky-egg svg { display: block; width: 100%; height: 100%; overflow: visible; }
.sky-egg circle { fill: #cfd9ff; opacity: 0.5; transition: opacity 0.5s ease, fill 0.5s ease; animation: egg-twinkle 5s ease-in-out infinite; }
.sky-egg circle:nth-of-type(2n) { animation-delay: -1.7s; }
.sky-egg circle:nth-of-type(3n) { animation-delay: -3.1s; }
@keyframes egg-twinkle { 50% { opacity: 0.22; } }
.sky-egg .egg-line { fill: none; stroke: var(--accent-soft); stroke-width: 0.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0.7; transition: stroke-dashoffset 1.1s cubic-bezier(0.4, 0, 0.2, 1); }
.sky-egg .egg-word { position: absolute; right: 50%; top: 100%; transform: translateX(50%) translateY(-2px); white-space: nowrap; font-family: var(--font-ui); font-size: 0.58rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--accent-soft); opacity: 0; transition: opacity 0.6s ease 0.2s, transform 0.6s ease 0.2s; pointer-events: none; }
.sky-egg:hover circle, .sky-egg:focus-visible circle { opacity: 1; fill: #fff; animation: none; filter: drop-shadow(0 0 3px #cfd9ff); }
.sky-egg:hover .egg-line, .sky-egg:focus-visible .egg-line { stroke-dashoffset: 0; }
.sky-egg:hover .egg-word, .sky-egg:focus-visible .egg-word { opacity: 1; transform: translateX(50%) translateY(3px); }
@media (prefers-reduced-motion: reduce) { .sky-egg circle { animation: none; } .sky-egg .egg-line, .sky-egg .egg-word { transition: none; } }

/* ---------- Each button moves the way its own place does ----------
   Facebook gets a notification, Instagram a story ring and hearts, Steam a download and an online light,
   YouTube a playing video's progress bar, GitHub a contribution graph. (PTG-IRL, The Stellar Method and
   WIA have their own, above.) All CSS: a quiet version at rest, the full one on hover or focus. */
.button .fx { position: absolute; inset: 0; z-index: -1; pointer-events: none; border-radius: inherit; overflow: hidden; }
.button .fx i, .button .fx b, .button .fx em, .button .fx u { position: absolute; display: block; font-style: normal; font-weight: 400; text-decoration: none; }
.container .button { --brand: var(--accent); }
.container .button[class*='button-']:not(.button-ptg):not(.button-tsm):hover, .container .button[class*='button-']:not(.button-ptg):not(.button-tsm):focus-visible { border-color: var(--brand) !important; box-shadow: 0 10px 28px -14px rgba(0, 0, 0, 0.9), 0 0 24px -8px var(--brand); }

/* Facebook: someone has reacted. A badge pops, and rings go out from it. */
.container .button.button-faceb { --brand: #2d88ff; }
.fx-fb .badge { right: 0.85rem; top: 50%; min-width: 1.15rem; height: 1.15rem; margin-top: -0.575rem; padding: 0 0.3rem; border-radius: 9999px; background: #f02849; color: #fff; font: 700 0.68rem/1.15rem var(--font-ui); text-align: center; transform: scale(0); animation: fb-badge 9s cubic-bezier(0.3, 1.6, 0.5, 1) infinite 2s; }
@keyframes fb-badge { 0%, 6% { transform: scale(0); } 10%, 62% { transform: scale(1); } 68%, 100% { transform: scale(0); } }
.fx-fb .ring { right: 0.85rem; top: 50%; width: 1.15rem; height: 1.15rem; margin-top: -0.575rem; border-radius: 50%; border: 1px solid #2d88ff; opacity: 0; animation: fb-ring 9s ease-out infinite 2.3s; }
.fx-fb .ring.r2 { animation-delay: 2.7s; }
@keyframes fb-ring { 0%, 3% { opacity: 0; transform: scale(0.6); } 5% { opacity: 0.8; } 22%, 100% { opacity: 0; transform: scale(3.4); } }
.fx-fb::before { content: ''; position: absolute; inset: 0; background: radial-gradient(120% 160% at 100% 50%, rgba(45, 136, 255, 0.28), transparent 60%); opacity: 0; transition: opacity 0.4s ease; }
.button-faceb:hover .fx-fb::before, .button-faceb:focus-visible .fx-fb::before { opacity: 1; }
.button-faceb:hover .badge, .button-faceb:focus-visible .badge { animation: fb-pop 0.45s cubic-bezier(0.3, 1.8, 0.5, 1) both; }
@keyframes fb-pop { from { transform: scale(0); } to { transform: scale(1.12); } }
.button-faceb:hover .ring, .button-faceb:focus-visible .ring { animation: fb-ring-on 1.3s ease-out infinite; }
.button-faceb:hover .ring.r2, .button-faceb:focus-visible .ring.r2 { animation-delay: 0.45s; }
@keyframes fb-ring-on { 0% { opacity: 0.9; transform: scale(0.8); } 100% { opacity: 0; transform: scale(3.6); } }

/* Instagram: the ring that means a story is waiting, and the hearts of a double tap. */
.container .button.button-instagram { --brand: #e1306c; }
.fx-ig::before { content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; background: conic-gradient(from var(--ang), #feda75, #fa7e1e, #d62976, #962fbf, #4f5bd5, #feda75); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); opacity: 0.3; animation: ig-turn 14s linear infinite; transition: opacity 0.4s ease; }
@keyframes ig-turn { to { --ang: 360deg; } }
.button-instagram:hover .fx-ig::before, .button-instagram:focus-visible .fx-ig::before { opacity: 1; animation-duration: 2.6s; }
.container .button.button-instagram:hover, .container .button.button-instagram:focus-visible { border-color: transparent !important; }
.fx-ig i { right: 1.1rem; bottom: -0.4rem; color: #ff5a8a; font-size: 0.8rem; line-height: 1; opacity: 0; }
.fx-ig i:nth-child(2) { right: 2rem; font-size: 0.62rem; color: #fa7e1e; }
.fx-ig i:nth-child(3) { right: 0.5rem; font-size: 0.55rem; color: #c86bd6; }
.button-instagram:hover .fx-ig i, .button-instagram:focus-visible .fx-ig i { animation: ig-heart 1.5s ease-out infinite; }
.button-instagram:hover .fx-ig i:nth-child(2), .button-instagram:focus-visible .fx-ig i:nth-child(2) { animation-delay: 0.5s; }
.button-instagram:hover .fx-ig i:nth-child(3), .button-instagram:focus-visible .fx-ig i:nth-child(3) { animation-delay: 0.95s; }
@keyframes ig-heart { 0% { opacity: 0; transform: translateY(0) scale(0.5); } 20% { opacity: 1; transform: translateY(-0.9rem) scale(1.15) rotate(-8deg); } 100% { opacity: 0; transform: translateY(-3.2rem) scale(0.9) rotate(10deg); } }

/* Steam: something is always downloading, and the light says he is online. */
.container .button.button-steam { --brand: #66c0f4; }
.fx-steam .bar { left: 0; bottom: 0; height: 2px; width: 100%; background: linear-gradient(90deg, #1a9fff, #66c0f4); transform-origin: left; transform: scaleX(0); opacity: 0.55; animation: steam-load 11s cubic-bezier(0.3, 0, 0.2, 1) infinite; }
@keyframes steam-load { 0% { transform: scaleX(0); } 30% { transform: scaleX(0.34); } 46% { transform: scaleX(0.4); } 78% { transform: scaleX(0.93); } 90% { transform: scaleX(1); opacity: 0.55; } 100% { transform: scaleX(1); opacity: 0; } }
.fx-steam em { right: 0.85rem; top: 50%; margin-top: -0.4rem; padding-left: 0.75rem; font: 600 0.56rem/0.8rem var(--font-ui); letter-spacing: 0.16em; text-transform: uppercase; color: transparent; transition: color 0.35s ease; }
.fx-steam em::before { content: ''; position: absolute; left: 0; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: #57cbde; box-shadow: 0 0 0 0 rgba(87, 203, 222, 0.6); animation: steam-online 2.6s ease-out infinite; }
@keyframes steam-online { to { box-shadow: 0 0 0 7px rgba(87, 203, 222, 0); } }
.button-steam:hover .fx-steam em, .button-steam:focus-visible .fx-steam em { color: #57cbde; }
.button-steam:hover .fx-steam .bar, .button-steam:focus-visible .fx-steam .bar { animation: steam-done 0.9s ease-out both; height: 3px; }
@keyframes steam-done { from { transform: scaleX(0.3); opacity: 0.6; } to { transform: scaleX(1); opacity: 1; background: #a4d007; } }
.fx-steam i { left: 1.4rem; bottom: -0.5rem; width: 0.9rem; height: 0.9rem; border-radius: 50%; background: radial-gradient(circle, rgba(199, 213, 224, 0.5), transparent 70%); opacity: 0; }
.fx-steam i:nth-child(2) { left: 2.3rem; width: 1.2rem; height: 1.2rem; }
.fx-steam i:nth-child(3) { left: 0.6rem; width: 0.7rem; height: 0.7rem; }
.button-steam:hover .fx-steam i, .button-steam:focus-visible .fx-steam i { animation: steam-puff 1.8s ease-out infinite; }
.button-steam:hover .fx-steam i:nth-child(2), .button-steam:focus-visible .fx-steam i:nth-child(2) { animation-delay: 0.6s; }
.button-steam:hover .fx-steam i:nth-child(3), .button-steam:focus-visible .fx-steam i:nth-child(3) { animation-delay: 1.1s; }
@keyframes steam-puff { 0% { opacity: 0; transform: translateY(0) scale(0.6); } 25% { opacity: 0.9; } 100% { opacity: 0; transform: translate(0.5rem, -3.4rem) scale(2.4); } }

/* YouTube: a video in the middle of playing. The red line runs; on hover it scrubs and the play mark shows. */
.container .button.button-yt { --brand: #ff0033; }
.fx-yt .bar { left: 0; right: 0; bottom: 0; height: 2px; background: rgba(255, 255, 255, 0.12); transition: height 0.25s ease; }
.fx-yt .bar::before { content: ''; position: absolute; inset: 0; background: #ff0033; transform-origin: left; animation: yt-play 24s linear infinite; }
.fx-yt .bar u { left: 0; top: 50%; width: 100%; height: 0; animation: yt-knob 24s linear infinite; }
.fx-yt .bar u::after { content: ''; position: absolute; left: -4px; top: -4px; width: 8px; height: 8px; border-radius: 50%; background: #ff0033; transform: scale(0); transition: transform 0.25s ease; }
@keyframes yt-play { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes yt-knob { from { transform: translateX(0); } to { transform: translateX(100%); } }
.button-yt:hover .fx-yt .bar, .button-yt:focus-visible .fx-yt .bar { height: 4px; }
.button-yt:hover .fx-yt .bar::before, .button-yt:focus-visible .fx-yt .bar::before, .button-yt:hover .fx-yt .bar u, .button-yt:focus-visible .fx-yt .bar u { animation-duration: 3.2s; }
.button-yt:hover .fx-yt .bar u::after, .button-yt:focus-visible .fx-yt .bar u::after { transform: scale(1.3); box-shadow: 0 0 8px #ff0033; }
.fx-yt .play { right: 1rem; top: 50%; margin-top: -0.4rem; width: 0; height: 0; border-left: 0.7rem solid #ff0033; border-top: 0.4rem solid transparent; border-bottom: 0.4rem solid transparent; opacity: 0; transform: scale(0.4); transition: opacity 0.3s ease, transform 0.4s cubic-bezier(0.3, 1.7, 0.5, 1); filter: drop-shadow(0 0 6px rgba(255, 0, 51, 0.8)); }
.button-yt:hover .fx-yt .play, .button-yt:focus-visible .fx-yt .play { opacity: 1; transform: scale(1); animation: yt-pulse 1.4s ease-in-out infinite 0.4s; }
@keyframes yt-pulse { 50% { transform: scale(1.18); } }

/* GitHub: the contribution graph. Squares come and go at rest; on hover the whole of it fills in, week by week. */
.container .button.button-github { --brand: #3fb950; }
.fx-gh .graph { position: absolute; display: grid; grid-template-rows: repeat(3, 5px); grid-auto-flow: column; grid-auto-columns: 5px; gap: 2px; right: 0.8rem; top: 50%; width: max-content; height: 19px; margin-top: -9.5px; }
.fx-gh .graph i { position: static; width: 5px; height: 5px; border-radius: 1.5px; background: #39d353; opacity: 0.1; animation: gh-commit 7s ease-in-out infinite; animation-delay: calc(var(--k) * -1.37s); transition: opacity 0.3s ease, background 0.3s ease; }
.fx-gh i:nth-child(3n) { background: #26a641; animation-duration: 9s; }
.fx-gh i:nth-child(4n + 1) { background: #006d32; animation-duration: 11s; }
@keyframes gh-commit { 0%, 55%, 100% { opacity: 0.1; } 70%, 85% { opacity: 0.85; } }
.button-github:hover .fx-gh i, .button-github:focus-visible .fx-gh i { animation: gh-fill 0.5s ease both; animation-delay: calc(var(--k) * 0.035s); }
@keyframes gh-fill { from { opacity: 0.1; transform: scale(0.4); } to { opacity: 1; transform: scale(1); } }

@media (prefers-reduced-motion: reduce) {
  .button .fx *, .button .fx::before, .button .fx *::before, .button .fx *::after { animation: none !important; transition: none !important; }
  .fx-fb .badge { transform: scale(1); } .fx-gh i { opacity: 0.5; } .fx-yt .bar::before { transform: scaleX(0.4); } .fx-steam .bar { transform: scaleX(0.6); }
}

/* ---------- Glass, not panels: every button lets the sky through ----------
   The fill is thin and barely blurred, so stars drift behind the buttons. What keeps them readable is the
   edge: a hairline of light along the top, the brand's colour in the corners, and a shadow under the type. */
:root { --bg-card: rgba(18, 16, 13, 0.24); --bg-card-hover: rgba(30, 26, 21, 0.4); }
.container .button { backdrop-filter: blur(1.5px) saturate(1.15); -webkit-backdrop-filter: blur(1.5px) saturate(1.15); border-color: rgba(233, 227, 213, 0.14) !important; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), inset 0 -10px 18px -14px rgba(0, 0, 0, 0.7); text-shadow: 0 1px 6px rgba(0, 0, 0, 0.95), 0 0 2px rgba(0, 0, 0, 0.8); }
.container .button.button-ptg { background: rgba(8, 7, 18, 0.34) !important; box-shadow: inset 0 0 22px rgba(120, 100, 255, 0.14), inset 0 1px 0 rgba(190, 180, 255, 0.1); }
.container .button.button-ptg:hover, .container .button.button-ptg:focus-visible { background: rgba(12, 10, 28, 0.52) !important; }
.container .button.button-tsm { background: linear-gradient(135deg, rgba(40, 33, 56, 0.4) 0%, rgba(18, 15, 25, 0.22) 60%, rgba(30, 25, 41, 0.34) 100%) !important; }
.container .button.button-tsm:hover, .container .button.button-tsm:focus-visible { background: linear-gradient(135deg, rgba(52, 43, 72, 0.55) 0%, rgba(23, 19, 32, 0.36) 60%, rgba(36, 30, 50, 0.48) 100%) !important; }

/* Name over handle. */
.container .button[class*='button-']:not(.button-ptg):not(.button-tsm) { min-height: 3.7rem; padding-top: 0.5rem; padding-bottom: 0.55rem; }
.button .b-text { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; }
.button .b-handle { margin-top: 0.2rem; font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: 0.62rem; letter-spacing: 0.06em; color: var(--text-muted); transition: color 0.3s ease; }
.button:hover .b-handle, .button:focus-visible .b-handle { color: var(--brand); }
.container .button[class*='button-']:not(.button-ptg):not(.button-tsm) .icon { width: 1.5rem; height: 1.5rem; margin-right: 0.75rem; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.9)); }

/* A wash of the brand's colour from the left, and its colour in the four corners. */
.button .fx { background: linear-gradient(100deg, color-mix(in srgb, var(--brand) 16%, transparent), transparent 46%); }
.button .fx::after { content: ''; position: absolute; inset: 5px; opacity: 0.5; transition: opacity 0.35s ease, inset 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
  background:
    linear-gradient(var(--brand), var(--brand)) left top / 10px 1px no-repeat, linear-gradient(var(--brand), var(--brand)) left top / 1px 10px no-repeat,
    linear-gradient(var(--brand), var(--brand)) right top / 10px 1px no-repeat, linear-gradient(var(--brand), var(--brand)) right top / 1px 10px no-repeat,
    linear-gradient(var(--brand), var(--brand)) left bottom / 10px 1px no-repeat, linear-gradient(var(--brand), var(--brand)) left bottom / 1px 10px no-repeat,
    linear-gradient(var(--brand), var(--brand)) right bottom / 10px 1px no-repeat, linear-gradient(var(--brand), var(--brand)) right bottom / 1px 10px no-repeat; }
.button:hover .fx::after, .button:focus-visible .fx::after { opacity: 1; inset: 3px; }
.fx-yt .bar, .fx-steam .bar { z-index: 1; }
.button .fx, .button .fx * { text-shadow: none; }

/* ---------- The eclipse, done properly (7.6 seconds; the light is drawn by js/night.js) ----------
   Black Moon Lilith is in Scorpio, his rising sign: the face. She covers it completely. He shows through her as a
   red shadow of himself; his Sun (Taurus) and his Moon (Leo) answer, and he comes out of it brighter than before. */
.halo .blackmoon circle { fill: rgba(5, 2, 4, 0.82); stroke: rgba(224, 112, 126, 0.55); stroke-width: 0.16; }
.halo .blackmoon path { fill: #ff8d9b; opacity: 0.85; }
.avatar-wrap.eclipse .blackmoon { animation: moon-fade2 7.6s linear forwards; }
@keyframes moon-fade2 { 0% { opacity: 0; } 5%, 76% { opacity: 1; } 80%, 100% { opacity: 0; } }
.avatar-wrap.eclipse .avatar { animation: shadow-self 7.6s ease-in-out; }
@keyframes shadow-self {
  0%, 100% { filter: saturate(0.9) contrast(1.04); }
  20%, 57% { filter: grayscale(1) sepia(1) hue-rotate(-42deg) saturate(5.5) brightness(0.62) contrast(1.35); }
  63% { filter: saturate(1.25) brightness(1.75) contrast(1.05); }
  82% { filter: saturate(1.1) brightness(1.18); } }
.avatar-wrap.eclipse .corona { animation: none; }
.avatar-wrap.eclipse .tether { animation: tether2 7.6s ease-in-out; }
@keyframes tether2 { 0% { opacity: 0; stroke-dashoffset: 1; } 5% { opacity: 0.9; } 20%, 60% { opacity: 0.9; stroke-dashoffset: 0; } 76% { opacity: 0.9; } 80%, 100% { opacity: 0; stroke-dashoffset: 1; } }
.avatar-wrap.eclipse .s-scorpio .aura { animation: scorpio-burn2 7.6s ease-in-out; }
@keyframes scorpio-burn2 { 0%, 100% { transform: scale(0.9); } 8%, 74% { transform: scale(2); opacity: 1; } }
/* Her hand is on the other three while she has him: they gutter. Then the Sun's sign and the Moon's blaze in turn. */
.avatar-wrap.eclipse .s-taurus .upright, .avatar-wrap.eclipse .s-leo .upright, .avatar-wrap.eclipse .s-aquarius .upright { animation-play-state: paused; }
.avatar-wrap.eclipse .crown { filter: drop-shadow(0 0 6px rgba(255, 214, 138, 0.9)); transition: filter 1.2s ease 4.4s; }
/* And the name takes the light when he comes back. */
.column.ascend h1 { animation: name-ascend 2.9s ease-out; }
@keyframes name-ascend { 0% { filter: none; } 12% { filter: brightness(1.7) drop-shadow(0 0 18px rgba(255, 214, 138, 0.95)) drop-shadow(0 0 46px rgba(255, 150, 60, 0.6)); } 100% { filter: none; } }

/* The eclipse in three beats, named by js/night.js on the wrapper: dark (she has him), answer (the Sun's sign and
   the Moon's take light), blaze (he is back). Everything here is a transition, so nothing starts over afterwards. */
.halo .ticks, .halo .ring { transition: stroke 0.7s ease; }
.halo .inscription { transition: fill 0.7s ease; }
.halo .nimbus { transition: filter 0.8s ease; }
.halo .sign { transition: filter 0.6s ease; }
.avatar-wrap.ecl-dark .ticks, .avatar-wrap.ecl-dark .ring { stroke: #e0707e; }
.avatar-wrap.ecl-dark .inscription { fill: rgba(224, 112, 126, 0.8); }
.avatar-wrap.ecl-dark .rays { filter: brightness(0.12); scale: 0.96; }
.avatar-wrap.ecl-dark .nimbus { filter: brightness(0.1); }
.avatar-wrap.ecl-dark .s-taurus, .avatar-wrap.ecl-dark .s-leo, .avatar-wrap.ecl-dark .s-aquarius { filter: saturate(0.25) brightness(0.4); }
.avatar-wrap.ecl-answer .s-taurus { filter: brightness(1.9) drop-shadow(0 0 4px #ffe9b0); }
.avatar-wrap.ecl-answer .s-leo { filter: brightness(1.8) drop-shadow(0 0 4px #ff9a3c); transition-delay: 0.3s; }
.avatar-wrap.ecl-blaze .ticks, .avatar-wrap.ecl-blaze .ring { stroke: #fff6dc; }
.avatar-wrap.ecl-blaze .inscription { fill: #fff6dc; }
.avatar-wrap.ecl-blaze .rays { filter: brightness(1.7) drop-shadow(0 0 2px #ffd58a); scale: 1.3; }
.avatar-wrap.ecl-blaze .nimbus { filter: brightness(2); }
/* At full size the disc is plain black; the light round it is the corona. */
.avatar-wrap.eclipse .blackmoon path { opacity: 0; }

/* ---------- About, in plain words ----------
   Quiet on purpose: small type under the door, so the page still leads with the picture. */
.intro { position: relative; z-index: 1; max-width: 34rem; margin: 2.6rem auto 0; padding: 0 1.25rem; text-align: center; }
.intro h2 { margin: 0 0 0.6rem; font-family: var(--font-ui); font-size: 0.66rem; font-weight: 500; letter-spacing: 0.3em; text-transform: uppercase; color: var(--accent); }
.intro p { margin: 0; font-family: var(--font-display); font-size: 0.98rem; line-height: 1.7; color: var(--text-muted); text-wrap: pretty; }
.intro a { color: var(--text); text-decoration: underline; text-decoration-color: rgba(200, 164, 92, 0.45); text-underline-offset: 0.2em; transition: color 0.3s ease, text-decoration-color 0.3s ease; }
.intro a:hover, .intro a:focus-visible { color: var(--accent-soft); text-decoration-color: var(--accent); }
