/* Stoic Cookie — motion layer (preview).
   Progressive enhancement: hidden states only apply under html.sc-motion,
   which motion.js adds when animation is allowed. No-JS and
   reduced-motion visitors see the site exactly as authored.
   Gold is hardcoded (#d9a441) so this file works on the standalone
   pages too, which define their own CSS variables. */

:root{ --sc-gold:#d9a441; }

/* ---------- scroll progress bar ---------- */
#sc-progress{
  position:fixed; top:0; left:0; height:3px; width:100%; z-index:115;
  pointer-events:none;
  background:linear-gradient(90deg,#d9a441,#e7b95b);
  transform-origin:0 50%; transform:scaleX(0);
}

/* ---------- scroll reveals ---------- */
html.sc-motion .reveal{
  opacity:0; transform:translateY(18px);
  transition:opacity .6s ease, transform .6s cubic-bezier(.22,.61,.36,1);
}
html.sc-motion .reveal.in{ opacity:1; transform:none; }
@media (prefers-reduced-motion: reduce){
  html.sc-motion .reveal{ transition:none; opacity:1; transform:none; }
}

/* ---------- hero blur -> sharp ---------- */
html.sc-motion .hero h1{
  filter:blur(8px); opacity:0;
  transition:filter .9s ease .05s, opacity .9s ease .05s;
}
html.sc-motion.hero-sharp .hero h1{ filter:blur(0); opacity:1; }

/* ---------- hover glow / lift ----------
   Only under html.sc-glow. motion.js withholds sc-glow on the Guides
   app, which has its own teal hover system. */
html.sc-glow .path-card,
html.sc-glow .link-card,
html.sc-glow .comp-card,
html.sc-glow .tool,
html.sc-glow .card{
  transition:transform .25s ease, border-color .25s ease,
    box-shadow .25s ease, background-color .25s ease;
}
html.sc-glow .path-card:hover,
html.sc-glow .link-card:hover,
html.sc-glow .comp-card:hover,
html.sc-glow .tool:hover,
html.sc-glow .card:hover{
  transform:translateY(-3px);
  border-color:rgba(217,164,65,.55);
  box-shadow:0 12px 28px rgba(0,0,0,.45),
    0 0 0 1px rgba(217,164,65,.22),
    0 0 26px rgba(217,164,65,.10);
}
@media (prefers-reduced-motion: reduce){
  html.sc-glow .path-card:hover,
  html.sc-glow .link-card:hover,
  html.sc-glow .comp-card:hover,
  html.sc-glow .tool:hover,
  html.sc-glow .card:hover{ transform:none; }
}

/* ---------- particle background (homepage only) ---------- */
#sc-particles{
  position:fixed; inset:0; width:100%; height:100%;
  z-index:0; pointer-events:none; opacity:.6;
}
html.sc-particles main.wrap{ position:relative; z-index:1; }
html.sc-particles .site-head,
html.sc-particles .site-foot{ position:relative; z-index:1; }

/* ---------- hero dial ---------- */
.dial-section{ border-top:0; padding-top:10px; }
.dial-section .eyebrow{ text-align:center; }
.dial{ max-width:560px; margin:0 auto; }
.dial-ring{
  position:relative; width:min(460px,100%); aspect-ratio:1/1; margin:0 auto;
}
.dial-orbit{
  position:absolute; left:50%; top:50%; width:352px; height:352px;
  transform:translate(-50%,-50%);
  border:1px solid rgba(217,164,65,.28); border-radius:50%;
  pointer-events:none;
}
.dial-orbit::after{
  content:""; position:absolute; inset:-40px;
  border:1px solid rgba(217,164,65,.08); border-radius:50%;
}
.dial-center{
  position:absolute; left:50%; top:50%; transform:translate(-50%,-50%);
  width:200px; height:200px; border-radius:50%;
  background:#141817; border:1px solid rgba(217,164,65,.4);
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  text-align:center; padding:18px; z-index:2;
}
.dial-kicker{
  font-family:"IBM Plex Mono",monospace; font-size:9.5px; letter-spacing:2px;
  color:#d9a441; text-transform:uppercase; margin-bottom:6px;
}
.dial-name{ font-size:16.5px; font-weight:700; line-height:1.25; color:#eef0ea; }
.dial-desc{ font-size:12px; line-height:1.45; color:#a4aaa4; margin-top:6px; }
.dial-link{
  font-size:12px; font-weight:700; color:#d9a441; text-decoration:none; margin-top:8px;
}
.dial-link:hover{ text-decoration:underline; }
.dial-name, .dial-desc, .dial-link{ transition:opacity .22s ease, transform .22s ease; }
.dial-center.swap .dial-name,
.dial-center.swap .dial-desc,
.dial-center.swap .dial-link{ opacity:0; transform:translateY(4px); }
.dial-seg{
  position:absolute; left:50%; top:50%;
  min-width:96px; max-width:132px; min-height:44px; padding:8px 9px;
  border:1px solid #2a2f2c; border-radius:999px;
  background:#141817; color:#eef0ea;
  font:inherit; font-size:12px; font-weight:600; line-height:1.25;
  text-align:center; cursor:pointer; overflow-wrap:anywhere;
  transform:translate(-50%,-50%) rotate(var(--a,0deg)) translate(176px) rotate(calc(var(--a,0deg) * -1));
  transition:border-color .2s ease, background-color .2s ease,
    color .2s ease, box-shadow .2s ease;
  z-index:1;
}
.dial-seg:hover{
  border-color:rgba(217,164,65,.6);
  box-shadow:0 0 18px rgba(217,164,65,.15);
}
.dial-seg.active{
  background:#d9a441; border-color:#d9a441; color:#151109;
  box-shadow:0 0 22px rgba(217,164,65,.35);
}
.dial-hint{ text-align:center; color:#6f756f; font-size:13px; margin-top:24px; }
.dial-hint a{ color:#d9a441; }
@media (max-width:680px){
  .dial-ring{
    display:grid; grid-template-columns:1fr 1fr; gap:8px;
    width:100%; max-width:520px; aspect-ratio:auto;
  }
  .dial-orbit{ display:none; }
  .dial-seg{
    position:static; transform:none; width:100%; max-width:none; min-height:48px;
  }
  .dial-center{
    position:static; transform:none; width:100%; height:auto; min-height:160px;
    border-radius:12px; grid-column:1/-1; order:10; margin-top:4px;
  }
}
