@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@300;400;500;600;700&family=Share+Tech+Mono&display=swap');

:root{
  --ink:#1c1726;
  --ink-2:#150f21;
  --card:#241d33;
  --purple:#6514ff;
  --magenta:#bf00ff;
  --paper:#f2eefb;
  --dim:#b6a8d6;
  --line:rgba(191,0,255,.28);
}

*,*::before,*::after{box-sizing:border-box}

html{
  scroll-behavior:smooth;
  -webkit-text-size-adjust:100%;
}

body{
  margin:0;
  min-height:100vh;
  padding:0 0 112px;
  background:var(--ink);
  color:var(--paper);
  font-family:"Fira Code","Share Tech Mono",ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  font-size:16px;
  line-height:1.7;
  overflow-x:hidden;
}

body::before{
  content:"";
  position:fixed;
  inset:-25%;
  z-index:0;
  pointer-events:none;
  opacity:.55;
  background-image:radial-gradient(rgba(191,0,255,.34) 1px,transparent 1px);
  background-size:22px 22px;
  animation:drift 22s linear infinite;
}

@keyframes drift{
  from{transform:translate3d(0,0,0)}
  to{transform:translate3d(22px,22px,0)}
}

@keyframes bob{
  from{translate:0 0}
  to{translate:0 -10px}
}

img{max-width:100%}
a{color:inherit}
h1,h2,h3,p,ul,ol,figure,address{margin-top:0}

:focus-visible{
  outline:2px solid var(--magenta);
  outline-offset:2px;
}

.mark-wrap{
  position:fixed;
  top:14px;
  left:14px;
  z-index:30;
}

.mark{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:44px;
  height:44px;
  border-radius:4px;
  text-decoration:none;
  color:#fff;
  font-weight:700;
  font-size:20px;
  background:linear-gradient(135deg,var(--purple),var(--magenta));
  box-shadow:0 10px 26px rgba(101,20,255,.5);
  transition:transform .22s ease,box-shadow .22s ease;
}

.mark:hover{
  transform:translateY(-2px) rotate(-4deg);
  box-shadow:0 16px 32px rgba(191,0,255,.6);
}

.hero{
  position:relative;
  z-index:1;
  display:grid;
  grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);
  gap:clamp(20px,3vw,44px);
  align-items:center;
  min-height:45vh;
  padding:clamp(72px,8vw,100px) clamp(18px,5vw,60px) clamp(26px,4vw,40px);
  border-bottom:2px solid var(--line);
}

.hero-txt{min-width:0}

.hero h1{
  margin:0;
  font-size:clamp(30px,5.4vw,54px);
  line-height:1.1;
  letter-spacing:-.02em;
  text-wrap:balance;
  color:#fff;
  text-shadow:0 0 34px rgba(101,20,255,.45);
}

.hero h1::after{
  content:"";
  display:block;
  width:92px;
  height:10px;
  margin-top:20px;
  border-radius:2px;
  background:linear-gradient(90deg,var(--purple),var(--magenta));
}

.hero-art{
  position:relative;
  display:grid;
  grid-template-rows:1fr;
  min-height:200px;
}

.hero-art .art{
  grid-area:1/1;
  margin:0;
  height:clamp(168px,26vh,238px);
  border-radius:4px;
  overflow:hidden;
  box-shadow:0 20px 44px rgba(0,0,0,.6);
}

.hero-art .art img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  border-radius:4px;
}

.hero-art .a0{
  width:74%;
  align-self:start;
  justify-self:start;
  rotate:-2.5deg;
  border:2px solid rgba(255,255,255,.18);
  animation:bob 9s ease-in-out infinite alternate;
}

.hero-art .a1{
  width:62%;
  align-self:end;
  justify-self:end;
  border:2px solid var(--magenta);
  animation:bob 9s ease-in-out infinite alternate-reverse;
}

.hero-art.pure{display:block}

.hero-art.pure .blk{
  position:absolute;
  display:block;
  border-radius:4px;
  box-shadow:0 18px 40px rgba(0,0,0,.55);
}

.pure .blk:nth-child(1){
  top:6%;left:4%;
  width:60%;height:56%;
  background:linear-gradient(135deg,var(--purple),var(--magenta));
}

.pure .blk:nth-child(2){
  right:6%;bottom:4%;
  width:46%;height:42%;
  background:var(--magenta);
  opacity:.7;
}

.pure .blk:nth-child(3){
  top:42%;right:26%;
  width:24%;height:24%;
  border-radius:50%;
  background:var(--paper);
  opacity:.9;
}

main{
  position:relative;
  z-index:1;
  display:grid;
  grid-template-columns:220px minmax(0,1fr);
  gap:clamp(24px,4vw,56px);
  max-width:1180px;
  margin:0 auto;
  padding:clamp(30px,4vw,52px) clamp(16px,4vw,40px);
}

