/* The pulsar first screen: the request steps and the name written in light. Shared by the lab page and the full home page. */
@property --turn{syntax:"<angle>";inherits:false;initial-value:0deg}
[hidden]{display:none!important}
.step{position:relative;z-index:3;margin-top:34px;width:min(100%,480px)}
.step .field{margin-top:0;width:100%}
/* colour lives in the light: the field only gets a spectral edge while it is in use */
.field:focus-within,.field.ready{border-color:transparent;background:linear-gradient(#0b0b0d,#0b0b0d) padding-box,conic-gradient(from var(--turn),#6f9dff,#b99bff,#ff9ed2,#9fd0ff,#6f9dff) border-box;animation:turn 7s linear infinite}
@keyframes turn{to{--turn:360deg}}
/* "See my website" pressed while the field is empty: a ring shows that the field is the next thing to fill
   (intake.js puts the class on after it has put the cursor in the field, so the turning border stays) */
.field.field-nudge{animation:turn 7s linear infinite,field-nudge .9s ease-out}
@keyframes field-nudge{0%{box-shadow:0 0 0 0 color-mix(in srgb,#b99bff 75%,transparent)}100%{box-shadow:0 0 0 16px transparent}}
.field.ready button{box-shadow:0 0 22px rgba(176,170,255,.55)}
.hero h1,.hero .sub{transition:opacity .42s}
.hero.swap h1,.hero.swap .sub{opacity:0!important}
.hero.personal h1{white-space:normal;font-size:clamp(34px,4vw,66px)}
.note{transition:color .6s}
.note.sent{color:var(--fg)}

/* "is this you?" */
.cands{display:grid;gap:8px}
.cand{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:3px 14px;align-items:center;width:100%;padding:14px 16px;border:1px solid #ededea2e;border-radius:16px;background:#0c0c0ed9;backdrop-filter:blur(10px);color:var(--fg);font:inherit;text-align:left;cursor:pointer;transition:border-color .2s,background .2s}
.cand:hover,.cand:focus-visible{border-color:var(--fg);background:#17171a;outline:0}
.cand b{font-weight:500;font-size:17px}
.cand span{grid-column:1;font-size:13.5px;line-height:1.45;color:var(--muted)}
.cand i{font-style:normal;color:#b9c8ff}
.cand em{grid-row:1/5;grid-column:2;padding:8px 14px;border:1px solid #ededea55;border-radius:999px;font-style:normal;font-size:13px;white-space:nowrap}
.cands .btn{justify-self:start;margin-top:4px}
.btn{height:46px;padding:0 20px;border:1px solid #ededea55;border-radius:999px;background:none;color:var(--fg);font:inherit;font-size:15px;cursor:pointer}
.btn.primary{border-color:var(--fg);background:var(--fg);color:#0a0a0c}
.row{display:flex;flex-wrap:wrap;gap:10px;margin-top:6px}
/* the short questions and the optional wishes */
.ask2,.wish{display:grid;gap:10px;padding:16px;border:1px solid #ededea2e;border-radius:18px;background:#0c0c0ed9;backdrop-filter:blur(10px)}
.ask2 input,.wish input:not([type=file]),.wish textarea{width:100%;padding:0 16px;height:50px;border:1px solid #ededea40;border-radius:13px;background:#0b0b0d;color:var(--fg);font:inherit;font-size:16px;outline:0}
.wish textarea{height:auto;padding:13px 16px;resize:vertical;line-height:1.45}
.ask2 input:focus,.wish input:focus,.wish textarea:focus{border-color:var(--fg)}
.drop{display:flex;justify-content:space-between;gap:12px;padding:13px 16px;border:1px dashed #ededea55;border-radius:13px;font-size:15px;color:var(--muted);cursor:pointer}
.drop b{font-weight:400;color:var(--fg)}

/* the business name, written by a beam that swings out from the star */
.writebeam{position:fixed;inset:0;z-index:2;pointer-events:none;opacity:0;transition:opacity .4s;
  background:conic-gradient(from calc(var(--from,0deg) + var(--sw,0deg) - 1.5deg) at var(--sx,80%) var(--sy,50%),transparent 0deg,rgba(84,132,255,.2) .8deg,rgba(255,255,255,.62) 1.5deg,rgba(255,98,190,.2) 2.2deg,transparent 3deg,transparent 360deg);
  -webkit-mask-image:radial-gradient(circle at var(--sx,80%) var(--sy,50%),transparent 0,#000 5%,#000 48%,transparent 96%);mask-image:radial-gradient(circle at var(--sx,80%) var(--sy,50%),transparent 0,#000 5%,#000 48%,transparent 96%)}
.writebeam.on{opacity:1}
.namelight{position:fixed;left:var(--gutter);bottom:11vh;z-index:3;margin:0;font-weight:300;letter-spacing:-.04em;line-height:1.05;white-space:nowrap;pointer-events:none;visibility:hidden;
  background:linear-gradient(90deg,#b9d0ff,#fff 20%,#fff 80%,#ffc6e4);-webkit-background-clip:text;background-clip:text;color:transparent;transition:opacity .9s}
/* the glow is a blurred copy of the letters; a filter on the gradient text itself paints a dark box behind it */
.namelight::before{content:attr(data-text);position:absolute;left:0;top:0;z-index:-1;color:rgba(160,180,255,.5);filter:blur(16px);-webkit-text-fill-color:currentColor}
.namelight.on{visibility:visible}
.namelight.fade{opacity:0}

@media (max-width:820px){.namelight{bottom:auto;top:47vh}
  /* past the first step a phone screen belongs to the question: no footer line, no prototype switches, tighter cards */
  body.flow .cap,body.flow .lab{display:none}
  .cand{padding:12px 14px}
  .cand span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .cand em{padding:0;border:0;font-size:0}
  .cand em::after{content:"→";font-size:18px}
}
@media (prefers-reduced-motion:reduce){.field:focus-within,.field.ready{animation:none}}
