/* The camera's user-selected palette. All decorative tools share 70% opacity. */
#home { position: relative; isolation: isolate; }
#home .hero-orbit {
  --motion-blue: #259bef;
  --motion-paper: #d9e0e6;
  --motion-ink: #20272c;
  position: absolute; inset: 0; overflow: hidden; pointer-events: none;
  z-index: 0; opacity: .7; contain: layout paint;
}
.hero-tool {
  position: absolute; left: 0; top: 0; width: 90px; height: 90px;
  offset-path: var(--hero-route); offset-rotate: 0deg;
  animation: hero-orbit-travel 140s linear infinite;
  animation-delay: var(--orbit-delay);
}
.hero-tool > svg, .hero-camera { width: 100%; height: 100%; display: block; overflow: visible; }
.hero-tool svg { fill: var(--motion-paper); stroke: var(--motion-ink); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.hero-tool .blue { fill: var(--motion-blue); }
.hero-tool .paper { fill: var(--motion-paper); }
.hero-tool .ink { fill: var(--motion-ink); }
.hero-tool .line { fill: none; stroke: var(--motion-paper); }
.hero-tool .blue-line { fill: none; stroke: var(--motion-blue); }
.hero-tool .no-stroke { stroke: none; }
.hero-tool > svg { animation: hero-tool-tilt 11s ease-in-out infinite; }
.hero-clap-arm { transform-origin: 28px 62px; animation: hero-clap 8s ease-in-out infinite; }
.hero-light-rays { transform-origin: 80px 65px; animation: hero-glow 9s ease-in-out infinite; }
.hero-pen-nib { transform-origin: 80px 80px; animation: hero-pen 10s ease-in-out infinite; }
.hero-edit-playhead { animation: hero-scrub 12s ease-in-out infinite; }
.hero-ai-spark { transform-origin: 82px 64px; animation: hero-spark 9s ease-in-out infinite; }
.hero-ai-node { animation: hero-glow 9s ease-in-out infinite reverse; }
#home > div { position: relative; z-index: 1; }
.hero-motion-toggle {
  position: absolute; left: 30px; bottom: 30px; z-index: 2;
  background: #111; border: 1px solid #40464b; color: #c5cdd3;
  border-radius: 20px; padding: 8px 13px; font: 12px 'Livvic', sans-serif;
  cursor: pointer;
}
.hero-motion-toggle:hover { border-color: #259bef; color: #fff; }
#home:not(.hero-motion-running) .hero-orbit *,
#home:not(.hero-motion-running) .hero-orbit { animation-play-state: paused !important; }
@keyframes hero-orbit-travel { from { offset-distance: 0%; } to { offset-distance: 100%; } }
@keyframes hero-tool-tilt { 0%,100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }
@keyframes hero-clap { 0%,48%,100% { transform: rotate(0); } 18%,32% { transform: rotate(-22deg); } }
@keyframes hero-glow { 0%,55%,100% { opacity: .25; } 25%,35% { opacity: 1; } }
@keyframes hero-pen { 0%,100% { transform: translate(0,0) rotate(-4deg); } 50% { transform: translate(7px,-5px) rotate(6deg); } }
@keyframes hero-scrub { 0%,100% { transform: translateX(0); } 50% { transform: translateX(66px); } }
@keyframes hero-spark { 0%,100% { transform: scale(.86) rotate(-6deg); } 50% { transform: scale(1.08) rotate(6deg); } }
/* One compact composition, centered independently of the navigation controls. */
#home { padding: 0; justify-content: center; align-items: center; }
#home > div { width: 480px; max-width: calc(100% - 140px); flex: none; transform: none; }
#home > div > div { width: 100%; max-width: none; text-align: center; }
#home > div > div h1 {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  font-size: 84px; line-height: 1.08;
}
#home > div > div h1 > span {
  display: flex; justify-content: center; align-items: center;
  padding: 0; line-height: 1.08; overflow: visible;
}
#home > div > div h1 > span > span:not(.intro) {
  padding: 0; letter-spacing: .035em; overflow: visible;
  text-shadow: 4px 4px #fff, 10px 10px #222;
}
#home > div > div h1 > span.position-relative { gap: 12px; }
#home > div > div .intro {
  position: static; display: block; flex: 0 0 218px;
  width: 218px; height: auto; margin: 0; padding: 0;
  border-radius: 0; font-size: 14px; line-height: 1.55;
  text-align: left; letter-spacing: 0;
  transform: translateY(8px);
}
#home .hero-actions { margin: 24px 0 0; justify-content: center; gap: 12px; flex-wrap: wrap; }
#home .hero-actions a { padding: 10px 17px; font-size: 13px; }
#home .cta { position: absolute; right: 30px; top: calc(50% - 30px); margin: 0; }
.hero-tool { width: 78px; height: 78px; }
@media (min-width: 1025px) and (max-height: 680px) {
  #home > div { width: 440px; }
  #home > div > div h1 { font-size: 70px; gap: 4px; }
  #home > div > div .intro { flex-basis: 208px; width: 208px; font-size: 13px; }
  #home .hero-actions { margin-top: 20px; }
  .hero-tool { width: 64px; height: 64px; }
}
@media (max-width: 1024px) {
  #home { width: 100%; min-width: 0; height: 100svh; min-height: 600px; padding: 0; }
  #home > div { width: 440px; max-width: calc(100% - 116px); }
  #home > div > div h1 { font-size: clamp(44px, 8vw, 68px); gap: 4px; }
  #home > div > div .intro { display: none; }
  #home .mobile-intro { display: block; margin: 18px 0 0; font-size: 14px; line-height: 1.6; text-align: center; }
  #home .mobile-intro strong { font-size: 16px; }
  #home .hero-actions { margin: 20px 0 0; gap: 10px; }
  #home .hero-actions a { padding: 10px 13px; font-size: 12px; }
  #home .cta { right: 18px; top: auto; bottom: 18px; margin: 0; }
  .hero-tool { width: 44px; height: 44px; }
  .hero-motion-toggle { left: 18px; bottom: 28px; transform: none; white-space: nowrap; }
}
@media (min-width: 600px) and (max-width: 1024px) and (max-height: 500px) {
  #home { height: 100svh; min-height: 360px; }
  #home > div { width: 560px; max-width: calc(100% - 180px); }
  #home > div > div h1 { flex-direction: row; justify-content: center; font-size: 42px; gap: 18px; }
  #home .mobile-intro { margin-top: 16px; }
  #home .hero-actions { margin-top: 16px; }
  .hero-motion-toggle { left: 12px; bottom: 8px; }
  #home .cta { right: 12px; bottom: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  #home .hero-orbit * { animation-play-state: paused !important; }
  .hero-motion-toggle { display: none; }
}