.rail{
  position:sticky;
  top:18px;
  align-self:start;
  padding:4px 0 4px 14px;
  border-left:3px solid var(--magenta);
}

.rail h2{
  margin:0 0 12px;
  font-size:16px;
  letter-spacing:.24em;
  color:var(--dim);
}

.rail ol{
  list-style:none;
  margin:0;
  padding:0;
  display:grid;
  gap:3px;
}

.rail a{
  display:flex;
  align-items:center;
  min-height:42px;
  padding:6px 9px;
  font-size:16px;
  line-height:1.35;
  color:var(--paper);
  text-decoration:none;
  border:1px solid transparent;
  border-radius:4px;
  transition:background .2s ease,border-color .2s ease,color .2s ease;
}

.rail a:hover,.rail a:focus-visible{
  background:rgba(101,20,255,.26);
  border-color:var(--line);
  color:#fff;
}

div{min-width:0}

.lede h2{
  margin:0 0 12px;
  font-size:clamp(24px,3.4vw,34px);
  line-height:1.16;
  color:#fff;
  letter-spacing:-.01em;
}

.subtitle{
  margin:0 0 clamp(28px,4vw,46px);
  padding-left:14px;
  border-left:4px solid var(--purple);
  font-size:17px;
  line-height:1.8;
  color:var(--dim);
}

div > section{
  margin:0 0 clamp(32px,4.6vw,54px);
  padding:clamp(20px,3.4vw,34px);
  border:1px solid rgba(191,0,255,.2);
  border-radius:4px;
  background:linear-gradient(180deg,var(--card),#201a2e);
  box-shadow:0 18px 42px rgba(0,0,0,.45);
  scroll-margin-top:26px;
  scroll-margin-bottom:120px;
}

.js div > section{
  opacity:0;
  transform:translateY(16px);
  transition:opacity .28s ease,transform .28s ease;
}

.js div > section.in{
  opacity:1;
  transform:none;
}

div > section.hit{
  outline:2px solid var(--magenta);
  outline-offset:3px;
}

div > section h2{
  position:relative;
  margin:0 0 16px;
  padding-left:22px;
  font-size:clamp(21px,3vw,30px);
  line-height:1.22;
  color:#fff;
}

div > section h2::before{
  content:"";
  position:absolute;
  left:0;
  top:.42em;
  width:12px;
  height:12px;
  border-radius:2px;
  background:linear-gradient(135deg,var(--purple),var(--magenta));
}

div h3{
  margin:30px 0 10px;
  font-size:19px;
  line-height:1.35;
  color:#e5d9ff;
}

div p{margin:0 0 16px;color:#ddd4f1}

div ul,div ol{
  margin:0 0 18px;
  padding-left:24px;
}

div li{margin:0 0 9px}

div strong{color:#fff}

div a{
  color:#d9b8ff;
  text-decoration-color:var(--magenta);
  text-underline-offset:3px;
  transition:background .2s ease,color .2s ease;
}

div a:hover{
  color:#fff;
  background:rgba(191,0,255,.24);
}

div img{border-radius:4px;height:auto}

div blockquote{
  margin:0 0 18px;
  padding:12px 16px;
  border-left:3px solid var(--magenta);
  background:rgba(101,20,255,.14);
  border-radius:0 4px 4px 0;
  color:#e9e0ff;
}

.foot{
  position:relative;
  z-index:1;
  max-width:1180px;
  margin:0 auto;
  padding:0 clamp(16px,4vw,40px) 46px;
  border-top:2px solid var(--line);
}

.cta{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  margin:clamp(34px,5vw,58px) 0 30px;
  padding:clamp(24px,4vw,40px);
  border-radius:4px;
  background:linear-gradient(120deg,var(--purple),var(--magenta));
  box-shadow:0 22px 48px rgba(101,20,255,.32);
}

.cta-t{
  margin:0;
  font-size:clamp(20px,3vw,30px);
  line-height:1.2;
  font-weight:700;
  color:#fff;
}

.cta a{
  display:inline-flex;
  align-items:center;
  min-height:46px;
  padding:10px 22px;
  border-radius:4px;
  background:var(--ink-2);
  color:#fff;
  font-weight:600;
  text-decoration:none;
  transition:transform .2s ease,box-shadow .2s ease;
}

.cta a:hover{
  transform:translateY(-2px);
  box-shadow:0 12px 26px rgba(0,0,0,.55);
}

.foot-row{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:center;
  gap:14px 28px;
  text-align:center;
  color:var(--dim);
}

.foot-row address{
  font-style:normal;
  font-size:16px;
  color:var(--dim);
  word-break:break-all;
}

.foot-row ul{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:6px 20px;
  margin:0;
  padding:0;
  list-style:none;
}

.foot-row a{
  display:inline-flex;
  align-items:center;
  min-height:42px;
  color:var(--paper);
  text-decoration:none;
  transition:color .2s ease;
}

.foot-row a:hover{color:var(--magenta)}

.copy{
  width:100%;
  margin:6px 0 0;
  text-align:center;
  font-size:16px;
  color:var(--dim);
}

.dock{
  position:fixed;
  left:0;
  right:0;
  bottom:0;
  z-index:40;
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 14px 14px;
  background:rgba(21,15,33,.96);
  border-top:2px solid rgba(191,0,255,.42);
  box-shadow:0 -14px 36px rgba(0,0,0,.55);
  backdrop-filter:blur(10px);
}

.dock details{position:relative}

.dock summary{
  list-style:none;
  display:inline-flex;
  align-items:center;
  gap:9px;
  min-height:44px;
  padding:10px 16px;
  border-radius:4px;
  background:linear-gradient(135deg,var(--purple),var(--magenta));
  color:#fff;
  font-weight:600;
  cursor:pointer;
  user-select:none;
}

.dock summary::-webkit-details-marker{display:none}

.dock summary::before{
  content:"";
  width:14px;
  height:10px;
  background:
    linear-gradient(#fff,#fff) 0 0/100% 2px no-repeat,
    linear-gradient(#fff,#fff) 0 4px/100% 2px no-repeat,
    linear-gradient(#fff,#fff) 0 8px/100% 2px no-repeat;
}

.dock menu{
  position:absolute;
  left:0;
  bottom:calc(100% + 12px);
  width:min(80vw,330px);
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:6px;
  margin:0;
  padding:10px;
  list-style:none;
  border:1px solid var(--line);
  border-radius:4px;
  background:#221a32;
  box-shadow:0 22px 48px rgba(0,0,0,.65);
}

.dock menu a{
  display:flex;
  align-items:center;
  min-height:44px;
  padding:8px 10px;
  border:1px solid transparent;
  border-radius:4px;
  font-size:16px;
  line-height:1.3;
  color:var(--paper);
  text-decoration:none;
}

.dock menu a::before{
  content:"";
  flex:0 0 auto;
  width:6px;
  height:6px;
  margin-right:9px;
  border-radius:1px;
  background:var(--magenta);
}

.dock menu a:hover,.dock menu a:focus-visible{
  background:rgba(191,0,255,.22);
  border-color:var(--line);
  color:#fff;
}

.search{
  display:flex;
  flex:1 1 auto;
  gap:8px;
  max-width:360px;
  margin-left:auto;
}

.search input{
  flex:1 1 auto;
  min-width:0;
  min-height:44px;
  padding:10px 12px;
  border:1px solid var(--line);
  border-radius:4px;
  background:var(--ink-2);
  color:var(--paper);
  font:inherit;
  font-size:16px;
}

.search input::placeholder{color:#8d80ab}

.search button{
  flex:0 0 auto;
  min-height:44px;
  padding:0 16px;
  border:0;
  border-radius:4px;
  background:#2c2242;
  color:#fff;
  font:inherit;
  font-size:16px;
  font-weight:600;
  cursor:pointer;
  transition:background .2s ease;
}

.search button:hover{background:var(--purple)}

@media (max-width:900px){
  main{grid-template-columns:minmax(0,1fr)}
  .rail{
    position:static;
    order:2;
    padding:16px 0 0;
    border-left:0;
    border-top:2px solid var(--line);
  }
  .rail ol{grid-template-columns:1fr 1fr;display:grid;gap:4px}
  .hero{grid-template-columns:minmax(0,1fr);min-height:0}
  .hero-art{min-height:170px;margin-top:6px}
  .hero-art .art{height:clamp(150px,22vh,200px)}
}

@media (max-width:640px){
  body{padding-bottom:116px}
  .hero{padding-top:76px;gap:22px}
  .hero h1{font-size:clamp(28px,9vw,40px)}
  .hero-art .a0{width:70%}
  .hero-art .a1{width:58%}
  .cta{flex-direction:column;align-items:flex-start}
  .foot-row{flex-direction:column;gap:10px}
  .foot-row ul{gap:4px 14px}
  .dock{gap:8px;padding:8px 10px 12px}
  .dock summary{padding:10px 12px}
  .search{max-width:none}
  .search button{padding:0 12px}
  .dock menu{grid-template-columns:1fr 1fr}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation:none!important}
  .js div > section{opacity:1;transform:none;transition:none}
}

button[aria-expanded]{min-width:44px;min-height:44px}
